Make 4 incompatible changes to the GAction API
[platform/upstream/glib.git] / gio / gaction.h
index 2beca10..a0f3960 100644 (file)
@@ -47,7 +47,7 @@ typedef struct _GActionInterface                            GActionInterface;
  * @get_state_hint: the virtual function pointer for g_action_get_state_hint()
  * @get_enabled: the virtual function pointer for g_action_get_enabled()
  * @get_state: the virtual function pointer for g_action_get_state()
- * @set_state: the virtual function pointer for g_action_set_state()
+ * @change_state: the virtual function pointer for g_action_change_state()
  * @activate: the virtual function pointer for g_action_activate().  Note that #GAction does not have an
  *            'activate' signal but that implementations of it may have one.
  *
@@ -65,9 +65,9 @@ struct _GActionInterface
 
   gboolean             (* get_enabled)          (GAction  *action);
   GVariant *           (* get_state)            (GAction  *action);
-  void                 (* set_state)            (GAction  *action,
-                                                 GVariant *value);
 
+  void                 (* change_state)         (GAction  *action,
+                                                 GVariant *value);
   void                 (* activate)             (GAction  *action,
                                                  GVariant *parameter);
 };
@@ -81,9 +81,9 @@ GVariant *              g_action_get_state_hint                         (GAction
 
 gboolean                g_action_get_enabled                            (GAction            *action);
 GVariant *              g_action_get_state                              (GAction            *action);
-void                    g_action_set_state                              (GAction            *action,
-                                                                         GVariant           *value);
 
+void                    g_action_change_state                           (GAction            *action,
+                                                                         GVariant           *value);
 void                    g_action_activate                               (GAction            *action,
                                                                          GVariant           *parameter);
 G_END_DECLS