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">
|
||||
<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>
|
||||
|
|
|
@ -21,25 +21,25 @@
|
|||
## NOTE: some method names may match those of logger.py but that's it
|
||||
## someday (TM) should have common class that abstracts db connections and helpers on it
|
||||
## the same can be said for history_window.py
|
||||
|
||||
import os
|
||||
|
||||
if os.name == 'nt':
|
||||
import warnings
|
||||
warnings.filterwarnings(action='ignore')
|
||||
|
||||
|
||||
import os
|
||||
|
||||
if os.name == 'nt':
|
||||
import warnings
|
||||
warnings.filterwarnings(action='ignore')
|
||||
|
||||
# Used to create windows installer with GTK included
|
||||
# paths = os.environ['PATH']
|
||||
# list_ = paths.split(';')
|
||||
# new_list = []
|
||||
# for p in list_:
|
||||
# if p.find('gtk') < 0 and p.find('GTK') < 0:
|
||||
# new_list.append(p)
|
||||
# new_list.insert(0, 'gtk/lib')
|
||||
# new_list.insert(0, 'gtk/bin')
|
||||
# os.environ['PATH'] = ';'.join(new_list)
|
||||
# paths = os.environ['PATH']
|
||||
# list_ = paths.split(';')
|
||||
# new_list = []
|
||||
# for p in list_:
|
||||
# if p.find('gtk') < 0 and p.find('GTK') < 0:
|
||||
# new_list.append(p)
|
||||
# new_list.insert(0, 'gtk/lib')
|
||||
# new_list.insert(0, 'gtk/bin')
|
||||
# os.environ['PATH'] = ';'.join(new_list)
|
||||
# os.environ['GTK_BASEPATH'] = 'gtk'
|
||||
|
||||
|
||||
import sys
|
||||
import signal
|
||||
import gtk
|
||||
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue