/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 revbrowser.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-30 21:45:54 UTC
  • Revision ID: jelmer@samba.org-20111130214554-5kfx0b5y7t5zh033
Extend branch preferences, show location widget.

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
 
from gi.repository import GObject
18
17
from gi.repository import Gtk
19
18
 
20
19
from bzrlib.plugins.gtk.branchview.treeview import TreeView
24
23
class RevisionBrowser(Gtk.Dialog):
25
24
    """ Revision Browser main window. """
26
25
    def __init__(self, branch, parent=None):
27
 
        GObject.GObject.__init__(self, title="Revision Browser - Olive",
28
 
                                  parent=parent,
29
 
                                  flags=Gtk.DialogFlags.MODAL,
30
 
                                  buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
 
26
        super(RevisionBrowser, self).__init__(
 
27
            title="Revision Browser - Olive", parent=parent,
 
28
            flags=Gtk.DialogFlags.MODAL,
 
29
            buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
31
30
 
32
31
        # Get arguments
33
32
        self.branch = branch
44
43
 
45
44
        # Set properties
46
45
        self.set_default_size(600, 400)
47
 
        self.vbox.set_spacing(3)
 
46
        self.get_content_area().set_spacing(3)
48
47
        self.treeview.set_property('graph-column-visible', False)
49
48
        self.treeview.set_property('date-column-visible', True)
50
49
        self.treeview.set_property('mainline-only', True)
51
50
 
52
51
        # Construct the dialog
53
 
        self.action_area.pack_end(self._button_select)
 
52
        self.action_area.pack_end(self._button_select, False, False, 0)
54
53
 
55
 
        self.vbox.pack_start(self.treeview, True, True)
 
54
        self.get_content_area().pack_start(self.treeview, True, True, 0)
56
55
 
57
56
        # Show the dialog
58
57
        self.show_all()