diff options
author | rbuj <[email protected]> | 2021-10-27 14:22:58 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-02-09 04:42:12 +0000 |
commit | 2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64 (patch) | |
tree | 0de842f92df7aa496d2867a65f160322687e47a4 /capplets/keyboard/mate-keyboard-properties-xkbmc.c | |
parent | 0bfa4ca16e527fdc333fc1ded8b1d9f5963ccf1e (diff) | |
download | mate-control-center-2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64.tar.bz2 mate-control-center-2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64.tar.xz |
Unnecessary G_OBJECT cast when calling signal connect function
Diffstat (limited to 'capplets/keyboard/mate-keyboard-properties-xkbmc.c')
-rw-r--r-- | capplets/keyboard/mate-keyboard-properties-xkbmc.c | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/capplets/keyboard/mate-keyboard-properties-xkbmc.c b/capplets/keyboard/mate-keyboard-properties-xkbmc.c index 6ffc69e6..67b3e22c 100644 --- a/capplets/keyboard/mate-keyboard-properties-xkbmc.c +++ b/capplets/keyboard/mate-keyboard-properties-xkbmc.c @@ -217,11 +217,9 @@ fill_vendors_list (GtkBuilder * chooser_dialog) fill_models_list (chooser_dialog); } - g_signal_connect (G_OBJECT - (gtk_tree_view_get_selection - (GTK_TREE_VIEW (vendors_list))), "changed", - G_CALLBACK (xkb_model_chooser_change_vendor_sel), - chooser_dialog); + g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (vendors_list)), "changed", + G_CALLBACK (xkb_model_chooser_change_vendor_sel), + chooser_dialog); return gtk_tree_model_get_iter_first (GTK_TREE_MODEL (list_store), &iter); @@ -278,11 +276,9 @@ fill_models_list (GtkBuilder * chooser_dialog) } } - g_signal_connect (G_OBJECT - (gtk_tree_view_get_selection - (GTK_TREE_VIEW (models_list))), "changed", - G_CALLBACK (xkb_model_chooser_change_model_sel), - chooser_dialog); + g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (models_list)), "changed", + G_CALLBACK (xkb_model_chooser_change_model_sel), + chooser_dialog); } static void @@ -335,10 +331,9 @@ choose_model (GtkBuilder * dialog) fill_models_list (chooser_dialog); } - g_signal_connect (G_OBJECT (chooser), - "response", - G_CALLBACK (xkb_model_chooser_response), - chooser_dialog); + g_signal_connect (chooser, "response", + G_CALLBACK (xkb_model_chooser_response), + chooser_dialog); gtk_dialog_run (GTK_DIALOG (chooser)); gtk_widget_destroy (chooser); g_free (current_model_name); |