/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: Curtis Hovey
  • Date: 2011-08-27 18:35:08 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110827183508-ugqbp58na4mtt1no
Updated the pixbuf calls to gtk3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import os
18
18
 
19
 
import gtk.gdk
 
19
from gi.repository import 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() & gtk.gdk.WINDOW_STATE_MAXIMIZED:
 
77
        if e.window.get_state() & Gdk.WindowState.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()
93
94
        self.write()
94
 
 
95
95
        return False
96
96