summaryrefslogtreecommitdiff
path: root/capplets/keybindings/eggcellrendererkeys.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-14 17:55:50 +0300
committermonsta <[email protected]>2016-01-15 13:26:42 +0300
commit98e7e5bb2d294a8a5978c42adf47ceff36565603 (patch)
treee04ad6b4bc4345dc659bf8b1ae0678100bc31c74 /capplets/keybindings/eggcellrendererkeys.c
parentec624517412efde4892d3efdf43e15078dc77a2a (diff)
downloadmate-control-center-98e7e5bb2d294a8a5978c42adf47ceff36565603.tar.bz2
mate-control-center-98e7e5bb2d294a8a5978c42adf47ceff36565603.tar.xz
[GTK+3] keybindings: fix deprecated usage of GtkMisc
Diffstat (limited to 'capplets/keybindings/eggcellrendererkeys.c')
-rw-r--r--capplets/keybindings/eggcellrendererkeys.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/capplets/keybindings/eggcellrendererkeys.c b/capplets/keybindings/eggcellrendererkeys.c
index 11d89a39..98bace56 100644
--- a/capplets/keybindings/eggcellrendererkeys.c
+++ b/capplets/keybindings/eggcellrendererkeys.c
@@ -591,7 +591,12 @@ egg_cell_renderer_keys_start_editing (GtkCellRenderer *cell,
(void**) &keys->edit_widget);
label = gtk_label_new (NULL);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_set_halign (label, GTK_ALIGN_START);
+ gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
+#else
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+#endif
gtk_widget_modify_bg (eventbox, GTK_STATE_NORMAL,
&gtk_widget_get_style (widget)->bg[GTK_STATE_SELECTED]);