On Fri, 2006-08-11 at 18:33 +0200, Lars Clausen wrote:
> On Fri, 2006-08-11 at 16:34 +0200, Uli Staerk wrote:
> > If you doubleclick an object in the sheet, the properties-dialog
> > appears.
> > 
> > Is it possible to focus the name input field, so you can directly
> > change/enter the name for the object?
> 
> That ought to be easy.

I'd have thought there was an easier way than to recurse through the
properties widgets, but there doesn't appear to be a standard GTK "give
focus to first focusable thing in here".  The recursion seems to work
(see tonights update), but the home-made widgets don't use the focus
very well.

> > Is it also possible to register a callback so that if ESC is pressed
> > anytime during the properties dialog the dialog is closed (discard
> > changes) and of you press enter, the dialog closes and applies the
> > changes?
> 
> I seem to remember that being attempted a while ago without success.

Interestingly, adding the automatic focus for the first focusable thing
in the properties seems to have made Enter work (at least when said
thing doesn't grab Enter itself).  Esc already worked before.

-Lars

_______________________________________________
Dia-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia

Reply via email to