Bug 591590 - Fix some applications not appearing in menu

Use the correct address for the entry, instead of treating the
ShellAppInfo pointer as one.
This commit is contained in:
Colin Walters 2009-08-13 11:31:53 -04:00
parent 4aae57c274
commit 557f9ceb97

View File

@ -848,7 +848,7 @@ shell_app_info_get_is_nodisplay (ShellAppInfo *info)
switch (info->type) switch (info->type)
{ {
case SHELL_APP_INFO_TYPE_ENTRY: case SHELL_APP_INFO_TYPE_ENTRY:
return gmenu_tree_entry_get_is_nodisplay ((GMenuTreeEntry*)info); return gmenu_tree_entry_get_is_nodisplay ((GMenuTreeEntry*)info->entry);
case SHELL_APP_INFO_TYPE_DESKTOP_FILE: case SHELL_APP_INFO_TYPE_DESKTOP_FILE:
return FALSE; return FALSE;
} }