/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 04:11:54 UTC
  • mto: This revision was merged to the branch mainline in revision 776.
  • Revision ID: sinzui.is@verizon.net-20120209041154-rdo0fkdglkafxqrs
Replace Gtk.HPaned() with Gtk.Paned.new(Gtk.Orientation.HORIZONTAL).

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
139
            self.paned = Gtk.Paned.new(Gtk.Orientation.VERTICAL)
140
140
 
373
373
        if self.config.get_user_option('viz-wide-diffs') == 'True':
374
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