summaryrefslogtreecommitdiff
path: root/capplets/keyboard/mate-keyboard-properties-xkb.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 14:22:58 +0200
committerLuke from DC <[email protected]>2022-02-09 04:42:12 +0000
commit2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64 (patch)
tree0de842f92df7aa496d2867a65f160322687e47a4 /capplets/keyboard/mate-keyboard-properties-xkb.c
parent0bfa4ca16e527fdc333fc1ded8b1d9f5963ccf1e (diff)
downloadmate-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-xkb.c')
-rw-r--r--capplets/keyboard/mate-keyboard-properties-xkb.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/capplets/keyboard/mate-keyboard-properties-xkb.c b/capplets/keyboard/mate-keyboard-properties-xkb.c
index 11833c70..d1dd7925 100644
--- a/capplets/keyboard/mate-keyboard-properties-xkb.c
+++ b/capplets/keyboard/mate-keyboard-properties-xkb.c
@@ -211,29 +211,28 @@ setup_xkb_tabs (GtkBuilder * dialog)
xkb_get_default_group () < 0);
xkb_layouts_register_buttons_handlers (dialog);
- g_signal_connect (G_OBJECT (WID ("xkb_reset_to_defaults")),
- "clicked", G_CALLBACK (reset_to_defaults),
- dialog);
+ g_signal_connect (gtk_builder_get_object (dialog, "xkb_reset_to_defaults"), "clicked",
+ G_CALLBACK (reset_to_defaults),
+ dialog);
- g_signal_connect (G_OBJECT (chk_new_windows_inherit_layout),
- "toggled", (GCallback)
- chk_new_windows_inherit_layout_toggled, dialog);
+ g_signal_connect (chk_new_windows_inherit_layout, "toggled",
+ (GCallback) chk_new_windows_inherit_layout_toggled,
+ dialog);
- g_signal_connect_swapped (G_OBJECT (WID ("xkb_layout_options")),
- "clicked",
- G_CALLBACK (xkb_options_popup_dialog),
- dialog);
+ g_signal_connect_swapped (gtk_builder_get_object (dialog, "xkb_layout_options"), "clicked",
+ G_CALLBACK (xkb_options_popup_dialog),
+ dialog);
- g_signal_connect_swapped (G_OBJECT (WID ("xkb_model_pick")),
- "clicked", G_CALLBACK (choose_model),
- dialog);
+ g_signal_connect_swapped (gtk_builder_get_object (dialog, "xkb_model_pick"), "clicked",
+ G_CALLBACK (choose_model),
+ dialog);
xkb_layouts_register_gsettings_listener (dialog);
xkb_options_register_gsettings_listener (dialog);
- g_signal_connect (G_OBJECT (WID ("keyboard_dialog")),
- "destroy", G_CALLBACK (cleanup_xkb_tabs),
- dialog);
+ g_signal_connect (gtk_builder_get_object (dialog, "keyboard_dialog"), "destroy",
+ G_CALLBACK (cleanup_xkb_tabs),
+ dialog);
enable_disable_restoring (dialog);
}