restore accidentally reverted commit
This commit is contained in:
parent
4742162756
commit
5276fa49ec
@ -419,7 +419,7 @@ class pluginclass(object):
|
|||||||
self.builder.get_object("executeButton").hide()
|
self.builder.get_object("executeButton").hide()
|
||||||
searchLabel_text = _("Search:")
|
searchLabel_text = _("Search:")
|
||||||
searchLabel = self.builder.get_object("searchLabel")
|
searchLabel = self.builder.get_object("searchLabel")
|
||||||
searchLabel.set_markup("<b>%s</b>" % searchLabel_text)
|
searchLabel.set_text(searchLabel_text)
|
||||||
searchLabel.show()
|
searchLabel.show()
|
||||||
|
|
||||||
def changeShowApplicationComments(self, settings, key, args):
|
def changeShowApplicationComments(self, settings, key, args):
|
||||||
@ -800,16 +800,21 @@ class pluginclass(object):
|
|||||||
shownList.append(i)
|
shownList.append(i)
|
||||||
#if this is the first matching item
|
#if this is the first matching item
|
||||||
#focus it
|
#focus it
|
||||||
if(not showns):
|
if not showns:
|
||||||
i.grab_focus()
|
i.grab_focus()
|
||||||
showns = True
|
showns = True
|
||||||
if not showns:
|
textlen = len(text)
|
||||||
if len(text) >= 3:
|
if self.allow_execute and textlen:
|
||||||
self.add_search_suggestions(text)
|
if showns:
|
||||||
if self.allow_execute:
|
dupes = [True for item in shownList if item.appExec.split().pop(0) == text]
|
||||||
GLib.timeout_add(150, self.add_execute_suggestions, text)
|
else:
|
||||||
if self.useAPT:
|
dupes = None
|
||||||
GLib.timeout_add(300, self.add_apt_filter_results, text)
|
if not dupes:
|
||||||
|
GLib.timeout_add(150, self.add_execute_suggestions, text)
|
||||||
|
if not showns and textlen > 2:
|
||||||
|
self.add_search_suggestions(text)
|
||||||
|
if self.useAPT:
|
||||||
|
GLib.timeout_add(300, self.add_apt_filter_results, text)
|
||||||
|
|
||||||
for i in self.categoriesBox.get_children():
|
for i in self.categoriesBox.get_children():
|
||||||
i.released()
|
i.released()
|
||||||
@ -856,6 +861,7 @@ class pluginclass(object):
|
|||||||
event.keyval == Gdk.KEY_Return:
|
event.keyval == Gdk.KEY_Return:
|
||||||
self.on_execute_button_pressed(widget, event)
|
self.on_execute_button_pressed(widget, event)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def favPopup(self, widget, event):
|
def favPopup(self, widget, event):
|
||||||
|
Loading…
Reference in New Issue
Block a user