[gnome-control-center/gnome-3-4] wacom: Hide "Map Buttons" button if no pad is found
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-4] wacom: Hide "Map Buttons" button if no pad is found
- Date: Fri, 18 May 2012 09:46:14 +0000 (UTC)
commit ffb788a428afa853061c886d671e64eabc7d8060
Author: Bastien Nocera <hadess hadess net>
Date: Fri May 18 10:44:36 2012 +0100
wacom: Hide "Map Buttons" button if no pad is found
As done in the ff31b771 commit on master.
https://bugzilla.gnome.org/show_bug.cgi?id=676005
panels/wacom/cc-wacom-page.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-page.c b/panels/wacom/cc-wacom-page.c
index 43cd46f..e9f17e4 100644
--- a/panels/wacom/cc-wacom-page.c
+++ b/panels/wacom/cc-wacom-page.c
@@ -1014,7 +1014,8 @@ update_tablet_ui (CcWacomPage *page,
priv = page->priv;
- /* FIXME Handle ->pad being NULL and hide the pad buttons */
+ /* Hide the pad buttons if no pad is present */
+ gtk_widget_set_visible (WID ("map-buttons-button"), priv->pad != NULL);
switch (layout) {
case LAYOUT_NORMAL:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]