Hi,

On Thu, 2007-06-14 at 03:26 +0100, Alex Jones wrote:

> I've been looking at how Rhythmbox allows plugins to manipulate menus
> (via UI manager magic), and it dawned on me that there is no way to
> separate these out visually, other than to attempt to guess whether
> there should be a separator placed above and/or below what you're trying
> to insert. Of course, what I really want GTK to do is to insert
> separators *between* groups of menu items. Having this kind of ability
> would greatly simplify much goofy logic that is currently in place in a
> lot of applications to decide where separators should be placed.

You can already do that using GtkUIManager. Your application should add
placeholders for the groups that you described. Then add separators
between the placeholders. Plug-ins can then register in the placeholder
items. The smart separators will only be shown when needed.


Sven


_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to