aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view-menu.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-11-04 06:08:16 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-11-04 06:08:16 +0800
commitede7fcb220b739c4d12775904086afe0df595acd (patch)
treecae8198cf8f57d3e08d13c03538e69a411f8a45c /shell/e-shell-view-menu.c
parent9cbba714fc0eb122c0736b94727b4d2580b9d53c (diff)
downloadgsoc2013-evolution-ede7fcb220b739c4d12775904086afe0df595acd.tar
gsoc2013-evolution-ede7fcb220b739c4d12775904086afe0df595acd.tar.gz
gsoc2013-evolution-ede7fcb220b739c4d12775904086afe0df595acd.tar.bz2
gsoc2013-evolution-ede7fcb220b739c4d12775904086afe0df595acd.tar.lz
gsoc2013-evolution-ede7fcb220b739c4d12775904086afe0df595acd.tar.xz
gsoc2013-evolution-ede7fcb220b739c4d12775904086afe0df595acd.tar.zst
gsoc2013-evolution-ede7fcb220b739c4d12775904086afe0df595acd.zip
Changed all gtk_object_refs()/gtk_object_unrefs() into
* *.c, *.h: Changed all gtk_object_refs()/gtk_object_unrefs() into g_object_refs()/g_object_unrefs() and all gtk_signal_connect_*() into g_signal_connect_*(). [Except for some case where we have gtk_signal_connect_full() or gtk_signal_connect_while_alive() calls that cannot be trivially ported to use the g_signal_* functions, we'll have to fix those later.] * e-splash.c (impl_finalize): Finalize implementation, copied over from impl_destroy. (impl_destroy): Removed. (class_init): Override finalize, not destroy. * e-activity-handler.c: Ported from GtkObject to GObject. * evolution-storage.c: Likewise. * e-corba-shortcuts.c: Likewise. * evolution-session.h: Likewise. * evolution-config-control.c: Likewise. * evolution-shell-component-dnd.c: Likewise. * evolution-shell-component.c: Likewise. * evolution-shell-view.c: Likewise. * evolution-storage-set-view.c: Likewise. * evolution-wizard.c: Likewise. svn path=/trunk/; revision=18513
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r--shell/e-shell-view-menu.c49
1 files changed, 24 insertions, 25 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c
index c9d55883d9..208fd1c581 100644
--- a/shell/e-shell-view-menu.c
+++ b/shell/e-shell-view-menu.c
@@ -176,8 +176,8 @@ command_quit (BonoboUIComponent *uih,
static void
command_submit_bug (BonoboUIComponent *uih,
- void *data,
- const char *path)
+ void *data,
+ const char *path)
{
int pid;
char *args[] = {
@@ -234,12 +234,12 @@ command_about_box (BonoboUIComponent *uih,
about_box_window = gtk_dialog_new ();
gtk_window_set_policy (GTK_WINDOW (about_box_window), FALSE, FALSE, FALSE);
- gtk_signal_connect (GTK_OBJECT (about_box_window), "key_press_event",
- GTK_SIGNAL_FUNC (about_box_event_callback), &about_box_window);
- gtk_signal_connect (GTK_OBJECT (about_box_window), "button_press_event",
- GTK_SIGNAL_FUNC (about_box_event_callback), &about_box_window);
- gtk_signal_connect (GTK_OBJECT (about_box_window), "delete_event",
- GTK_SIGNAL_FUNC (about_box_event_callback), &about_box_window);
+ g_signal_connect (about_box_window, "key_press_event",
+ G_CALLBACK (about_box_event_callback), &about_box_window);
+ g_signal_connect (about_box_window, "button_press_event",
+ G_CALLBACK (about_box_event_callback), &about_box_window);
+ g_signal_connect (about_box_window, "delete_event",
+ G_CALLBACK (about_box_event_callback), &about_box_window);
gtk_window_set_transient_for (GTK_WINDOW (about_box_window), GTK_WINDOW (data));
gtk_window_set_title (GTK_WINDOW (about_box_window), _("About Ximian Evolution"));
@@ -504,10 +504,10 @@ command_goto_folder (BonoboUIComponent *uih,
gtk_window_set_transient_for (GTK_WINDOW (folder_selection_dialog), GTK_WINDOW (shell_view));
- gtk_signal_connect (GTK_OBJECT (folder_selection_dialog), "cancelled",
- GTK_SIGNAL_FUNC (goto_folder_dialog_cancelled_cb), shell_view);
- gtk_signal_connect (GTK_OBJECT (folder_selection_dialog), "folder_selected",
- GTK_SIGNAL_FUNC (goto_folder_dialog_folder_selected_cb), shell_view);
+ g_signal_connect (folder_selection_dialog, "cancelled",
+ G_CALLBACK (goto_folder_dialog_cancelled_cb), shell_view);
+ g_signal_connect (folder_selection_dialog, "folder_selected",
+ G_CALLBACK (goto_folder_dialog_folder_selected_cb), shell_view);
gtk_widget_show (folder_selection_dialog);
}
@@ -619,10 +619,10 @@ command_new_shortcut (BonoboUIComponent *uih,
e_shell_folder_selection_dialog_set_allow_creation (E_SHELL_FOLDER_SELECTION_DIALOG (folder_selection_dialog),
FALSE);
- gtk_signal_connect (GTK_OBJECT (folder_selection_dialog), "cancelled",
- GTK_SIGNAL_FUNC (new_shortcut_dialog_cancelled_cb), shell_view);
- gtk_signal_connect (GTK_OBJECT (folder_selection_dialog), "folder_selected",
- GTK_SIGNAL_FUNC (new_shortcut_dialog_folder_selected_cb), shell_view);
+ g_signal_connect (folder_selection_dialog, "cancelled",
+ G_CALLBACK (new_shortcut_dialog_cancelled_cb), shell_view);
+ g_signal_connect (folder_selection_dialog, "folder_selected",
+ G_CALLBACK (new_shortcut_dialog_folder_selected_cb), shell_view);
gtk_widget_show (folder_selection_dialog);
}
@@ -855,12 +855,12 @@ e_shell_view_menu_setup (EShellView *shell_view)
e_pixmaps_update (uic, pixmaps);
- gtk_signal_connect (GTK_OBJECT (shell_view), "shortcut_bar_visibility_changed",
- GTK_SIGNAL_FUNC (shortcut_bar_visibility_changed_cb),
- SHORTCUT_BAR_TOGGLE_PATH);
- gtk_signal_connect (GTK_OBJECT (shell_view), "folder_bar_visibility_changed",
- GTK_SIGNAL_FUNC (folder_bar_visibility_changed_cb),
- FOLDER_BAR_TOGGLE_PATH);
+ g_signal_connect (shell_view, "shortcut_bar_visibility_changed",
+ G_CALLBACK (shortcut_bar_visibility_changed_cb),
+ SHORTCUT_BAR_TOGGLE_PATH);
+ g_signal_connect (shell_view, "folder_bar_visibility_changed",
+ G_CALLBACK (folder_bar_visibility_changed_cb),
+ FOLDER_BAR_TOGGLE_PATH);
/* Initialize the toggles. Yeah, this is, well, yuck. */
folder_bar_visibility_changed_cb (shell_view, e_shell_view_folder_bar_shown (shell_view),
@@ -869,8 +869,7 @@ e_shell_view_menu_setup (EShellView *shell_view)
SHORTCUT_BAR_TOGGLE_PATH);
/* Set up the work online / work offline menu item. */
- gtk_signal_connect_while_alive (GTK_OBJECT (shell), "line_status_changed",
- GTK_SIGNAL_FUNC (shell_line_status_changed_cb), shell_view,
- GTK_OBJECT (shell_view));
+ g_signal_connect_object (shell, "line_status_changed",
+ G_CALLBACK (shell_line_status_changed_cb), shell_view, 0);
update_offline_menu_item (shell_view, e_shell_get_line_status (shell));
}