query entrys has focus and search button grabs default
This commit is contained in:
parent
d3a6163729
commit
acebad0196
|
@ -61,6 +61,7 @@ class HistoryWindow:
|
||||||
self.calendar = xml.get_widget('calendar')
|
self.calendar = xml.get_widget('calendar')
|
||||||
self.history_buffer = xml.get_widget('history_textview').get_buffer()
|
self.history_buffer = xml.get_widget('history_textview').get_buffer()
|
||||||
self.query_entry = xml.get_widget('query_entry')
|
self.query_entry = xml.get_widget('query_entry')
|
||||||
|
self.search_button = xml.get_widget('search_button')
|
||||||
query_builder_button = xml.get_widget('query_builder_button')
|
query_builder_button = xml.get_widget('query_builder_button')
|
||||||
query_builder_button.hide()
|
query_builder_button.hide()
|
||||||
query_builder_button.set_no_show_all(True)
|
query_builder_button.set_no_show_all(True)
|
||||||
|
@ -316,6 +317,8 @@ class HistoryWindow:
|
||||||
gobject.timeout_add(200, self.set_unset_expand_on_expander, widget)
|
gobject.timeout_add(200, self.set_unset_expand_on_expander, widget)
|
||||||
else:
|
else:
|
||||||
gobject.timeout_add(200, self.set_unset_expand_on_expander, widget)
|
gobject.timeout_add(200, self.set_unset_expand_on_expander, widget)
|
||||||
|
self.search_button.grab_default()
|
||||||
|
self.query_entry.grab_focus()
|
||||||
|
|
||||||
def on_search_button_clicked(self, widget):
|
def on_search_button_clicked(self, widget):
|
||||||
text = self.query_entry.get_text()
|
text = self.query_entry.get_text()
|
||||||
|
|
Loading…
Reference in New Issue