diff -Naur smart-0.51/smart/interfaces/gtk/interactive.py smart-0.51.tpg/smart/interfaces/gtk/interactive.py --- smart-0.51/smart/interfaces/gtk/interactive.py 2006-11-21 19:45:58.000000000 +0000 +++ smart-0.51.tpg/smart/interfaces/gtk/interactive.py 2007-09-14 14:35:52.000000000 +0000 @@ -75,6 +75,7 @@ <menuitem action="hide-installed"/> <menuitem action="hide-uninstalled"/> <menuitem action="hide-unmarked"/> + <menuitem action="hide-unlocked"/> <menuitem action="hide-old"/> <separator/> <menuitem action="expand-all"/> @@ -221,6 +222,7 @@ ("hide-installed", _("Hide Installed")), ("hide-uninstalled", _("Hide Uninstalled")), ("hide-unmarked", _("Hide Unmarked")), + ("hide-unlocked", _("Hide Unlocked")), ("hide-old", _("Hide Old"))]: action = gtk.ToggleAction(name, label, "", "") action.connect("toggled", lambda x, y: self.toggleFilter(y), name) @@ -810,6 +812,8 @@ packages = [x for x in packages if x in changeset] if "hide-installed" in filters: packages = [x for x in packages if not x.installed] + if "hide-unlocked" in filters: + packages = [x for x in packages if pkgconf.testFlag("lock", x)] if "hide-old" in filters: packages = pkgconf.filterByFlag("new", packages)