mark change roster window title as expert setting
This commit is contained in:
parent
00b13f2eff
commit
4e722bd62e
|
@ -1002,8 +1002,7 @@ class Roster_window:
|
||||||
self.quit_gtkgui_plugin()
|
self.quit_gtkgui_plugin()
|
||||||
|
|
||||||
def on_roster_treeview_row_activated(self, widget, path, col=0):
|
def on_roster_treeview_row_activated(self, widget, path, col=0):
|
||||||
'''When an iter is dubble clicked :
|
'''When an iter is double clicked: open the chat window'''
|
||||||
open the chat window'''
|
|
||||||
model = self.tree.get_model()
|
model = self.tree.get_model()
|
||||||
iter = model.get_iter(path)
|
iter = model.get_iter(path)
|
||||||
account = model.get_value(iter, 4)
|
account = model.get_value(iter, 4)
|
||||||
|
@ -1311,12 +1310,14 @@ class Roster_window:
|
||||||
return
|
return
|
||||||
|
|
||||||
def show_title(self):
|
def show_title(self):
|
||||||
start = ''
|
change_title_allowed = True # FIXME: add in expert settings
|
||||||
if self.nb_unread > 1:
|
if change_title_allowed:
|
||||||
start = '[' + str(self.nb_unread) + '] '
|
start = ''
|
||||||
elif self.nb_unread == 1:
|
if self.nb_unread > 1:
|
||||||
start = '* '
|
start = '[' + str(self.nb_unread) + '] '
|
||||||
self.window.set_title(start + 'Gajim')
|
elif self.nb_unread == 1:
|
||||||
|
start = '* '
|
||||||
|
self.window.set_title(start + 'Gajim')
|
||||||
|
|
||||||
def __init__(self, plugin):
|
def __init__(self, plugin):
|
||||||
self.xml = gtk.glade.XML(GTKGUI_GLADE, 'roster_window', APP)
|
self.xml = gtk.glade.XML(GTKGUI_GLADE, 'roster_window', APP)
|
||||||
|
|
Loading…
Reference in New Issue