[gnome-control-center] wacom: Make "Calibrate" button insensitive if there is no screen match
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Make "Calibrate" button insensitive if there is no screen match
- Date: Fri, 18 May 2012 09:36:18 +0000 (UTC)
commit 17c2e2c2576cc7fd116c930210a1baeb539df1b6
Author: Peter Hutterer <peter hutterer who-t net>
Date: Thu Apr 12 15:36:08 2012 +0200
wacom: Make "Calibrate" button insensitive if there is no screen match
If no match is found for the screen tablet, calibration will fail anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=673892
panels/wacom/cc-wacom-page.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-page.c b/panels/wacom/cc-wacom-page.c
index 3a3128a..40ac167 100644
--- a/panels/wacom/cc-wacom-page.c
+++ b/panels/wacom/cc-wacom-page.c
@@ -1032,6 +1032,7 @@ update_tablet_ui (CcWacomPage *page,
int layout)
{
CcWacomPagePrivate *priv;
+ gboolean has_monitor = FALSE;
priv = page->priv;
@@ -1054,6 +1055,9 @@ update_tablet_ui (CcWacomPage *page,
gtk_widget_destroy (WID ("display-mapping-button"));
gtk_widget_show (WID ("button-calibrate"));
+ if (gsd_wacom_device_get_display_monitor (page->priv->stylus) >= 0)
+ has_monitor = TRUE;
+ gtk_widget_set_sensitive (WID ("button-calibrate"), has_monitor);
gtk_widget_show (WID ("display-link"));
gtk_container_child_set (CWID ("main-grid"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]