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 710053 - Use xchat-gnome accelerators
Use xchat-gnome accelerators
Status: RESOLVED FIXED
Product: polari
Classification: Applications
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2013-10-13 18:50 UTC by Guillaume Desmottes
Modified: 2014-09-10 15:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
use xchat-gnome accelerators (1.45 KB, patch)
2013-10-13 18:50 UTC, Guillaume Desmottes
none Details | Review
app: Provide some xchat-gnome compatibility shortcuts (1.73 KB, patch)
2014-02-22 00:53 UTC, Florian Müllner
none Details | Review
app: Use set_accels_for_action() (3.98 KB, patch)
2014-09-10 15:29 UTC, Florian Müllner
committed Details | Review
app: Provide some xchat-gnome compatibility shortcuts (1.53 KB, patch)
2014-09-10 15:29 UTC, Florian Müllner
committed Details | Review

Description Guillaume Desmottes 2013-10-13 18:50:00 UTC
Any chance I can convince you to use xchat-gnome accelerators? :)
Comment 1 Guillaume Desmottes 2013-10-13 18:50:15 UTC
Created attachment 257187 [details] [review]
use xchat-gnome accelerators

Make transition from xchat-gnome easier.
Comment 2 Florian Müllner 2013-10-13 19:11:00 UTC
(In reply to comment #0)
> Any chance I can convince you to use xchat-gnome accelerators? :)

While we are not technically using tabs, the use case is sufficiently close IMHO to justify the reuse of the standard GNOME shortcuts. So how about adding the xchat ones rather than replacing the current ones?
Comment 3 Florian Müllner 2013-10-13 19:38:45 UTC
I should probably add that xchat (e.g. not xchat-gnome) uses ctrl-pgUp/pgDown as well ...
Comment 4 Guillaume Desmottes 2013-10-13 20:42:00 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > Any chance I can convince you to use xchat-gnome accelerators? :)
> 
> While we are not technically using tabs, the use case is sufficiently close
> IMHO to justify the reuse of the standard GNOME shortcuts. So how about adding
> the xchat ones rather than replacing the current ones?

Yeah adding would be best, but gtk_application_add_accelerator() doesn't allow us to have more than one accelerator for the same action.
Is it possible to do so or should we add "fake" actions?
Comment 5 Florian Müllner 2014-02-22 00:53:29 UTC
Created attachment 269965 [details] [review]
app: Provide some xchat-gnome compatibility shortcuts

Muscle memory and stuff ...


Whoops, had this lying around for ages and forgot to attach it :-(
Comment 6 Florian Müllner 2014-09-10 15:29:26 UTC
Created attachment 285831 [details] [review]
app: Use set_accels_for_action()

GtkApplication.add_accelerator() has been deprecated in favor of
set_accels_for_action(), which has the added benefit of supporting
multiple accels per action.
Comment 7 Florian Müllner 2014-09-10 15:29:31 UTC
Created attachment 285832 [details] [review]
app: Provide some xchat-gnome compatibility shortcuts

Muscle memory and stuff ...
Comment 8 Florian Müllner 2014-09-10 15:32:17 UTC
We got a non-hacky way of having multiple accels per action this cycle, so let's do this now ...

Attachment 285831 [details] pushed as 5825c2e - app: Use set_accels_for_action()
Attachment 285832 [details] pushed as b26ca6e - app: Provide some xchat-gnome compatibility shortcuts