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 679720 - Hotkey Zoom Ctrl + '+'
Hotkey Zoom Ctrl + '+'
Status: RESOLVED OBSOLETE
Product: planner
Classification: Other
Component: Gantt
0.14.x
Other Linux
: Normal minor
: 1.0
Assigned To: planner-maint
planner-maint
Depends on: 695917
Blocks:
 
 
Reported: 2012-07-11 00:19 UTC by jmaslibre
Modified: 2021-06-09 20:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jmaslibre 2012-07-11 00:19:03 UTC
This[0] bug was reported in the Debian Bug Tracker, so I am forwarding it here.

"Hotkey Zoom Ctrl + '+' does not work with Numpad '+' 
(the other '+' works here)"

[0] http://bugs.debian.org/626423

Cheers,
Comment 1 Tobias Mueller 2012-07-11 00:43:27 UTC
Yep, I can reproduce.
Comment 2 jmaslibre 2012-07-18 05:44:06 UTC
Hello,

After working a bit to try to fix this, with Wences Arana, we can see that the shorcuts are defined in:

src/planner-gantt-view.c

In line 177 there is a GtkActionEntry [0]:


  { "ZoomIn",          GTK_STOCK_ZOOM_IN,              N_("_Zoom In"),                                     
          "<control>plus",     N_("Zoom in"),

so we guess that we need something like


  { "ZoomInKP",          GTK_STOCK_ZOOM_IN,              N_("_Zoom In"),                                     
          "<control>KP_Add",     N_("Zoom in"),

but that is not enough.

For reference:

Gnumeric does something similar, in line 2319:

http://git.gnome.org/browse/gnumeric/tree/src/wbc-gtk-actions.c

[0] http://developer.gnome.org/gtk/2.24/GtkActionGroup.html#GtkActionEntry
Comment 3 Alexandre Franke 2013-05-14 15:00:14 UTC
It is not possible at the moment to have multiple shortcuts for the same action with GtkActionEntry.

See bug 695917.
Comment 4 Alexandre Franke 2013-05-17 08:21:27 UTC
I've had a look at the way Epyphany handles that. Basically they're working around the GtkActionEntry limitation by adding an additional event handler. They have a long comment that explains that it's kind of a hack and that it shouldn't really be done this way. I'm going to follow that advice and stop investigating ways to work around the limitation. Thus this bug will remain open until GTK+ has been fixed to solve that issue.
Comment 5 GNOME Infrastructure Team 2021-06-09 20:47:05 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/World/planner/-/issues/215.