[gtkada] Grab_Default
Emmanuel Briot
briot at adacore.com
Sat Aug 11 11:52:08 CEST 2007
On Monday 06 August 2007 10:29:37 Manuel Op de Coul wrote:
> I'm looking for the opposite function to Gtk.Widget.Grab_Default, i.e.
> the one that unsets a widget as default widget.
> Thanks in advance,
You might be able to do a Grab_Default on another widget, which will still the
default set on the original widget.
If that isn't what you want (for instance because you do not want a default
widget -- not recommended according to most GUI guidelines I am aware of),
you might be able to do it with:
Gtk.Object.Unset_Flags (Button, Gtk.Widget.Can_Default);
regards
Emmanuel
More information about the gtkada
mailing list