[gnome-photos] application: Change the GAction API that we use for consistency



commit 967cfeeaf1ecf14a456bef509f3865c148111544
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Oct 8 15:39:25 2015 +0200

    application: Change the GAction API that we use for consistency
    
    Settling on a smaller subset of the GAction, GActionMap and
    GActionGroup APIs makes it easier to grep them. Otherwise, one has to
    grep for a bunch of different strings to find out all the uses of the
    actions.

 src/photos-application.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index b78b2fa..fd0d916 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -319,7 +319,7 @@ photos_application_launch_search (PhotosApplication *self, const gchar* const *t
   g_free (str);
 
   state = g_variant_new ("b", TRUE);
-  g_action_group_change_action_state (G_ACTION_GROUP (self), "search", state);
+  g_action_change_state (G_ACTION (priv->search_action), state);
 
   priv->activation_timestamp = timestamp;
   g_application_activate (G_APPLICATION (self));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]