[Glade-users] glade-3 and GtkActionGroup
Tristan Van Berkom
tristan.van.berkom at gmail.com
Fri Apr 17 10:29:02 EDT 2009
On Fri, Apr 17, 2009 at 1:38 AM, John Stebbins <stebbins at jetheaddev.com> wrote:
> Tristan Van Berkom wrote:
>> Ok, as I just said in another email, ui merging is just something we dont have
>> GTK+ wide, its GtkUIManager specific, GtkBuilder supports a round-about
>> way of loading menus via a uimanager object, currently from Glade though;
>> supporting GtkUIManager as a dual standard for building menus and toolbars
>> is just not worth it IMO just for the silly merge feature.
>>
>> Out of curiousity, what is it that makes a menu merged with uimanager
>> better than a menu with actions of which some are hidden ?
>>
>> Cheers,
>> -Tristan
>>
> I thought about reserving a few entries and hiding them. Probably still
> not a bad idea. I don't know in advance how many entries I might need.
> But there's a practical limit. I wouldn't want the menu to get overly
> large anyway. I get a list of all the physical dvd devices connected to
> the system using GtkVolumeMonitor and add them to the file menu for
> quick access. The application is a video transcoder called HandBrake.
For a dynamic menu, you might also consider just building that submenu
on the fly, should be able to just hook into the activate-item on the built
menuitem, and generate the submenu items from there at popup time...
Cheers,
-Tristan
More information about the Glade-users
mailing list