Hide label in history_manager when we search something.
This commit is contained in:
parent
1cd82a9f66
commit
87cb977fb7
|
@ -43,7 +43,7 @@
|
||||||
<widget class="GtkVBox" id="vbox1">
|
<widget class="GtkVBox" id="vbox1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkVBox" id="vbox2">
|
<widget class="GtkVBox" id="welcome_vbox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||||
<child>
|
<child>
|
||||||
|
|
|
@ -100,7 +100,7 @@ class HistoryManager:
|
||||||
self.logs_scrolledwindow = xml.get_widget('logs_scrolledwindow')
|
self.logs_scrolledwindow = xml.get_widget('logs_scrolledwindow')
|
||||||
self.search_results_scrolledwindow = xml.get_widget(
|
self.search_results_scrolledwindow = xml.get_widget(
|
||||||
'search_results_scrolledwindow')
|
'search_results_scrolledwindow')
|
||||||
self.welcome_label = xml.get_widget('welcome_label')
|
self.welcome_vbox = xml.get_widget('welcome_vbox')
|
||||||
|
|
||||||
self.jids_already_in = [] # holds jids that we already have in DB
|
self.jids_already_in = [] # holds jids that we already have in DB
|
||||||
self.AT_LEAST_ONE_DELETION_DONE = False
|
self.AT_LEAST_ONE_DELETION_DONE = False
|
||||||
|
@ -236,7 +236,7 @@ class HistoryManager:
|
||||||
|
|
||||||
self.logs_liststore.clear() # clear the store
|
self.logs_liststore.clear() # clear the store
|
||||||
|
|
||||||
self.welcome_label.hide()
|
self.welcome_vbox.hide()
|
||||||
self.search_results_scrolledwindow.hide()
|
self.search_results_scrolledwindow.hide()
|
||||||
self.logs_scrolledwindow.show()
|
self.logs_scrolledwindow.show()
|
||||||
|
|
||||||
|
@ -579,7 +579,7 @@ class HistoryManager:
|
||||||
if text == '':
|
if text == '':
|
||||||
return
|
return
|
||||||
|
|
||||||
self.welcome_label.hide()
|
self.welcome_vbox.hide()
|
||||||
self.logs_scrolledwindow.hide()
|
self.logs_scrolledwindow.hide()
|
||||||
self.search_results_scrolledwindow.show()
|
self.search_results_scrolledwindow.show()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue