aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/messages-service.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index f8f1aaf..395bf32 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -532,10 +532,11 @@ check_eclipses (AppMenuItem * ai)
GList * llitem;
for (llitem = launcherList; llitem != NULL; llitem = llitem->next) {
- const gchar * lidesktop = launcher_menu_item_get_desktop(LAUNCHER_MENU_ITEM(llitem->data));
+ launcherList_t * ll = (launcherList_t *)llitem->data;
+ const gchar * lidesktop = launcher_menu_item_get_desktop(ll->menuitem);
if (!g_strcmp0(aidesktop, lidesktop)) {
- launcher_menu_item_set_eclipsed(LAUNCHER_MENU_ITEM(llitem->data), TRUE);
+ launcher_menu_item_set_eclipsed(ll->menuitem, TRUE);
break;
}
}
@@ -553,10 +554,11 @@ remove_eclipses (AppMenuItem * ai)
GList * llitem;
for (llitem = launcherList; llitem != NULL; llitem = llitem->next) {
- const gchar * lidesktop = launcher_menu_item_get_desktop(LAUNCHER_MENU_ITEM(llitem->data));
+ launcherList_t * ll = (launcherList_t *)llitem->data;
+ const gchar * lidesktop = launcher_menu_item_get_desktop(ll->menuitem);
if (!g_strcmp0(aidesktop, lidesktop)) {
- launcher_menu_item_set_eclipsed(LAUNCHER_MENU_ITEM(llitem->data), FALSE);
+ launcher_menu_item_set_eclipsed(ll->menuitem, FALSE);
break;
}
}