mouse: align the speed sliders in the same size group
https://bugzilla.gnome.org/show_bug.cgi?id=756863
This commit is contained in:
parent
c1318c634f
commit
ad1c44fbad
1 changed files with 15 additions and 0 deletions
|
@ -280,6 +280,20 @@ setup_dialog (CcMousePropertiesPrivate *d)
|
|||
gtk_list_box_set_header_func (GTK_LIST_BOX (WID ("touchpad-options-listbox")), cc_list_box_update_header_func, NULL, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
add_scales_to_sizegroup (CcMousePropertiesPrivate *d)
|
||||
{
|
||||
GtkSizeGroup *size_group;
|
||||
|
||||
size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
|
||||
gtk_size_group_add_widget (size_group, WID ("mouse-label"));
|
||||
gtk_size_group_add_widget (size_group, WID ("touchpad-speed-label"));
|
||||
|
||||
size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
|
||||
gtk_size_group_add_widget (size_group, WID ("mouse-speed-scale"));
|
||||
gtk_size_group_add_widget (size_group, WID ("touchpad-speed-scale"));
|
||||
}
|
||||
|
||||
/* Callback issued when a button is clicked on the dialog */
|
||||
|
||||
static void
|
||||
|
@ -364,6 +378,7 @@ cc_mouse_properties_init (CcMouseProperties *object)
|
|||
|
||||
gtk_container_add (GTK_CONTAINER (object), WID ("scrolled-window"));
|
||||
|
||||
add_scales_to_sizegroup (d);
|
||||
setup_dialog (d);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue