From 6766ff6eddeb4da438a0e3ca82cf08483c4ad164 Mon Sep 17 00:00:00 2001 From: hordepfo Date: Wed, 22 Jan 2014 03:56:22 +0000 Subject: [PATCH] Clear search entry when switching from Apps to Favorites Took two clicks because of a loop in the logic (setting to empty also invokes setting the tab). Fixes #44 --- usr/lib/linuxmint/mintMenu/plugins/applications.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index d613df9..9bec58b 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -571,8 +571,9 @@ class pluginclass( object ): elif tabNum == 1: notebook.set_current_page( 1 ) - self.lastActiveTab = tabNum self.focusSearchEntry() + self.lastActiveTab = tabNum + def Todos( self ): @@ -639,7 +640,7 @@ class pluginclass( object ): separator.add(Gtk.HSeparator()) separator.set_visible_window(False) separator.set_size_request(-1, 20) - separator.type = "separator" + separator.type = "separator" separator.show_all() self.applicationsBox.add(separator) self.suggestions.append(separator) @@ -717,7 +718,7 @@ class pluginclass( object ): last_separator.add(Gtk.HSeparator()) last_separator.set_visible_window(False) last_separator.set_size_request(-1, 20) - last_separator.type = "separator" + last_separator.type = "separator" last_separator.show_all() self.applicationsBox.add(last_separator) self.suggestions.append(last_separator) @@ -772,7 +773,7 @@ class pluginclass( object ): last_separator.add(Gtk.HSeparator()) last_separator.set_visible_window(False) last_separator.set_size_request(-1, 20) - last_separator.type = "separator" + last_separator.type = "separator" last_separator.show_all() self.applicationsBox.add(last_separator) self.suggestions.append(last_separator)