[alacarte/vala+garcon] only hide NoDisplay items if they are in Other
- From: Trevor Watkins <twatkins src gnome org>
- To: svn-commits-list gnome org
- Subject: [alacarte/vala+garcon] only hide NoDisplay items if they are in Other
- Date: Sun, 17 May 2009 17:28:13 -0400 (EDT)
commit c25f5184d06952bca77ef386710a57e660ca83d7
Author: Travis Watkins <amaranth ubuntu com>
Date: Sun May 17 16:23:31 2009 -0500
only hide NoDisplay items if they are in Other
Items and menus with NoDisplay set to true could be something the
user wants to enable using alacarte. However, items with NoDisplay
set to true in the Other menu are almost always there only for
MIME detection and should not be shown.
---
src/mainwindow.vala | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/mainwindow.vala b/src/mainwindow.vala
index df0880a..b38fefb 100644
--- a/src/mainwindow.vala
+++ b/src/mainwindow.vala
@@ -112,8 +112,6 @@ public class MainWindow
{
if (!item.get_show_in_environment ())
continue;
- if (item.get_no_display ())
- continue;
if (item is Garcon.Menu)
{
@@ -142,7 +140,7 @@ public class MainWindow
{
if (!item.get_show_in_environment ())
continue;
- if (item.get_no_display ())
+ if (parent.get_name () == "Other" && item.get_no_display ())
continue;
list_store.append (out iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]