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
This commit is contained in:
Jason Gerecke 2017-10-10 07:57:29 -07:00 committed by Carlos Garnacho
parent 3bd808127d
commit 0c65e04b2e

View file

@ -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)