summaryrefslogtreecommitdiff
path: root/capplets/keyboard
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-11-24 18:19:40 +0100
committerraveit65 <[email protected]>2020-12-06 00:37:17 +0100
commit4f7e3e12fe2427f4cb5aa3cfd68bdc8662672f08 (patch)
tree21b96e7ea4fa679289e9ea89db414ad8f5c6a2cc /capplets/keyboard
parent24c93c5aae6c939760bc903a5bd73267b3b43d92 (diff)
downloadmate-control-center-4f7e3e12fe2427f4cb5aa3cfd68bdc8662672f08.tar.bz2
mate-control-center-4f7e3e12fe2427f4cb5aa3cfd68bdc8662672f08.tar.xz
mate-keyboard-properties: size groups on ui file
Diffstat (limited to 'capplets/keyboard')
-rw-r--r--capplets/keyboard/mate-keyboard-properties-dialog.ui21
-rw-r--r--capplets/keyboard/mate-keyboard-properties.c19
2 files changed, 21 insertions, 19 deletions
diff --git a/capplets/keyboard/mate-keyboard-properties-dialog.ui b/capplets/keyboard/mate-keyboard-properties-dialog.ui
index 2092d6f0..bed5a44f 100644
--- a/capplets/keyboard/mate-keyboard-properties-dialog.ui
+++ b/capplets/keyboard/mate-keyboard-properties-dialog.ui
@@ -2188,4 +2188,25 @@ default settings</property>
<action-widget response="-1">close_button</action-widget>
</action-widgets>
</object>
+ <object class="GtkSizeGroup">
+ <widgets>
+ <widget name="delay_short_label"/>
+ <widget name="repeat_slow_label"/>
+ <widget name="blink_slow_label"/>
+ </widgets>
+ </object>
+ <object class="GtkSizeGroup">
+ <widgets>
+ <widget name="delay_long_label"/>
+ <widget name="repeat_fast_label"/>
+ <widget name="blink_fast_label"/>
+ </widgets>
+ </object>
+ <object class="GtkSizeGroup">
+ <widgets>
+ <widget name="repeat_delay_scale"/>
+ <widget name="repeat_speed_scale"/>
+ <widget name="cursor_blink_time_scale"/>
+ </widgets>
+ </object>
</interface>
diff --git a/capplets/keyboard/mate-keyboard-properties.c b/capplets/keyboard/mate-keyboard-properties.c
index b17421cf..22f6fa80 100644
--- a/capplets/keyboard/mate-keyboard-properties.c
+++ b/capplets/keyboard/mate-keyboard-properties.c
@@ -54,7 +54,6 @@ static GtkBuilder *
create_dialog (void)
{
GtkBuilder *dialog;
- GtkSizeGroup *size_group;
GError *error = NULL;
dialog = gtk_builder_new ();
@@ -65,24 +64,6 @@ create_dialog (void)
return NULL;
}
- size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
- gtk_size_group_add_widget (size_group, WID ("repeat_slow_label"));
- gtk_size_group_add_widget (size_group, WID ("delay_short_label"));
- gtk_size_group_add_widget (size_group, WID ("blink_slow_label"));
- g_object_unref (G_OBJECT (size_group));
-
- size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
- gtk_size_group_add_widget (size_group, WID ("repeat_fast_label"));
- gtk_size_group_add_widget (size_group, WID ("delay_long_label"));
- gtk_size_group_add_widget (size_group, WID ("blink_fast_label"));
- g_object_unref (G_OBJECT (size_group));
-
- size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
- gtk_size_group_add_widget (size_group, WID ("repeat_delay_scale"));
- gtk_size_group_add_widget (size_group, WID ("repeat_speed_scale"));
- gtk_size_group_add_widget (size_group, WID ("cursor_blink_time_scale"));
- g_object_unref (G_OBJECT (size_group));
-
return dialog;
}