On 15.01.2010 08:32, Jeffrey Ray wrote:
I am attempting to use GtkUIManager to create a toolbar with a
GtkMenuToolButton item. The documentation for GtkUIManager has this to say:

toolitem
a GtkToolItem
<http://library.gnome.org/devel/gtk/stable/GtkToolItem.html> subclass,
the exact type depends on the action. Note that toolitem elements may
contain a menu element, but only if their associated action specifies a
GtkMenuToolButton
<http://library.gnome.org/devel/gtk/stable/GtkMenuToolButton.html> as proxy

But i'm not exactly sure what that means.

I haven't done much with GtkUIManager, so I'm not sure either. At which point in the code did you try calling connect_proxy()? I think it needs to be done before $ui->get_widget or maybe even before $ui->insert_action_group. Do you have a small but complete example that demonstrates your problem?

The documentation says the connect proxy method is deprecated since 2.16
- which is what I am running - and that is should use
|gtk_activatable_set_related_action()|
<http://library.gnome.org/devel/gtk/unstable/GtkActivatable.html#gtk-activatable-set-related-action>
- but calling set_related_function on a Gtk2::MenuToolButton throws an
error saying can't find set_related_action.

That's because the bindings don't wrap GtkActivatable yet, unfortunately. Any volunteers?
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to