/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to annotate/config.py

  • Committer: David Planella
  • Date: 2011-03-06 08:24:07 UTC
  • mfrom: (718 trunk)
  • mto: This revision was merged to the branch mainline in revision 719.
  • Revision ID: david.planella@ubuntu.com-20110306082407-y9zwkjje5oue9egw
Added preliminary internationalization support. Merged from trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import os
18
18
 
19
 
from gi.repository import Gdk
 
19
import gtk.gdk
20
20
 
21
21
from bzrlib import config
22
22
try:
74
74
        self.pane.connect("notify", self._save_pane_props)
75
75
 
76
76
    def _save_window_props(self, w, e, *args):
77
 
        if e.window.get_state() & Gdk.WindowState.MAXIMIZED:
 
77
        if e.window.get_state() & gtk.gdk.WINDOW_STATE_MAXIMIZED:
78
78
            maximized = True
79
79
        else:
80
80
            self["window"]["width"], self["window"]["height"] = w.get_size()
90
90
        return False
91
91
 
92
92
    def _write(self, *args):
93
 
        config.ensure_config_dir_exists()
94
93
        self.write()
 
94
 
95
95
        return False
96
96