mouse: Don't show touchpad disable button when there isn't mouse

https://bugzilla.gnome.org/show_bug.cgi?id=685583
This commit is contained in:
Ondrej Holy 2012-10-11 10:32:42 +02:00 committed by Bastien Nocera
parent 75e0fa8449
commit 5b2818c482

View file

@ -185,6 +185,7 @@ setup_dialog (GtkBuilder *dialog)
/* Trackpad page */
touchpad_present = touchpad_is_present ();
gtk_widget_set_visible (WID ("touchpad_vbox"), touchpad_present);
gtk_widget_set_visible (WID ("touchpad_enabled_switch"), mouse_present);
g_settings_bind (touchpad_settings, "touchpad-enabled",
WID ("touchpad_enabled_switch"), "active",
@ -262,6 +263,7 @@ device_changed (GdkDeviceManager *device_manager,
present = mouse_is_present ();
gtk_widget_set_visible (WID ("mouse_vbox"), present);
gtk_widget_set_visible (WID ("touchpad_enabled_switch"), present);
}
GtkWidget *