wacom: Add show help window to the list of actions
for pad buttons, once the OSD window patch is merged in gnome-settings-daemon. https://bugzilla.gnome.org/show_bug.cgi?id=683567
This commit is contained in:
parent
28ea296f09
commit
bae5488909
1 changed files with 7 additions and 1 deletions
|
@ -117,7 +117,8 @@ static struct {
|
|||
} action_table[] = {
|
||||
{ GSD_WACOM_ACTION_TYPE_NONE, NC_("Wacom action-type", "None") },
|
||||
{ GSD_WACOM_ACTION_TYPE_CUSTOM, NC_("Wacom action-type", "Send Keystroke") },
|
||||
{ GSD_WACOM_ACTION_TYPE_SWITCH_MONITOR, NC_("Wacom action-type", "Switch Monitor") }
|
||||
{ GSD_WACOM_ACTION_TYPE_SWITCH_MONITOR, NC_("Wacom action-type", "Switch Monitor") },
|
||||
{ GSD_WACOM_ACTION_TYPE_HELP, NC_("Wacom action-type", "Show On-Screen Help") }
|
||||
};
|
||||
|
||||
#define WACOM_C(x) g_dpgettext2(NULL, "Wacom action-type", x)
|
||||
|
@ -738,6 +739,11 @@ setup_mapping_treeview (CcWacomPage *page)
|
|||
gsd_wacom_device_is_screen_tablet (priv->stylus))
|
||||
continue;
|
||||
|
||||
/* Do not list on-screen help if libwacom do no provide a layout */
|
||||
if (action_table[i].action_type == GSD_WACOM_ACTION_TYPE_HELP &&
|
||||
gsd_wacom_device_get_layout_path (priv->stylus) == NULL)
|
||||
continue;
|
||||
|
||||
gtk_list_store_append (priv->action_store, &iter);
|
||||
gtk_list_store_set (priv->action_store, &iter,
|
||||
ACTION_NAME_COLUMN, WACOM_C(action_table[i].action_name),
|
||||
|
|
Loading…
Add table
Reference in a new issue