GNOME Bugzilla – Bug 673892
Make calibrate button insensitive if matching tablet is not found
Last modified: 2012-05-18 09:38:33 UTC
Created attachment 211816 [details] [review] Proposed patch In the case of a screen tablet, calibration cannot work if the monitor for the tablet cannot be matched. The attached patch make the "Calibrate" button insensitive in this case.
Review of attachment 211816 [details] [review]: Please use git format-patch to generate the patch.
Created attachment 211928 [details] [review] Proposed patch (In reply to comment #1) > Please use git format-patch to generate the patch. Sure, here it comes :)
Review of attachment 211928 [details] [review]: ::: panels/wacom/cc-wacom-page.c @@ +1056,3 @@ gtk_widget_show (WID ("button-calibrate")); + if (gsd_wacom_device_get_display_monitor (page->priv->stylus) < 0) + gtk_widget_set_sensitive (WID ("button-calibrate"), FALSE); tbh, I'd prefer using a temporary variable here to avoid duplicating calls. Something like gbool has_monitor = gsd_wacom_device_get_display_monitor (page->priv->stylus) < 0; gtk_widget_set_sensitive (WID ("button-calibrate"), has_monitor);
Created attachment 211962 [details] [review] 0001-wacom-Make-Calibrate-button-insensitive-if-there-is-.patch
Review of attachment 211962 [details] [review]: Looks good.
ping?
(In reply to comment #6) > ping? Ping for what? :) At that point, you'll have to explain why neither of you have GNOME git accounts...
Fixed in gnome-3-4 and master.