After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679067 - Add new functions to pad buttons mapping
Add new functions to pad buttons mapping
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Wacom
3.5.x
Other Linux
: Normal enhancement
: ---
Assigned To: Peter Hutterer
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-06-28 14:44 UTC by Olivier Fourdan
Modified: 2012-08-21 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (11.31 KB, patch)
2012-06-28 14:51 UTC, Olivier Fourdan
none Details | Review
Updated patch (11.45 KB, patch)
2012-07-03 11:29 UTC, Olivier Fourdan
none Details | Review
Updated patch without the OSD/HELP window function (11.16 KB, patch)
2012-08-21 12:43 UTC, Olivier Fourdan
reviewed Details | Review
Screenshot of the UI with the proposed patch (98.57 KB, image/png)
2012-08-21 12:55 UTC, Olivier Fourdan
  Details
Updated patch (11.59 KB, patch)
2012-08-21 14:25 UTC, Olivier Fourdan
none Details | Review

Description Olivier Fourdan 2012-06-28 14:44:13 UTC
Bug 679062 and bug 668908 implements new functionality that can be assigned to the buttons of the pad, this bug is to allow the user to select these alternate functions in the button mapping UI.
Comment 1 Olivier Fourdan 2012-06-28 14:51:40 UTC
Created attachment 217531 [details] [review]
Proposed patch

This patch adds a new column to the existing treeview with a combo to select the type of actions assigned to each button as seen in the mockups on [1]

[1] https://live.gnome.org/Design/SystemSettings/Tablet#Mockups
Comment 2 Olivier Fourdan 2012-07-03 11:29:43 UTC
Created attachment 217925 [details] [review]
Updated patch

Updated patch, do not show the "Switch monitor" function for screen tablets.
Comment 3 Olivier Fourdan 2012-08-21 12:43:15 UTC
Created attachment 221987 [details] [review]
Updated patch without the OSD/HELP window function

This patch adds the "Switch monitor" function to possible actions on pad buttons, for the UI part of bug 668908 (the HELP/OSD window part is left out for now)
Comment 4 Olivier Fourdan 2012-08-21 12:55:57 UTC
Created attachment 221988 [details]
Screenshot of the UI with the proposed patch
Comment 5 Bastien Nocera 2012-08-21 13:09:13 UTC
Review of attachment 221987 [details] [review]:

::: panels/wacom/cc-wacom-page.c
@@ +588,3 @@
+get_action_name (GsdWacomActionType action_type)
+{
+	gint i;

That would work, no?
return _(action_table[action_type].action_name);

@@ +744,3 @@
+	priv->action_store = gtk_list_store_new (ACTION_N_COLUMNS, G_TYPE_STRING, G_TYPE_INT);
+	gtk_list_store_append (priv->action_store, &iter);
+	gtk_list_store_set (priv->action_store, &iter,

Can't you filll it with a loop on the action_table array?
Comment 6 Olivier Fourdan 2012-08-21 14:25:07 UTC
Created attachment 222005 [details] [review]
Updated patch

Updated patch after review from comment #5, also use the define for all monitors added in the patch for bug 668908 for clarity.
Comment 7 Olivier Fourdan 2012-08-21 16:09:43 UTC
Pushed to git