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-xkbltadd.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-xkbltadd.c')
-rw-r--r-- | capplets/keyboard/mate-keyboard-properties-xkbltadd.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c index 723f29fa..1edaa666 100644 --- a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c +++ b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c @@ -322,8 +322,9 @@ xkb_layout_chooser_available_layouts_fill (GtkBuilder * COMBO_BOX_MODEL_COL_SORT, GTK_SORT_ASCENDING); - g_signal_connect_swapped (G_OBJECT (cbl), "changed", - combo_changed_notify, chooser_dialog); + g_signal_connect_swapped (cbl, "changed", + G_CALLBACK (combo_changed_notify), + chooser_dialog); /* Setup the variants combo */ renderer = gtk_cell_renderer_text_new (); @@ -333,10 +334,9 @@ xkb_layout_chooser_available_layouts_fill (GtkBuilder * renderer, "markup", COMBO_BOX_MODEL_COL_VISIBLE, NULL); - g_signal_connect_swapped (G_OBJECT (cbev), "changed", - G_CALLBACK - (xkb_layout_chooser_available_variant_changed), - chooser_dialog); + g_signal_connect_swapped (cbev, "changed", + G_CALLBACK(xkb_layout_chooser_available_variant_changed), + chooser_dialog); } static gchar ** @@ -462,10 +462,9 @@ xkb_layout_choose (GtkBuilder * dialog) G_CALLBACK (xkb_layout_chooser_available_language_changed)); - g_signal_connect_after (G_OBJECT (notebook), "switch_page", - G_CALLBACK - (xkb_layout_chooser_page_changed), - chooser_dialog); + g_signal_connect_after (notebook, "switch_page", + G_CALLBACK(xkb_layout_chooser_page_changed), + chooser_dialog); gtk_combo_box_set_active (GTK_COMBO_BOX (CWID ("xkb_countries_available")), @@ -507,10 +506,9 @@ xkb_layout_choose (GtkBuilder * dialog) gtk_widget_hide (CWID ("btnPrint")); } - g_signal_connect (G_OBJECT (chooser), - "response", - G_CALLBACK (xkb_layout_chooser_response), - chooser_dialog); + g_signal_connect (chooser, "response", + G_CALLBACK (xkb_layout_chooser_response), + chooser_dialog); toplevel = gtk_widget_get_toplevel (chooser); if (gtk_widget_is_toplevel (toplevel)) { |