diff options
author | rbuj <[email protected]> | 2021-02-06 14:13:44 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-21 19:33:50 +0200 |
commit | 40b6ff94e9e58e96f19de67e6bfea240593005e8 (patch) | |
tree | a49442abc65e714dc9ea60c6219a295b9b4df071 | |
parent | 74fe70cc51c2a478f1266cc7f6eb896125276a9b (diff) | |
download | caja-40b6ff94e9e58e96f19de67e6bfea240593005e8.tar.bz2 caja-40b6ff94e9e58e96f19de67e6bfea240593005e8.tar.xz |
caja-file-management-properties: Do not cast the instance to GObject when connecting a signal
-rw-r--r-- | src/caja-file-management-properties.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c index fd15c74f..cef4cbdf 100644 --- a/src/caja-file-management-properties.c +++ b/src/caja-file-management-properties.c @@ -225,8 +225,8 @@ preferences_show_help (GtkWindow *parent, _("There was an error displaying help: \n%s"), error->message); - g_signal_connect (G_OBJECT (dialog), - "response", G_CALLBACK (gtk_widget_destroy), + g_signal_connect (dialog, "response", + G_CALLBACK (gtk_widget_destroy), NULL); gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); gtk_widget_show (dialog); @@ -828,8 +828,7 @@ skip: "text", 1, NULL); - g_signal_connect (G_OBJECT (other_type_combo_box), - "changed", + g_signal_connect (other_type_combo_box, "changed", G_CALLBACK (other_type_combo_box_changed), gtk_builder_get_object (builder, "media_other_action_combobox")); @@ -1230,7 +1229,7 @@ caja_file_management_properties_dialog_setup (GtkBuilder *builder, GtkWindow *wi /* UI callbacks */ dialog = GTK_WIDGET (gtk_builder_get_object (builder, "file_management_dialog")); - g_signal_connect_data (G_OBJECT (dialog), "response", + g_signal_connect_data (dialog, "response", G_CALLBACK (caja_file_management_properties_dialog_response_cb), g_object_ref (builder), (GClosureNotify)g_object_unref, @@ -1245,8 +1244,7 @@ caja_file_management_properties_dialog_setup (GtkBuilder *builder, GtkWindow *wi GtkWidget *notebook = GTK_WIDGET (gtk_builder_get_object (builder, "notebook1")); gtk_widget_add_events (notebook, GDK_SCROLL_MASK); - g_signal_connect (notebook, - "scroll-event", + g_signal_connect (notebook, "scroll-event", G_CALLBACK (eel_notebook_scroll_event_cb), NULL); @@ -1275,10 +1273,10 @@ caja_file_management_properties_dialog_show (GCallback close_callback, GtkWindow builder = gtk_builder_new_from_file (UIDIR "/caja-file-management-properties.ui"); - g_signal_connect (G_OBJECT (gtk_builder_get_object (builder, "file_management_dialog")), - "response", close_callback, NULL); - g_signal_connect (G_OBJECT (gtk_builder_get_object (builder, "file_management_dialog")), - "delete_event", G_CALLBACK (delete_event_callback), close_callback); + g_signal_connect (gtk_builder_get_object (builder, "file_management_dialog"), "response", + close_callback, NULL); + g_signal_connect (gtk_builder_get_object (builder, "file_management_dialog"), "delete_event", + G_CALLBACK (delete_event_callback), close_callback); caja_file_management_properties_dialog_setup (builder, window); |