# Path: conf.py
# CONF_FILE = os.path.join(urk.userpath,'urk.conf')
# def pprint(obj, depth=-2):
# def save(*args):


import codecs
import gobject
import gtk
import gtk.gdk
import pango
import events
import parse_mirc
import urk
import windows
from conf import conf
        except:
            pass

        self.connect("delete-event", self.exit)

        # layout
        xy = conf.get("xy", (-1, -1))
        wh = conf.get("wh", (500, 500))
        maximized = conf.get("maximized", False)

        self.move(*xy)
        self.set_default_size(*wh)
        if maximized:
            self.maximize()

        self._saving = None
        def save_xywh(*args):
            if not self._saving:
                def save():
                    conf["xy"] = self.get_position()
                    conf["wh"] = self.get_size()
                    
                    self._saving = None
                    
                self._saving = gobject.timeout_add(200, save)

        self.connect("configure-event", save_xywh)
        
        def save_maximized(widget, event):
            if event.new_window_state & gtk.gdk.WINDOW_STATE_MAXIMIZED:

# Path: conf.py
# CONF_FILE = os.path.join(urk.userpath,'urk.conf')
# def pprint(obj, depth=-2):
# def save(*args):


# Path: platform/gtk/widgets.py
import codecs
import gobject
import gtk
import gtk.gdk
import pango
import events
import parse_mirc
import urk
import windows
from conf import conf

        except:
            pass

        self.connect("delete-event", self.exit)

        # layout
        xy = conf.get("xy", (-1, -1))
        wh = conf.get("wh", (500, 500))
        maximized = conf.get("maximized", False)

        self.move(*xy)
        self.set_default_size(*wh)
        if maximized:
            self.maximize()

        self._saving = None
        def save_xywh(*args):
            if not self._saving:
                def save():
                    conf["xy"] = self.get_position()
                    conf["wh"] = self.get_size()
                    
                    self._saving = None
                    
                self._saving = gobject.timeout_add(200, save)

        self.connect("configure-event", save_xywh)
        
        def save_maximized(widget, event):
            if event.new_window_state & gtk.gdk.WINDOW_STATE_MAXIMIZED:

                conf["maximized"] = True