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
17
from gi.repository import GObject
18
from gi.repository import Gtk
26
from bzrlib.plugins.gtk import _i18n
20
27
from bzrlib.plugins.gtk.branchview.treeview import TreeView
21
from bzrlib.plugins.gtk.i18n import _i18n
24
class RevisionBrowser(Gtk.Dialog):
30
class RevisionBrowser(gtk.Dialog):
25
31
""" Revision Browser main window. """
26
32
def __init__(self, branch, parent=None):
27
GObject.GObject.__init__(self, title="Revision Browser - Olive",
33
gtk.Dialog.__init__(self, title="Revision Browser - Olive",
29
flags=Gtk.DialogFlags.MODAL,
30
buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
35
flags=gtk.DIALOG_MODAL,
36
buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))
33
39
self.branch = branch
35
41
# Create the widgets
36
self._button_select = Gtk.Button(_i18n("_Select"), use_underline=True)
42
self._button_select = gtk.Button(_i18n("_Select"), use_underline=True)
37
43
start_revs = [branch.last_revision(),]
38
44
self.treeview = TreeView(branch, start_revs, None)