summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-09-21 16:17:12 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-11-18 10:43:05 +0000
commit00e1ca483ad07ddcd2a059130e3e186ae12fbd63 (patch)
tree12fdb073714d9ae56837fc981d1a6b9370580ddd /plugins
parent880edbed11b23262afed535ce51dc3e36ebf3698 (diff)
xmpp-console: split up entry-adding function
I'd like to use a combobox or something for the get/set selection.
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/telepathy-gabble-xmpp-console6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/telepathy-gabble-xmpp-console b/plugins/telepathy-gabble-xmpp-console
index fa582a310..ad0cc3482 100755
--- a/plugins/telepathy-gabble-xmpp-console
+++ b/plugins/telepathy-gabble-xmpp-console
@@ -116,11 +116,15 @@ class Window(Gtk.Window):
return label
- def add_label_entry_pair(self, title, below):
+ def add_label(self, title, below):
label = Gtk.Label(title)
label.set_property('margin-left', PADDING)
label.set_property('xalign', 0)
self.grid.attach_next_to(label, below, Gtk.PositionType.BOTTOM, 1, 1)
+ return label
+
+ def add_label_entry_pair(self, title, below):
+ label = self.add_label(title, below)
entry = Gtk.Entry()
entry.set_property('margin-right', PADDING)