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 703865 - Add GdKeyShortcutButton to capture keyboard shortcuts
Add GdKeyShortcutButton to capture keyboard shortcuts
Status: RESOLVED WONTFIX
Product: libgd
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: libgd maintainer(s)
libgd maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-07-09 12:45 UTC by Joaquim Rocha
Modified: 2015-03-03 12:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add GdKeyShortcutButton to capture keyboard shortcuts (23.60 KB, patch)
2013-07-09 12:45 UTC, Joaquim Rocha
none Details | Review
Add GdKeyShortcutButton to capture keyboard shortcuts (23.86 KB, patch)
2013-07-10 12:20 UTC, Joaquim Rocha
none Details | Review

Description Joaquim Rocha 2013-07-09 12:45:56 UTC
This is based in the patch for adding a GtkKeyShortcutButton as found in the bug https://bugzilla.gnome.org/show_bug.cgi?id=703038 .
This is, however, a stripped version of that widget because it was using some private things from GTK+ that had to be removed and, with it, one of the modes that the widget supports.

In case this button should be integrated in GTK+ one day, please use the patch in the bug mentioned above.
Comment 1 Joaquim Rocha 2013-07-09 12:45:58 UTC
Created attachment 248718 [details] [review]
Add GdKeyShortcutButton to capture keyboard shortcuts
Comment 2 Cosimo Cecchi 2013-07-09 18:49:32 UTC
Why do you need this in libgd? Since we're moving the bulk of the widgets from libgd to GTK+ proper, I'd rather avoid adding new classes in there at this point.
Comment 3 Bastien Nocera 2013-07-10 11:23:08 UTC
I would also rather it was a gtk widget so that most of that code could be shared with the cell renderer through private API.
Comment 4 Joaquim Rocha 2013-07-10 12:20:28 UTC
Created attachment 248830 [details] [review]
Add GdKeyShortcutButton to capture keyboard shortcuts

This new versions adds the key-shortcut-button keyword to the README.
Comment 5 Joaquim Rocha 2013-07-10 14:25:25 UTC
FWIW, I think that this is a useful widget for GTK+ and I also think it should rather be there than in libgd. As for sharing some internal code with gtkcellrendereraccel. Might be because I copied many things but from what I talked with Benjamin Otte and Matthias Clasen, the renderer shouldn't be touched.
Comment 6 Cosimo Cecchi 2013-07-10 15:56:23 UTC
(In reply to comment #5)
> FWIW, I think that this is a useful widget for GTK+ and I also think it should
> rather be there than in libgd.

OK, should we close this as INVALID/WONTFIX and move the discussion to bug 703038 then?
Comment 7 Debarshi Ray 2015-03-03 12:54:43 UTC
Closing as WONTFIX as I don't see any opposition to inclusion in GTK+.