[gnome-control-center] wacom: Follow the GsdWacomDevice reversible property
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Follow the GsdWacomDevice reversible property
- Date: Thu, 24 Nov 2011 19:16:11 +0000 (UTC)
commit 2baac2b28e09fb2dbf32153b6b662affbfe98419
Author: Bastien Nocera <hadess hadess net>
Date: Thu Nov 24 19:12:14 2011 +0000
wacom: Follow the GsdWacomDevice reversible property
panels/wacom/cc-wacom-page.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-page.c b/panels/wacom/cc-wacom-page.c
index 4ae6446..f20626c 100644
--- a/panels/wacom/cc-wacom-page.c
+++ b/panels/wacom/cc-wacom-page.c
@@ -471,7 +471,13 @@ cc_wacom_page_new (GsdWacomDevice *pad,
set_mode_from_gsettings (GTK_COMBO_BOX (WID ("combo-tabletmode")), page);
set_feel_from_gsettings (GTK_ADJUSTMENT (WID ("adjustment-tip-feel")), priv->stylus_settings);
set_feel_from_gsettings (GTK_ADJUSTMENT (WID ("adjustment-eraser-feel")), priv->eraser_settings);
- set_left_handed_from_gsettings (page);
+
+ if (gsd_wacom_device_reversible (pad) == FALSE) {
+ gtk_widget_hide (WID ("label-left-handed"));
+ gtk_widget_hide (WID ("switch-left-handed"));
+ } else {
+ set_left_handed_from_gsettings (page);
+ }
gtk_label_set_text (GTK_LABEL (WID ("label-tabletmodel")), gsd_wacom_device_get_name (pad));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]