/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 preferences/__init__.py

  • Committer: Curtis Hovey
  • Date: 2011-07-31 15:52:43 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110731155243-ln8istmxbryhb4pz
Mechanical changes made by pygi.convert.sh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
try:
 
18
    import pygtk
 
19
    pygtk.require("2.0")
 
20
except:
 
21
    pass
 
22
 
17
23
from gi.repository import Gtk
18
24
 
19
25
from bzrlib.config import GlobalConfig
32
38
        """ Initialize the Status window. """
33
39
        super(PreferencesWindow, self).__init__(flags=Gtk.DialogFlags.MODAL)
34
40
        self.set_title("Bazaar Preferences")
 
41
        self.set_has_separator(False)
35
42
        self.config = config
36
43
        if self.config is None:
37
44
            self.config = GlobalConfig()
47
54
            notebook.append_page(page, Gtk.Label(label=label))
48
55
 
49
56
        notebook.set_current_page(0)
50
 
        content_area = self.get_content_area()
51
 
        content_area.set_border_width(0)
52
 
        content_area.pack_start(notebook, True, True, 0)
53
 
        content_area.show_all()
54
 
        self.get_action_area().set_border_width(12)
 
57
        self.vbox.set_border_width(0)
 
58
        self.vbox.pack_start(notebook, True, True)
 
59
        self.vbox.show_all()
 
60
        self.action_area.set_border_width(12)
55
61
 
56
62
    def _create_pages(self):
57
63
        return [("Identity", IdentityPage(self.config)),
64
70
    def close(self, widget=None):
65
71
        self.window.destroy()
66
72
 
67
 
 
68
73
class BranchPreferencesWindow(Gtk.Dialog):
69
74
    """Displays global preferences windows."""
70
75
    def __init__(self, config=None):