summaryrefslogtreecommitdiff
path: root/capplets/keybindings/mate-keybinding-properties.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-07-01 10:10:04 +0200
committerStefano Karapetsas <[email protected]>2014-07-01 10:10:04 +0200
commit35df29f8e2e098044c315fe840650cce2088aee9 (patch)
treed184824ee9514b375b2867fdbb66a3d53dc1d7a1 /capplets/keybindings/mate-keybinding-properties.c
parentee13d83b1475cca26ecc8ce2a365bc1cfed0bc9f (diff)
downloadmate-control-center-35df29f8e2e098044c315fe840650cce2088aee9.tar.bz2
mate-control-center-35df29f8e2e098044c315fe840650cce2088aee9.tar.xz
keybindings: GTK3 improvements
Diffstat (limited to 'capplets/keybindings/mate-keybinding-properties.c')
-rw-r--r--capplets/keybindings/mate-keybinding-properties.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/capplets/keybindings/mate-keybinding-properties.c b/capplets/keybindings/mate-keybinding-properties.c
index cec18262..6e442552 100644
--- a/capplets/keybindings/mate-keybinding-properties.c
+++ b/capplets/keybindings/mate-keybinding-properties.c
@@ -1889,6 +1889,14 @@ setup_dialog (GtkBuilder *builder, GSettings *marco_settings)
/* set up the dialog */
reload_key_entries (builder);
+#if GTK_CHECK_VERSION(3, 0, 0)
+ widget = _gtk_builder_get_widget (builder, "mate-keybinding-dialog");
+ gtk_window_set_default_size (GTK_WINDOW (widget), 400, 500);
+ widget = _gtk_builder_get_widget (builder, "label-suggest");
+ gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
+ gtk_label_set_max_width_chars (GTK_LABEL (widget), 60);
+#endif
+
widget = _gtk_builder_get_widget (builder, "mate-keybinding-dialog");
capplet_set_icon (widget, "preferences-desktop-keyboard-shortcuts");
gtk_widget_show (widget);