summaryrefslogtreecommitdiff
path: root/plugins/keyboard/msd-keyboard-xkb.c
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-12-15 03:28:49 +0200
committerJasmine Hassan <[email protected]>2012-12-15 07:04:12 +0200
commit4d955a71bb6117c72da4291ccd2a9f617e9ed7fd (patch)
tree9f617182ebbee3cbd3fd186367753d59c50ce89a /plugins/keyboard/msd-keyboard-xkb.c
parent753cac019e70eb345fd9d7445f5ed3d3adc146c4 (diff)
downloadmate-settings-daemon-4d955a71bb6117c72da4291ccd2a9f617e9ed7fd.tar.bz2
mate-settings-daemon-4d955a71bb6117c72da4291ccd2a9f617e9ed7fd.tar.xz
[keyboard] Don't cast dialog to GTK_OBJECT on GTK3
Diffstat (limited to 'plugins/keyboard/msd-keyboard-xkb.c')
-rw-r--r--plugins/keyboard/msd-keyboard-xkb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/keyboard/msd-keyboard-xkb.c b/plugins/keyboard/msd-keyboard-xkb.c
index 09329ee..0254f68 100644
--- a/plugins/keyboard/msd-keyboard-xkb.c
+++ b/plugins/keyboard/msd-keyboard-xkb.c
@@ -245,7 +245,11 @@ popup_menu_show_layout ()
matekbd_keyboard_drawing_new_dialog (xkl_state->group,
group_names
[xkl_state->group]);
+# if GTK_CHECK_VERSION(3,0,0)
+ g_signal_connect (dialog, "destroy",
+# else
g_signal_connect (GTK_OBJECT (dialog), "destroy",
+#endif
G_CALLBACK (show_layout_destroy),
GINT_TO_POINTER (xkl_state->group));
g_hash_table_insert (preview_dialogs,