[gnome-control-center/gnome-3-4] 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/gnome-3-4] wacom: Make "Calibrate" button insensitive if there is no screen match
- Date: Fri, 18 May 2012 09:38:25 +0000 (UTC)
commit 385329b9b2c2a8a9c06518104eb5d9b34e4c8290
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 857cd01..43cd46f 100644
--- a/panels/wacom/cc-wacom-page.c
+++ b/panels/wacom/cc-wacom-page.c
@@ -1010,6 +1010,7 @@ update_tablet_ui (CcWacomPage *page,
int layout)
{
CcWacomPagePrivate *priv;
+ gboolean has_monitor = FALSE;
priv = page->priv;
@@ -1031,6 +1032,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]