[gnome-settings-daemon] wacom: dismiss the calibration notification if it happened through other means



commit 48c9f4f5815753df93ca0ac100430ac081a8c801
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Dec 5 18:27:18 2013 +0100

    wacom: dismiss the calibration notification if it happened through other means
    
    Listen for changes in the last calibration resolution, so if the user did the
    calibration directly through g-c-c instead of the notification, the notification
    is dismissed from the notification area.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700461

 plugins/wacom/gsd-wacom-manager.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 34110ab..ac65a82 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -135,6 +135,8 @@ static void     gsd_wacom_manager_class_init  (GsdWacomManagerClass *klass);
 static void     gsd_wacom_manager_init        (GsdWacomManager      *wacom_manager);
 static void     gsd_wacom_manager_finalize    (GObject              *object);
 
+static void     wacom_device_calibration_check (GsdWacomDevice  *device);
+
 static gboolean osd_window_toggle_visibility (GsdWacomManager *manager,
                                               GsdWacomDevice  *device);
 
@@ -932,8 +934,9 @@ wacom_settings_changed (GSettings      *settings,
                    type != WACOM_TYPE_TOUCH)
                        set_absolute (device, g_settings_get_boolean (settings, key));
        } else if (g_str_equal (key, KEY_LAST_CALIBRATED_RESOLUTION)) {
-                /* We do nothing as this is used only for
-                   checking whether calibration is needed*/
+                if (type == WACOM_TYPE_STYLUS &&
+                    gsd_wacom_device_is_screen_tablet (device))
+                        wacom_device_calibration_check (device);
        } else if (g_str_equal (key, KEY_AREA)) {
                if (type != WACOM_TYPE_CURSOR &&
                    type != WACOM_TYPE_PAD &&


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]