aboutsummaryrefslogtreecommitdiff
path: root/src/app-section.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-08-20 22:10:17 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-08-20 22:10:17 +0200
commitce52ecafde8a9fccb22f870d98e396e3df7472cd (patch)
tree7086c4550f1696343fe2608415cd7925723ce3a3 /src/app-section.c
parentdaec6bad9a1a2c8a994b174e21e46f3865e45208 (diff)
downloadayatana-indicator-messages-ce52ecafde8a9fccb22f870d98e396e3df7472cd.tar.gz
ayatana-indicator-messages-ce52ecafde8a9fccb22f870d98e396e3df7472cd.tar.bz2
ayatana-indicator-messages-ce52ecafde8a9fccb22f870d98e396e3df7472cd.zip
app-section: rename remote_menu to source_menu
Because it contains the message sources.
Diffstat (limited to 'src/app-section.c')
-rw-r--r--src/app-section.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/app-section.c b/src/app-section.c
index d80e750..9e83f13 100644
--- a/src/app-section.c
+++ b/src/app-section.c
@@ -41,7 +41,7 @@ struct _AppSectionPrivate
IndicatorDesktopShortcuts * ids;
GMenu *menu;
- GMenuModel *remote_menu;
+ GMenuModel *source_menu;
GSimpleActionGroup *static_shortcuts;
GActionGroup *source_actions;
@@ -232,7 +232,7 @@ app_section_dispose (GObject *object)
g_clear_object (&priv->source_actions);
}
- g_clear_object (&priv->remote_menu);
+ g_clear_object (&priv->source_menu);
if (priv->ids != NULL) {
g_object_unref(priv->ids);
@@ -545,9 +545,9 @@ app_section_set_object_path (AppSection *self,
"signal::action-removed", action_removed, self,
NULL);
- priv->remote_menu = G_MENU_MODEL (g_dbus_menu_model_get (bus, bus_name, object_path));
+ priv->source_menu = G_MENU_MODEL (g_dbus_menu_model_get (bus, bus_name, object_path));
- item = g_menu_item_new_section (NULL, priv->remote_menu);
+ item = g_menu_item_new_section (NULL, priv->source_menu);
g_menu_item_set_attribute (item, "action-namespace", "s", "source");
g_menu_append_item (priv->menu, item);
g_object_unref (item);
@@ -592,11 +592,11 @@ app_section_unset_object_path (AppSection *self)
g_clear_object (&priv->source_actions);
}
- if (priv->remote_menu) {
+ if (priv->source_menu) {
/* the last menu item points is linked to the app's menumodel */
gint n_items = g_menu_model_get_n_items (G_MENU_MODEL (priv->menu));
g_menu_remove (priv->menu, n_items -1);
- g_clear_object (&priv->remote_menu);
+ g_clear_object (&priv->source_menu);
}
priv->draws_attention = FALSE;