From 004ae04407de33dadab99298c94323cb433d3d27 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Tue, 11 Aug 2020 11:08:49 +0200 Subject: Replace x-canonical attributes --- libayatana-indicator/indicator-ng.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libayatana-indicator/indicator-ng.c') diff --git a/libayatana-indicator/indicator-ng.c b/libayatana-indicator/indicator-ng.c index ae39f63..8ede1a6 100644 --- a/libayatana-indicator/indicator-ng.c +++ b/libayatana-indicator/indicator-ng.c @@ -236,7 +236,7 @@ static gboolean indicator_ng_menu_insert_idos(IndicatorNg *self, GMenuModel *pSe { gboolean bChanged = FALSE; gchar *sType; - gboolean bHasType = g_menu_model_get_item_attribute(pSection, nModelItem, "x-canonical-type", "s", &sType); + gboolean bHasType = g_menu_model_get_item_attribute(pSection, nModelItem, "x-ayatana-type", "s", &sType); if (bHasType) { @@ -556,7 +556,7 @@ indicator_ng_menu_item_is_of_type (GMenuModel *menu, gchar *type; gboolean has_type = FALSE; - if (g_menu_model_get_item_attribute (menu, index, "x-canonical-type", "s", &type)) + if (g_menu_model_get_item_attribute (menu, index, "x-ayatana-type", "s", &type)) { has_type = g_str_equal (type, expected_type); g_free (type); @@ -602,14 +602,14 @@ indicator_ng_menu_changed (GMenuModel *menu, g_free (action); } - if (g_menu_model_get_item_attribute (self->menu, 0, "x-canonical-scroll-action", "s", &action)) + if (g_menu_model_get_item_attribute (self->menu, 0, "x-ayatana-scroll-action", "s", &action)) { if (g_str_has_prefix (action, "indicator.")) self->scroll_action = g_strdup (action + strlen ("indicator.")); g_free (action); } - if (g_menu_model_get_item_attribute (self->menu, 0, "x-canonical-secondary-action", "s", &action)) + if (g_menu_model_get_item_attribute (self->menu, 0, "x-ayatana-secondary-action", "s", &action)) { if (g_str_has_prefix (action, "indicator.")) self->secondary_action = g_strdup (action + strlen ("indicator.")); -- cgit v1.2.3