/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 viz/branchwin.py

  • Committer: Curtis Hovey
  • Date: 2012-02-09 21:32:59 UTC
  • mfrom: (775.1.5 clean-tests)
  • Revision ID: sinzui.is@verizon.net-20120209213259-z121corv2jzqqw9e
Save the gannotate pane position.
Update Gtk.VPaned and Gtk.HPaned to Gtk.Paned.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
    def construct_paned(self):
135
135
        """Construct the main HPaned/VPaned contents."""
136
136
        if self.config.get_user_option('viz-vertical') == 'True':
137
 
            self.paned = Gtk.HPaned()
 
137
            self.paned = Gtk.Paned.new(Gtk.Orientation.HORIZONTAL)
138
138
        else:
139
 
            self.paned = Gtk.VPaned()
 
139
            self.paned = Gtk.Paned.new(Gtk.Orientation.VERTICAL)
140
140
 
141
141
        self.paned.pack1(self.construct_top(), resize=False, shrink=True)
142
142
        self.paned.pack2(self.construct_bottom(), resize=True, shrink=False)
371
371
    def construct_bottom(self):
372
372
        """Construct the bottom half of the window."""
373
373
        if self.config.get_user_option('viz-wide-diffs') == 'True':
374
 
            self.diff_paned = Gtk.VPaned()
 
374
            self.diff_paned = Gtk.Paned.new(Gtk.Orientation.VERTICAL)
375
375
        else:
376
 
            self.diff_paned = Gtk.HPaned()
 
376
            self.diff_paned = Gtk.Paned.new(Gtk.Orientation.HORIZONTAL)
377
377
        (width, height) = self.get_size()
378
378
        self.diff_paned.set_size_request(20, 20) # shrinkable
379
379