On Tue, 11 Jul 2000, xander wrote:
> > On Tue, Jul 11, 2000 at 12:20:03AM +0200, xander wrote:
> > > Are accelerated buttons available? E.g. like with GtkItemFactory
> > > "_OK" & "_Cancel" with gtk_label_parse_uline stuff.
> >
> > Yes.
> >
> > It's a bit of a pain in GTK+ to add that type of accelerator (they're
> > called "mnemonics" in Windows and Motif, to distinguish them from
> > "accelerators" not tied to a letter of the label, e.g. Ctrl+C for
> > "copy", although Qt calls 'em both "accelerators" as GTK+ does).
>
> Cool! Between my post and yours I figured out the same thing :)
> Now, here's the real pain:
>
> I've got a 'mnemonic' button with GDK_Delete accelerator tight the same
> way you described onto the main window.
>
> Apparently the clist widget catches this button and I'm left with nothing
> (i.e. I don't know when it's pressed). Similar situations occur with other
> keys. How do I rebind these keys from clist to one of my own button in
> order to get GDK_Delete to send a "clicked" signal for my button?
The only way to do this is to catch "key-press-event", compare the key with
GDK_Delete and manually emit "clicked" signal for that button if it's
GDK_Delete.
> Regards,
> xander
>
>[...]
Best regards,
-Vlad
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list