From c7dc01e366666425640fafcd885a02c51a609ec6 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 21 Mar 2006 14:37:06 +0000 Subject: [PATCH] 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 --- src/history_manager.glade | 3 ++- src/history_manager.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/history_manager.glade b/src/history_manager.glade index 7a35bc6ae..2262f8417 100644 --- a/src/history_manager.glade +++ b/src/history_manager.glade @@ -77,7 +77,8 @@ You can select logs from the left and/or search database from below. -<b>NOTE:</b> If you plan to do massive deletions, please make sure Gajim is not running. +<span background="lightyellow"><b>WARNING:</b> If you plan to do massive deletions, please make sure Gajim is not running. +Generally avoid deletions with contacts you currently chat with.</span> False True GTK_JUSTIFY_LEFT diff --git a/src/history_manager.py b/src/history_manager.py index efa56eee9..b4bd40481 100755 --- a/src/history_manager.py +++ b/src/history_manager.py @@ -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.'