aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-01-25 11:14:13 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-01-25 11:14:13 +0100
commitc02297da219a3a44d061543ff64bb953e2065128 (patch)
treee439d5d07b3340deb4e215ef2098ca00c9016509 /libindicator
parent9c857a30aa23445708c7ed7f1d00a7d0986946bd (diff)
downloadlibayatana-indicator-c02297da219a3a44d061543ff64bb953e2065128.tar.gz
libayatana-indicator-c02297da219a3a44d061543ff64bb953e2065128.tar.bz2
libayatana-indicator-c02297da219a3a44d061543ff64bb953e2065128.zip
indicator-ng: use strlen instead of hard coding the length
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-ng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libindicator/indicator-ng.c b/libindicator/indicator-ng.c
index f4c98c6..bd0a19c 100644
--- a/libindicator/indicator-ng.c
+++ b/libindicator/indicator-ng.c
@@ -292,7 +292,7 @@ indicator_ng_menu_changed (GMenuModel *menu,
if (g_menu_model_get_item_attribute (self->menu, 0, G_MENU_ATTRIBUTE_ACTION, "s", &action) &&
g_str_has_prefix (action, "indicator."))
{
- self->header_action = g_strdup (action + 10);
+ self->header_action = g_strdup (action + strlen ("indicator."));
}
popup = g_menu_model_get_item_link (self->menu, 0, G_MENU_LINK_SUBMENU);