diff options
Diffstat (limited to 'lib/egg/egg-action.c')
-rw-r--r-- | lib/egg/egg-action.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/egg/egg-action.c b/lib/egg/egg-action.c index 8cb099048..d7f24ebee 100644 --- a/lib/egg/egg-action.c +++ b/lib/egg/egg-action.c @@ -408,10 +408,18 @@ egg_action_sync_stock_id (EggAction *action, GParamSpec *pspec, } } -static GtkWidget * +static gboolean egg_action_create_menu_proxy (EggToolItem *tool_item, EggAction *action) { - return egg_action_create_menu_item (action); + GtkWidget *menu_item = egg_action_create_menu_item (action); + + g_object_ref (menu_item); + gtk_object_sink (GTK_OBJECT (menu_item)); + + egg_tool_item_set_proxy_menu_item (tool_item, "egg-action-menu-item", menu_item); + g_object_unref (menu_item); + + return TRUE; } static void |