Set gajim icon for history manager window too. Fixes #1986.

This commit is contained in:
Jean-Marie Traissard 2006-05-21 20:42:26 +00:00
parent 6d0e6b5289
commit 93fec9d9e1
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ except ImportError:
class HistoryManager: class HistoryManager:
def __init__(self): def __init__(self):
path_to_file = os.path.join(gajim.DATA_DIR, 'pixmaps/gajim.png')
pix = gtk.gdk.pixbuf_new_from_file(path_to_file)
gtk.window_set_default_icon(pix) # set the icon to all newly opened windows
if not os.path.exists(LOG_DB_PATH): if not os.path.exists(LOG_DB_PATH):
dialogs.ErrorDialog(_('Cannot find history logs database'), dialogs.ErrorDialog(_('Cannot find history logs database'),
'%s does not exist.' % LOG_DB_PATH) '%s does not exist.' % LOG_DB_PATH)