[Geany-Devel] RFC: Keybindings rewrite

Yosef Or Boczko yoseforb at xxxxx
Mon Jun 9 22:36:46 UTC 2014



Regards,
Yosef Or Boczko 

בתאריך ג', יונ 10, 2014 בשעה 12:54 AM, Thomas Martitz 
<kugel at rockbox.org> כתב:
> Am 09.06.2014 22:39, schrieb Yosef Or Boczko:
> >
> >
> > Regards,
> > Yosef Or Boczko
> > בתאריך ב', יונ 9, 2014 בשעה 11:30 PM, Thomas Martitz 
> > <kugel at rockbox.org> כתב:
> >> Am 06.06.2014 16:24, schrieb Yosef Or Boczko:
> >>> I think it better to port to GAction instead of GtkAction 
> (GtkAction
> >>> has been deprecated since version 3.10 and will be removed in 
> GTK+ 4),
> >>> so it will be ease to port geany to GTK+ 4 in the future.
> >>>
> >>> Also, IIRC, there is a problem with GtkAction, wich cause to some 
> >>> accelactors
> >>> to work only when the keywoard layout on Englisg.
> >>> For example, most of the accelactors in epiphany dosn't work when 
> >>> the keywoard
> >>> layout is Hebrew, and it will be solved when someone will port 
> >>> epiphany from GtkAction
> >>> GAction.
> >>
> >> Can you check if that isn't a bug with Epiphany? And if it occurs 
> in 
> >> Geany as well? Geany's approach to keybindings is most trivial (at 
> >> it's core it does if (keyval == $KEY && modifier == $MODIFIER)). 
> Gtk 
> >> cannot do worse, so I expect it to have something more smart (or 
> be 
> >> equally dumb). So it sounds unlikely that Gtk has a locale-related 
> >> problem that Geany does not.
> >
> > I see the same problem with part of the accelactors in totem (the 
> > accels totem handle
> > by hand and not by GAction), and btw also somewhere in gnome-shell.
> >
> > I'm not sure, but I think gtkkeyhash.c[1] relate to this.
> >
> 
> So the keybings totem does by hand don't work but those that are 
> handled 
> by Gtk/Glib do work? And what about gnome-shell. It's all Gtk3 so I'd 
> expect it to use GAction.

I found for you an example in the code for totem.

- Ctrl+F to switch the search bar dosn't work when the keywoard layout 
in Hebrew
(note you need in the code to by the hand both Ctrl+F and Ctrl+f):
https://git.gnome.org/browse/totem/tree/src/totem-grilo.c#n1634

- Ctrl+A to select all work when the keywoard layout in Hebrew:
https://git.gnome.org/browse/totem/tree/src/totem-grilo.c#n2206

You can't use GtkKeyHash yourself because is a private API (you can
to copy it if you want).

About gnome-shell, it relate to mutter and clutter and not to GTK+ as I 
know.
Four mont ago, part of this problem (such Super+L) was solved in bug 
678001[1],
but part of another accels, like Ctrl+A to select text in ClutterText 
(same to
GtkEntry) still dosn't work with non-Latin layout, because the code in 
clutter
not use GtkKeyHash yet (we needs to copy the code from gtk+ to clutter 
or to wait
until ebassi will finish to merge clutter to gtk+ aka GTK+ 4).

[1] https://bugzilla.gnome.org/show_bug.cgi?id=678001

Regards,
Yosef Or Boczko

> 
> 
> What about current Geany?
> 
> Best regards
> _______________________________________________
> Devel mailing list
> Devel at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/devel



More information about the Devel mailing list