Skip to content
Snippets Groups Projects
Commit eb92a7a7 authored by nicfit's avatar nicfit
Browse files

MessageWindow and MessageWindowMgr classes

parent fcb7c08c
No related branches found
No related tags found
No related merge requests found
## message_window.py
##
## Copyright (C) 2005-2006 Travis Shirk <travis@pobox.com>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation; version 2 only.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
import gtk
import gtk.glade
import pango
import gobject
from common import gajim
####################
# FIXME: Can't this stuff happen once?
from common import i18n
_ = i18n._
APP = i18n.APP
GTKGUI_GLADE = 'gtkgui.glade'
####################
#import chat_widget
#TYPE_CHAT = 1
#TYPE_MUC = 2
class MessageWindow:
'''Class for windows which contain message like things; chats,
groupchats, etc.'''
def __init__(self):
self._controls = {}
self.widget_name = 'message_window'
self.xml = gtk.glade.XML(GTKGUI_GLADE, self.widget_name, APP)
self.window = self.xml.get_widget(self.widget_name)
self.alignment = self.xml.get_widget('alignment')
self.notebook = self.xml.get_widget('notebook')
def new_tab(self, type, contact, acct):
pass
class MessageWindowMgr:
'''A manager and factory for MessageWindow objects'''
def __init__(self):
self._windows = {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment