do not maximize history manager (let the user do it if he wants) and also make sure user was warned that running Gajim and touching logs db crazily can end up in useless db or whatever chaotic problems

This commit is contained in:
Nikos Kouremenos 2006-03-21 14:37:06 +00:00
parent 2eb1759a7f
commit c7dc01e366
2 changed files with 4 additions and 3 deletions

View File

@ -77,7 +77,8 @@
You can select logs from the left and/or search database from below.
&lt;b&gt;NOTE:&lt;/b&gt; If you plan to do massive deletions, please make sure Gajim is not running.</property>
&lt;span background=&quot;lightyellow&quot;&gt;&lt;b&gt;WARNING:&lt;/b&gt; If you plan to do massive deletions, please make sure Gajim is not running.
Generally avoid deletions with contacts you currently chat with.&lt;/span&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>

View File

@ -86,7 +86,6 @@ class HistoryManager:
self.search_entry.grab_focus()
self.window.maximize()
self.window.show_all()
xml.signal_autoconnect(self)
@ -159,7 +158,8 @@ class HistoryManager:
def on_history_manager_window_delete_event(self, widget, event):
if self.AT_LEAST_ONE_DELETION_DONE:
dialog = dialogs.YesNoDialog(
_('Do you want to clean up the database?'),
_('Do you want to clean up the database? '
'(STRONGLY NOT RECOMMENDED IF GAJIM IS RUNNING)'),
_('Normally allocated database size will not be freed, '
'it will just become reusable. If you really want to reduce '
'database filesize, click YES, else click NO.'