diff options
-rw-r--r-- | libqmenumodel/src/gtk/gtkmenutrackeritem.c | 3 | ||||
-rw-r--r-- | libqmenumodel/src/gtk/gtkmenutrackeritem.h | 2 | ||||
-rw-r--r-- | libqmenumodel/src/unitymenuaction.h | 4 | ||||
-rw-r--r-- | libqmenumodel/src/unitymenumodel.cpp | 4 |
4 files changed, 7 insertions, 6 deletions
diff --git a/libqmenumodel/src/gtk/gtkmenutrackeritem.c b/libqmenumodel/src/gtk/gtkmenutrackeritem.c index dbc1580..e2ed1f0 100644 --- a/libqmenumodel/src/gtk/gtkmenutrackeritem.c +++ b/libqmenumodel/src/gtk/gtkmenutrackeritem.c @@ -683,7 +683,8 @@ gtk_menu_tracker_item_activated (GtkMenuTrackerItem *self) } void -gtk_menu_tracker_item_update_state (GtkMenuTrackerItem *self, GVariant *value) +gtk_menu_tracker_item_change_state (GtkMenuTrackerItem *self, + GVariant *value) { const gchar *action_name; diff --git a/libqmenumodel/src/gtk/gtkmenutrackeritem.h b/libqmenumodel/src/gtk/gtkmenutrackeritem.h index f38d9fe..59a7080 100644 --- a/libqmenumodel/src/gtk/gtkmenutrackeritem.h +++ b/libqmenumodel/src/gtk/gtkmenutrackeritem.h @@ -76,7 +76,7 @@ gboolean gtk_menu_tracker_item_get_should_request_show (GtkMenu void gtk_menu_tracker_item_activated (GtkMenuTrackerItem *self); -void gtk_menu_tracker_item_update_state (GtkMenuTrackerItem *self, +void gtk_menu_tracker_item_change_state (GtkMenuTrackerItem *self, GVariant *value); diff --git a/libqmenumodel/src/unitymenuaction.h b/libqmenumodel/src/unitymenuaction.h index ac5eadb..ef844fd 100644 --- a/libqmenumodel/src/unitymenuaction.h +++ b/libqmenumodel/src/unitymenuaction.h @@ -30,7 +30,7 @@ class UnityMenuAction : public QObject { Q_OBJECT Q_PROPERTY(QVariant name READ name NOTIFY nameChanged) - Q_PROPERTY(QVariant state READ state WRITE updateState NOTIFY stateChanged) + Q_PROPERTY(QVariant state READ state WRITE changeState NOTIFY stateChanged) Q_PROPERTY(int index READ index WRITE setIndex NOTIFY indexChanged) Q_PROPERTY(UnityMenuModel* model READ model WRITE setModel NOTIFY modelChanged) public: @@ -48,7 +48,7 @@ public: Q_INVOKABLE virtual void activate() = 0; - Q_INVOKABLE virtual void updateState(const QVariant& vvalue) = 0; + Q_INVOKABLE virtual void changeState(const QVariant& vvalue) = 0; Q_SIGNALS: void nameChanged(); diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp index 9cad955..c7afa2c 100644 --- a/libqmenumodel/src/unitymenumodel.cpp +++ b/libqmenumodel/src/unitymenumodel.cpp @@ -114,7 +114,7 @@ public: gtk_menu_tracker_item_activated (item); } - virtual void updateState(const QVariant& vvalue) + virtual void changeState(const QVariant& vvalue) { GtkMenuTrackerItem* item; @@ -122,7 +122,7 @@ public: if (!item) return; GVariant* data = Converter::toGVariant(vvalue); - gtk_menu_tracker_item_update_state (item, data); + gtk_menu_tracker_item_change_state (item, data); g_variant_unref(data); } |