[libdazzle] menus: use define for keywords
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] menus: use define for keywords
- Date: Mon, 26 Oct 2020 18:01:28 +0000 (UTC)
commit 411985b9d037cae8dea05edd1a08f436244c0963
Author: Christian Hergert <chergert redhat com>
Date: Mon Oct 26 11:01:08 2020 -0700
menus: use define for keywords
src/menus/dzl-menu-manager.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/menus/dzl-menu-manager.c b/src/menus/dzl-menu-manager.c
index 541bc71..e7d2532 100644
--- a/src/menus/dzl-menu-manager.c
+++ b/src/menus/dzl-menu-manager.c
@@ -235,7 +235,7 @@ dzl_menu_manager_resolve_constraints (GMenu *menu)
{
g_autofree gchar *i_after = NULL;
- g_menu_model_get_item_attribute (model, i, "after", "s", &i_after);
+ g_menu_model_get_item_attribute (model, i, DZL_MENU_ATTRIBUTE_AFTER, "s", &i_after);
if (i_after == NULL)
continue;
@@ -275,7 +275,7 @@ dzl_menu_manager_resolve_constraints (GMenu *menu)
{
g_autofree gchar *i_before = NULL;
- g_menu_model_get_item_attribute (model, i, "before", "s", &i_before);
+ g_menu_model_get_item_attribute (model, i, DZL_MENU_ATTRIBUTE_BEFORE, "s", &i_before);
if (i_before == NULL)
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]