[gnome-control-center] wacom: Fix 1-button stylus' button mapping



commit 26901fda58a7de4a937a392da683cccaf8651a1d
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 27 11:08:17 2012 +0000

    wacom: Fix 1-button stylus' button mapping
    
    Oopsie. We weren't setting the default value for the only
    button if you only had that button.

 panels/wacom/cc-wacom-stylus-page.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-stylus-page.c b/panels/wacom/cc-wacom-stylus-page.c
index 3a55672..a69eb2b 100644
--- a/panels/wacom/cc-wacom-stylus-page.c
+++ b/panels/wacom/cc-wacom-stylus-page.c
@@ -474,7 +474,7 @@ cc_wacom_stylus_page_new (GsdWacomStylus *stylus,
 
 	if (num_buttons == 2)
 		set_button_mapping_from_gsettings (GTK_COMBO_BOX (WID ("combo-topbutton")), priv->stylus_settings, 3);
-	if (num_buttons > 1)
+	if (num_buttons >= 1)
 		set_button_mapping_from_gsettings (GTK_COMBO_BOX (WID ("combo-bottombutton")), priv->stylus_settings, 2);
 	set_feel_from_gsettings (GTK_ADJUSTMENT (WID ("adjustment-tip-feel")), priv->stylus_settings);
 



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