[Maxim Koltsov] Set different WM_WINDOW_ROLE to different windows types (gc, chat). Fixes #6746

This commit is contained in:
Yann Leboulanger 2011-03-24 22:51:38 +01:00
parent 168e87aefd
commit 58015a37bb
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ class MessageWindow(object):
self.widget_name = 'message_window' self.widget_name = 'message_window'
self.xml = gtkgui_helpers.get_gtk_builder('%s.ui' % self.widget_name) self.xml = gtkgui_helpers.get_gtk_builder('%s.ui' % self.widget_name)
self.window = self.xml.get_object(self.widget_name) self.window = self.xml.get_object(self.widget_name)
# Set window role to differ chats from MUCs
self.window.set_role(self.type_)
self.notebook = self.xml.get_object('notebook') self.notebook = self.xml.get_object('notebook')
self.parent_paned = None self.parent_paned = None