Applications: Remove Search label

This commit is contained in:
gm10 2019-02-20 10:11:44 +01:00
parent 89e4493062
commit 10f85269bf
No known key found for this signature in database
GPG Key ID: A981D4EA8CF993A9
2 changed files with 1 additions and 27 deletions

View File

@ -362,22 +362,6 @@
<property name="height_request">30</property> <property name="height_request">30</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child>
<object class="GtkLabel" id="searchLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Search/Run:</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="padding">5</property>
<property name="position">0</property>
</packing>
</child>
<child> <child>
<object class="GtkEntry" id="searchEntry"> <object class="GtkEntry" id="searchEntry">
<property name="height_request">25</property> <property name="height_request">25</property>

View File

@ -299,7 +299,6 @@ class pluginclass(object):
self.builder.get_object("searchButton").connect("button-press-event", self.searchPopup) self.builder.get_object("searchButton").connect("button-press-event", self.searchPopup)
self.builder.get_object("executeButton").connect("button-press-event", self.on_execute_button_pressed) self.builder.get_object("executeButton").connect("button-press-event", self.on_execute_button_pressed)
self.update_allow_execute()
# self.icon_theme = Gtk.IconTheme.get_default() # self.icon_theme = Gtk.IconTheme.get_default()
# self.icon_theme.connect("changed", self.on_icon_theme_changed) # self.icon_theme.connect("changed", self.on_icon_theme_changed)
@ -411,16 +410,7 @@ class pluginclass(object):
def update_allow_execute(self, settings=None, key=None, args=None): def update_allow_execute(self, settings=None, key=None, args=None):
if settings and key: if settings and key:
self.allow_execute = settings.get_boolean(key) self.allow_execute = settings.get_boolean(key)
#self.builder.get_object("executeButton").set_visible(self.allow_execute) self.builder.get_object("executeButton").set_visible(self.allow_execute)
if self.allow_execute:
self.builder.get_object("executeButton").show()
searchLabel_text = _("Search/Run:")
else:
self.builder.get_object("executeButton").hide()
searchLabel_text = _("Search:")
searchLabel = self.builder.get_object("searchLabel")
searchLabel.set_text(searchLabel_text)
searchLabel.show()
def changeShowApplicationComments(self, settings, key, args): def changeShowApplicationComments(self, settings, key, args):
self.showapplicationcomments = settings.get_boolean(key) self.showapplicationcomments = settings.get_boolean(key)