Hide label in history_manager when we search something.

This commit is contained in:
Stephan Erb 2007-12-09 21:03:40 +00:00
parent 1cd82a9f66
commit 87cb977fb7
2 changed files with 21 additions and 21 deletions

View File

@ -43,7 +43,7 @@
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<child>
<widget class="GtkVBox" id="vbox2">
<widget class="GtkVBox" id="welcome_vbox">
<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>
<child>

View File

@ -100,7 +100,7 @@ class HistoryManager:
self.logs_scrolledwindow = xml.get_widget('logs_scrolledwindow')
self.search_results_scrolledwindow = xml.get_widget(
'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.AT_LEAST_ONE_DELETION_DONE = False
@ -236,7 +236,7 @@ class HistoryManager:
self.logs_liststore.clear() # clear the store
self.welcome_label.hide()
self.welcome_vbox.hide()
self.search_results_scrolledwindow.hide()
self.logs_scrolledwindow.show()
@ -579,7 +579,7 @@ class HistoryManager:
if text == '':
return
self.welcome_label.hide()
self.welcome_vbox.hide()
self.logs_scrolledwindow.hide()
self.search_results_scrolledwindow.show()