20
20
from gi.repository import GObject
22
22
from bzrlib.config import GlobalConfig
23
from bzrlib.plugins.gtk import _i18n
23
from bzrlib.plugins.gtk.i18n import _i18n
24
24
from bzrlib.plugins.gtk.dialog import (
33
33
def __init__(self, wt, parent=None):
34
34
""" Initialize the Conflicts dialog. """
35
GObject.GObject.__init__(self, title="Conflicts - Olive",
35
Gtk.Dialog.__init__(self, title="Conflicts - Olive",
38
38
buttons=(Gtk.STOCK_CLOSE, Gtk.ResponseType.CANCEL))
59
59
self._button_diff3.set_image(self._image_diff3)
60
60
self._entry_diff3.set_text(self._get_diff3())
61
61
self._hbox_diff3.set_spacing(3)
62
self.vbox.set_spacing(3)
62
content_area = self.get_content_area()
63
content_area.set_spacing(3)
63
64
self.set_default_size(400, 300)
66
self._hbox_diff3.pack_start(self._label_diff3, False, False)
67
self._hbox_diff3.pack_start(self._entry_diff3, True, True)
68
self._hbox_diff3.pack_start(self._button_diff3, False, False)
67
self._hbox_diff3.pack_start(self._label_diff3, False, False, 0)
68
self._hbox_diff3.pack_start(self._entry_diff3, True, True, 0)
69
self._hbox_diff3.pack_start(self._button_diff3, False, False, 0)
69
70
self._scrolledwindow.add(self._treeview)
70
self.vbox.pack_start(self._scrolledwindow, True, True)
71
self.vbox.pack_start(self._hbox_diff3, False, False)
71
content_area.pack_start(self._scrolledwindow, True, True, 0)
72
content_area.pack_start(self._hbox_diff3, False, False, 0)
73
74
# Create the conflict list
74
75
self._create_conflicts()
78
content_area.show_all()
79
80
def _get_diff3(self):
80
81
""" Get the specified diff3 utility. Default is meld. """