[gnome-control-center] mouse: Don't show touchpad disable button when there isn't mouse
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] mouse: Don't show touchpad disable button when there isn't mouse
- Date: Thu, 11 Oct 2012 15:17:37 +0000 (UTC)
commit 5b2818c482ad7aa44057743b5ab3343bd777e622
Author: Ondrej Holy <oholy redhat com>
Date: Thu Oct 11 10:32:42 2012 +0200
mouse: Don't show touchpad disable button when there isn't mouse
https://bugzilla.gnome.org/show_bug.cgi?id=685583
panels/mouse/gnome-mouse-properties.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/mouse/gnome-mouse-properties.c b/panels/mouse/gnome-mouse-properties.c
index 630af3c..66f3d11 100644
--- a/panels/mouse/gnome-mouse-properties.c
+++ b/panels/mouse/gnome-mouse-properties.c
@@ -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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]