# -*- coding: utf-8 -*- # This file is part of emesene. # # Emesene 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; either version 2 of the License, or # (at your option) any later version. # # emesene 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. # # You should have received a copy of the GNU General Public License # along with emesene; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA import gtk import time import pango import gobject import webkitgtk import re import UserList import SmilieWindow from Theme import resizePixbuf import emesenelib.common import emesenelib.ContactData import Widgets class WebkitRenderer(webkitgtk.WebView): def __init__(self,themepath,header,footer,variant=False): webkitgtk.WebView.__init__(self) self.themepath=themepath self.header=header self.footer=footer if variant and variant != 'Default': varianttext = "\n\ \n" else: varianttext='' self.oldhtml="\n\ \n\ \n\
\n\ \n\