We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5381b42 commit 80edde8Copy full SHA for 80edde8
tests/functional/menus/Deeper.cpp
@@ -106,9 +106,9 @@ createMenu()
106
{
107
shared_ptr<GMenuItem> item(g_menu_item_new("Save", "app.save"), &g_object_deleter);
108
g_menu_append_item(fileMenu.get(), item.get());
109
- GSimpleAction *action = G_SIMPLE_ACTION(g_simple_action_new("save", NULL));
110
- g_simple_action_set_enabled(action, FALSE);
111
- g_action_map_add_action(G_ACTION_MAP(ag.get()), G_ACTION(action));
+ shared_ptr<GSimpleAction> action(g_simple_action_new("save", NULL), &g_object_deleter);
+ g_simple_action_set_enabled(action.get(), FALSE);
+ g_action_map_add_action(G_ACTION_MAP(ag.get()), G_ACTION(action.get()));
112
}
113
114
shared_ptr<GMenuItem> item(g_menu_item_new("Quit", "app.quit"), &g_object_deleter);
0 commit comments