James Henstridge wrote:
> 
> I have almost got the new version of libglade ready.  It has support for
> most (all?) of the new features in glade-0.5.2.  It has the new widgets,
> and has support for underline accelerators on GtkLabels (you will need to
> load and save the file with glade-0.5.2 for this to work correctly.
> 
> One feature I have added to the underline accelerator support that is not
> in glade is the page switching idea I mentioned in my previous message.
> Basically, if you set an underline accelerator on a GtkLabel in one of the
> tabs of a notebook or GnomePropertyBox, using that accelerator will cause
> the corresponding page to be displayed (if it is not currently).
> 
> You can test this out using the test-libglade test program.  I think it
> would be a good idea to add support for this to the next glade release.

OK. I see you setup the accelerators to emit 'grab-focus' on the notebook
page and then connected your own signal handler to that to switch pages.
It is cleaner than my idea, but are you sure this is 100% reliable with
no strange side-effects? (I can't see any yet, but it feels slightly dodgy.)

 
> I have not implemented switching of accelerator groups on notebook page
> flips yet.  I have some ideas how to get it working, but I don't know what
> to do about the notebook within a notebook case.

I think the notebook in a notebook case is horrible. I'm not sure we should
support this dynamic switching of accel groups in Glade/libglade, since this
should all really be supported in GTK+.

It's too much work for the developer to do, so even if we support it, very
few other people will.

I've posted to gtk-devel about this again. I think a small change in GTK+
would make this a lot easier for us. (Change it so that the signals are only
emitted when the focus widget is visible/mapped. Thus any accelerators on
hidden notebook pages would just be skipped.)

Damon


+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to