/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: Curtis Hovey
  • Date: 2011-08-12 20:25:28 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110812202528-4xf4a2t23urx50d2
Updated gst to gtk3.

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