diff options
author | Darin Adler <darin@src.gnome.org> | 2001-11-09 02:05:53 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2001-11-09 02:05:53 +0000 |
commit | 4a2255079a7276551867636b356b5bcbc0aec410 (patch) | |
tree | 69eb88b13b8b7b00ee7c45f23324f060643e218c /libnautilus | |
parent | ee16c763834e080df4649df8df8af7ec85903539 (diff) | |
download | nautilus-4a2255079a7276551867636b356b5bcbc0aec410.tar.gz |
Lots of files. Get rid a lot of unneeded casts.
* Lots of files.
Get rid a lot of unneeded casts.
Diffstat (limited to 'libnautilus')
-rw-r--r-- | libnautilus/nautilus-clipboard.c | 8 | ||||
-rw-r--r-- | libnautilus/nautilus-undo.c | 2 | ||||
-rw-r--r-- | libnautilus/nautilus-view-standard-main.c | 2 | ||||
-rw-r--r-- | libnautilus/nautilus-view.c | 10 |
4 files changed, 11 insertions, 11 deletions
diff --git a/libnautilus/nautilus-clipboard.c b/libnautilus/nautilus-clipboard.c index 0867b35ff..d5857ac66 100644 --- a/libnautilus/nautilus-clipboard.c +++ b/libnautilus/nautilus-clipboard.c @@ -237,7 +237,7 @@ merge_in_clipboard_menu_items (GObject *widget_as_object, "nautilus", NULL); if (add_selection_callback) { - g_signal_connect_after (GTK_OBJECT (widget_as_object), "selection_changed", + g_signal_connect_after (widget_as_object, "selection_changed", G_CALLBACK (selection_changed_callback), target_data); selection_changed_callback (GTK_WIDGET (widget_as_object), target_data); @@ -395,7 +395,7 @@ nautilus_clipboard_set_up_editable (GtkEditable *target, g_signal_connect_after (target, "focus_out_event", G_CALLBACK (focus_changed_callback), target_data); - g_signal_connect (G_OBJECT (target), "destroy", + g_signal_connect (target, "destroy", G_CALLBACK (target_destroy_callback), target_data); /* Call the focus changed callback once to merge if the window is @@ -465,11 +465,11 @@ nautilus_clipboard_set_up_editable_in_control (GtkEditable *target, g_object_set_data (G_OBJECT (target), "Nautilus:shares_selection_changes", GINT_TO_POINTER (shares_selection_changes)); - g_signal_connect (G_OBJECT (target), + g_signal_connect (target, "focus_in_event", G_CALLBACK (first_focus_callback), control); - g_signal_connect (G_OBJECT (target), + g_signal_connect (target, "destroy", G_CALLBACK (control_destroyed_callback), control); diff --git a/libnautilus/nautilus-undo.c b/libnautilus/nautilus-undo.c index f2cce7486..b2d760a93 100644 --- a/libnautilus/nautilus-undo.c +++ b/libnautilus/nautilus-undo.c @@ -279,6 +279,6 @@ nautilus_undo_set_up_bonobo_control (BonoboControl *control) g_return_if_fail (BONOBO_IS_CONTROL (control)); set_up_bonobo_control (control); - g_signal_connect (G_OBJECT (control), "set_frame", + g_signal_connect (control, "set_frame", G_CALLBACK (set_up_bonobo_control), NULL); } diff --git a/libnautilus/nautilus-view-standard-main.c b/libnautilus/nautilus-view-standard-main.c index 47a20ba28..dbc7395b1 100644 --- a/libnautilus/nautilus-view-standard-main.c +++ b/libnautilus/nautilus-view-standard-main.c @@ -109,7 +109,7 @@ make_object (BonoboGenericFactory *factory, g_source_remove (callback_data->delayed_quit_timeout_id); callback_data->delayed_quit_timeout_id = 0; } - g_signal_connect (G_OBJECT (view), "destroy", + g_signal_connect (view, "destroy", G_CALLBACK (object_destroyed), callback_data); return BONOBO_OBJECT (view); diff --git a/libnautilus/nautilus-view.c b/libnautilus/nautilus-view.c index 4f11921c5..b775becb7 100644 --- a/libnautilus/nautilus-view.c +++ b/libnautilus/nautilus-view.c @@ -151,7 +151,7 @@ static void call_load_location (NautilusView *view, gpointer callback_data) { - g_signal_emit (G_OBJECT (view), + g_signal_emit (view, signals[LOAD_LOCATION], 0, callback_data); } @@ -160,7 +160,7 @@ static void call_stop_loading (NautilusView *view, gpointer callback_data) { - g_signal_emit (G_OBJECT (view), + g_signal_emit (view, signals[STOP_LOADING], 0); } @@ -168,7 +168,7 @@ static void call_selection_changed (NautilusView *view, gpointer callback_data) { - g_signal_emit (G_OBJECT (view), + g_signal_emit (view, signals[SELECTION_CHANGED], 0, callback_data); } @@ -177,7 +177,7 @@ static void call_title_changed (NautilusView *view, gpointer callback_data) { - g_signal_emit (G_OBJECT (view), + g_signal_emit (view, signals[TITLE_CHANGED], 0, callback_data); } @@ -186,7 +186,7 @@ static void call_history_changed (NautilusView *view, gpointer callback_data) { - g_signal_emit (G_OBJECT (view), + g_signal_emit (view, signals[HISTORY_CHANGED], 0, callback_data); } |