diff options
author | Ted Gould <ted@gould.cx> | 2009-12-18 15:46:18 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-18 15:46:18 -0600 |
commit | 2e661e35575a77338acb08e6d3707c978d6e1b08 (patch) | |
tree | 49e1b519198ff386dc4dae646bcac8c059743310 | |
parent | e0fabde50e1c885faf6e3b435842d52430a69e20 (diff) | |
download | ayatana-indicator-messages-2e661e35575a77338acb08e6d3707c978d6e1b08.tar.gz ayatana-indicator-messages-2e661e35575a77338acb08e6d3707c978d6e1b08.tar.bz2 ayatana-indicator-messages-2e661e35575a77338acb08e6d3707c978d6e1b08.zip |
Switching type to use the #define
-rw-r--r-- | src/im-menu-item.c | 2 | ||||
-rw-r--r-- | src/launcher-menu-item.c | 2 | ||||
-rw-r--r-- | src/messages-service.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/im-menu-item.c b/src/im-menu-item.c index 9ea7ec7..035b2da 100644 --- a/src/im-menu-item.c +++ b/src/im-menu-item.c @@ -442,7 +442,7 @@ im_menu_item_new (IndicateListener * listener, IndicateListenerServer * server, priv->attention = FALSE; priv->show = TRUE; - dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), "type", INDICATOR_MENUITEM_TYPE); + dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_TYPE, INDICATOR_MENUITEM_TYPE); indicate_listener_displayed(listener, server, indicator, TRUE); diff --git a/src/launcher-menu-item.c b/src/launcher-menu-item.c index 5afe7a9..d203bba 100644 --- a/src/launcher-menu-item.c +++ b/src/launcher-menu-item.c @@ -131,7 +131,7 @@ launcher_menu_item_new (const gchar * desktop_file) priv->desktop = g_strdup(desktop_file); g_debug("\tName: %s", launcher_menu_item_get_name(self)); - dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), "type", LAUNCHER_MENUITEM_TYPE); + dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_TYPE, LAUNCHER_MENUITEM_TYPE); dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), LAUNCHER_MENUITEM_PROP_APP_NAME, launcher_menu_item_get_name(self)); dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), LAUNCHER_MENUITEM_PROP_APP_DESC, launcher_menu_item_get_description(self)); diff --git a/src/messages-service.c b/src/messages-service.c index f5681b7..f1e1b0d 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -488,7 +488,7 @@ server_added (IndicateListener * listener, IndicateListenerServer * server, gcha /* Build a separator */ sl_item->separator = dbusmenu_menuitem_new(); - dbusmenu_menuitem_property_set(sl_item->separator, "type", DBUSMENU_CLIENT_TYPES_SEPARATOR); + dbusmenu_menuitem_property_set(sl_item->separator, DBUSMENU_MENUITEM_PROP_TYPE, DBUSMENU_CLIENT_TYPES_SEPARATOR); /* Incase we got an indicator first */ GList * alreadythere = g_list_find_custom(serverList, sl_item, serverList_equal); @@ -1139,7 +1139,7 @@ build_launcher (gpointer data) /* Build a separator */ ll->separator = dbusmenu_menuitem_new(); - dbusmenu_menuitem_property_set(ll->separator, "type", DBUSMENU_CLIENT_TYPES_SEPARATOR); + dbusmenu_menuitem_property_set(ll->separator, DBUSMENU_MENUITEM_PROP_TYPE, DBUSMENU_CLIENT_TYPES_SEPARATOR); /* Add it to the list */ launcherList = g_list_insert_sorted(launcherList, ll, launcherList_sort); |