diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-10-01 09:36:23 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-10-01 09:36:23 -0400 |
commit | 587012a2f943d8a91cac53634a62f051305d7502 (patch) | |
tree | 0927f05d65ef990d3abae227740872a84e0b8bd0 /examples | |
parent | 5abff7bd4c2da480578a1a44a128950e994c4ae8 (diff) | |
download | gtk+-587012a2f943d8a91cac53634a62f051305d7502.tar.gz |
action-namespace example: use non-deprecated function
g_simple_action_group_add_entries() is deprecated since we added the GActionMap
interface, so use its equivalent function instead.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/action-namespace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/action-namespace.c b/examples/action-namespace.c index 147633a676..16d48cb64d 100644 --- a/examples/action-namespace.c +++ b/examples/action-namespace.c @@ -83,8 +83,7 @@ activate (GApplication *app, win = gtk_application_window_new (GTK_APPLICATION (app)); doc_actions = g_simple_action_group_new (); - g_simple_action_group_add_entries (doc_actions, doc_entries, - G_N_ELEMENTS (doc_entries), win); + g_action_map_add_action_entries (G_ACTION_MAP (doc_actions), doc_entries, G_N_ELEMENTS (doc_entries), win); g_action_map_add_action_entries (G_ACTION_MAP (win), win_entries, G_N_ELEMENTS (win_entries), win); |