From 4daacc47dc32c15352bf080062779982f308aaae Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 16 May 2017 11:01:13 +0200 Subject: One step back... Mimick Canonical's API. Use their namespace for item attributes. --- src/idoappointmentmenuitem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/idoappointmentmenuitem.c') diff --git a/src/idoappointmentmenuitem.c b/src/idoappointmentmenuitem.c index 832f0d7..0d6a3d2 100644 --- a/src/idoappointmentmenuitem.c +++ b/src/idoappointmentmenuitem.c @@ -103,7 +103,7 @@ ido_appointment_menu_item_new_from_model (GMenuItem * menu_item, parameters[n++] = p; } - if (g_menu_item_get_attribute (menu_item, "x-ayatanaindicator-color", "s", &str)) + if (g_menu_item_get_attribute (menu_item, "x-canonical-color", "s", &str)) { GParameter p = { "icon", G_VALUE_INIT }; g_value_init (&p.value, G_TYPE_OBJECT); @@ -112,7 +112,7 @@ ido_appointment_menu_item_new_from_model (GMenuItem * menu_item, g_free (str); } - if (g_menu_item_get_attribute (menu_item, "x-ayatanaindicator-time-format", "s", &str)) + if (g_menu_item_get_attribute (menu_item, "x-canonical-time-format", "s", &str)) { GParameter p = { "format", G_VALUE_INIT }; g_value_init (&p.value, G_TYPE_STRING); @@ -120,7 +120,7 @@ ido_appointment_menu_item_new_from_model (GMenuItem * menu_item, parameters[n++] = p; } - if (g_menu_item_get_attribute (menu_item, "x-ayatanaindicator-time", "x", &i64)) + if (g_menu_item_get_attribute (menu_item, "x-canonical-time", "x", &i64)) { GParameter p = { "date-time", G_VALUE_INIT }; g_value_init (&p.value, G_TYPE_DATE_TIME); -- cgit v1.2.3