[gnome-control-center] wacom: Set combo-topbutton to current value for styli with > 2 buttons



commit 0c65e04b2e0748942dd8e803575fee949f16b854
Author: Jason Gerecke <killertofu gmail com>
Date:   Tue Oct 10 07:57:29 2017 -0700

    wacom: Set combo-topbutton to current value for styli with > 2 buttons
    
    Although the Wacom panel doesn't have explicit support for styli with more
    than two buttons, it tries to at least allow configuration of the upper and
    lower buttons. This commit fixes an incorrect conditional which prevents
    the panel from setting the combo box for the upper switch to the current
    setting.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=790028

 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 c382945..ff1ea5d 100644
--- a/panels/wacom/cc-wacom-stylus-page.c
+++ b/panels/wacom/cc-wacom-stylus-page.c
@@ -450,7 +450,7 @@ cc_wacom_stylus_page_new (CcWacomTool *stylus)
 
        update_stylus_ui (page, layout);
 
-       if (num_buttons == 2)
+       if (num_buttons >= 2)
                set_button_mapping_from_gsettings (GTK_COMBO_BOX (WID ("combo-topbutton")),
                                                   priv->stylus_settings, "secondary-button-action");
        if (num_buttons >= 1)


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