diff options
author | Ted Gould <ted@gould.cx> | 2013-08-22 04:32:13 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-08-22 04:32:13 +0000 |
commit | 3044d4711cf54184bb1ecfdb9d8db5243de9bc58 (patch) | |
tree | 2152a01c63cd3c0fd37f95cabe7afde0addecd06 /test | |
parent | ff533d23778b9799765bfed600b676dc30a934db (diff) | |
parent | a8c93f9ae22d515c092bed0e4dca7873a78f2d88 (diff) | |
download | ayatana-indicator-messages-3044d4711cf54184bb1ecfdb9d8db5243de9bc58.tar.gz ayatana-indicator-messages-3044d4711cf54184bb1ecfdb9d8db5243de9bc58.tar.bz2 ayatana-indicator-messages-3044d4711cf54184bb1ecfdb9d8db5243de9bc58.zip |
Migrate away from deprecated function. Fixes: https://bugs.launchpad.net/bugs/1215180.
Approved by Charles Kerr, PS Jenkins bot.
Diffstat (limited to 'test')
-rw-r--r-- | test/test-gactionmuxer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test-gactionmuxer.cpp b/test/test-gactionmuxer.cpp index efd6e4f..498d3dd 100644 --- a/test/test-gactionmuxer.cpp +++ b/test/test-gactionmuxer.cpp @@ -190,7 +190,7 @@ TEST(GActionMuxerTest, ActionAttributes) { group = g_simple_action_group_new (); action = g_simple_action_new ("one", G_VARIANT_TYPE_STRING); - g_simple_action_group_insert (group, G_ACTION (action)); + g_action_map_add_action (G_ACTION_MAP(group), G_ACTION (action)); muxer = g_action_muxer_new (); g_action_muxer_insert (muxer, "first", G_ACTION_GROUP (group)); @@ -275,7 +275,7 @@ TEST(GActionMuxerTest, Signals) { group = g_simple_action_group_new (); action = g_simple_action_new ("one", G_VARIANT_TYPE_STRING); - g_simple_action_group_insert (group, G_ACTION (action)); + g_action_map_add_action (G_ACTION_MAP(group), G_ACTION (action)); g_object_unref (action); muxer = g_action_muxer_new (); @@ -300,7 +300,7 @@ TEST(GActionMuxerTest, Signals) { closure.name = "first.two"; action = g_simple_action_new_stateful ("two", G_VARIANT_TYPE_STRING, g_variant_new_string ("on")); - g_simple_action_group_insert (group, G_ACTION (action)); + g_action_map_add_action (G_ACTION_MAP(group), G_ACTION (action)); EXPECT_TRUE (closure.signal_ran); /* disable the action */ @@ -317,7 +317,7 @@ TEST(GActionMuxerTest, Signals) { /* remove the first action */ closure.signal_ran = FALSE; closure.name = "first.one"; - g_simple_action_group_remove (group, "one"); + g_action_map_remove_action (G_ACTION_MAP(group), "one"); EXPECT_TRUE (closure.signal_ran); /* remove the whole group, should be notified about "first.two" */ @@ -361,14 +361,14 @@ TEST(GActionMuxerTest, ActivateAction) { group = g_simple_action_group_new (); action = g_simple_action_new ("one", G_VARIANT_TYPE_STRING); - g_simple_action_group_insert (group, G_ACTION (action)); + g_action_map_add_action (G_ACTION_MAP(group), G_ACTION (action)); g_signal_connect (action, "activate", G_CALLBACK (action_activated), (gpointer) &signal_ran); g_object_unref (action); action = g_simple_action_new_stateful ("two", NULL, g_variant_new_string ("on")); - g_simple_action_group_insert (group, G_ACTION (action)); + g_action_map_add_action (G_ACTION_MAP(group), G_ACTION (action)); g_signal_connect (action, "change-state", G_CALLBACK (action_change_state), (gpointer) &signal_ran); g_object_unref (action); |