Re: gtk 2.10 key bindings



Jaroslav Šmíd on 07/17/2010 01:05 PM wrote:
Well, shouldn't you modify ~/.gtkrc-2.0 for GTK 2? .gtkrc should be for
GTK 1.

[I just noticed this was sent to me off list. Posting to list.]

Let me clarify on "none of those classes are taking effect".

$ cat ~/.gtkrc-2.0
binding "gtk-override"
{
    bind "<shift>F10" { "move-cursor" (visual-positions, 3, 0)  }
}

class "*" binding "gtk-override"

GtkEntry and GtkTextBuffer fields are working as I can visually see the cursor moved to the right 3 characters. However, in the Gnome Terminal, SHIFT+F10 still displays the context menu as if I right-clicked. Logging out/in does not help. Using "~/.gtkrc" and/or "~/.gtkrc-2.0" does not help.

Thanks,
Michael



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]