[meld/VersionControlRework: 66/123] vcview: Move some CellRenderer creation into the UI file
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/VersionControlRework: 66/123] vcview: Move some CellRenderer creation into the UI file
- Date: Sun, 19 Apr 2015 20:11:32 +0000 (UTC)
commit e875127522414de31905660d24aaf010165d5b83
Author: Kai Willadsen <kai willadsen gmail com>
Date: Tue Mar 31 06:48:50 2015 +1000
vcview: Move some CellRenderer creation into the UI file
data/ui/vcview.ui | 8 ++++++++
meld/vcview.py | 4 ----
2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/vcview.ui b/data/ui/vcview.ui
index a3f30db..c75d3ad 100644
--- a/data/ui/vcview.ui
+++ b/data/ui/vcview.ui
@@ -454,6 +454,14 @@
<property name="can_focus">False</property>
<property name="model">liststore_vcs</property>
<signal name="changed" handler="on_vc_change" swapped="no"/>
+ <child>
+ <object class="GtkCellRendererText">
+ </object>
+ <attributes>
+ <attribute name="text">0</attribute>
+ <attribute name="sensitive">2</attribute>
+ </attributes>
+ </child>
</object>
</child>
</object>
diff --git a/meld/vcview.py b/meld/vcview.py
index 86d17e0..f960f74 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -236,10 +236,6 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
self.vc = None
self.valid_vc_actions = tuple()
- cell = Gtk.CellRendererText()
- self.combobox_vcs.pack_start(cell, False)
- self.combobox_vcs.add_attribute(cell, 'text', 0)
- self.combobox_vcs.add_attribute(cell, 'sensitive', 2)
self.combobox_vcs.lock = False
settings.bind('vc-console-visible',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]