[Pkg-privacy-commits] [onioncircuits] 18/39: Don't show placeholder when circuits list is empty
Sascha Steinbiss
sascha at steinbiss.name
Sun May 15 16:40:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
sascha-guest pushed a commit to branch master
in repository onioncircuits.
commit 5968788bf982f524a9dd18280e92164438684afd
Author: Alan <alan at boum.org>
Date: Fri Apr 1 22:39:51 2016 +0200
Don't show placeholder when circuits list is empty
---
onioncircuits | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/onioncircuits b/onioncircuits
index a10dc0e..20f608f 100755
--- a/onioncircuits
+++ b/onioncircuits
@@ -139,9 +139,8 @@ class OnionCircuitsWindow(Gtk.ApplicationWindow):
# Circuit details
self._path = Gtk.ListBox()
self._path.set_selection_mode(Gtk.SelectionMode.NONE)
- placeholder = Gtk.Label(_("Click on a path to get details"))
- placeholder.show()
- self._path.set_placeholder(placeholder)
+ self._placeholder = Gtk.Label(_("Click on a path to get details"))
+ self._path.set_placeholder(self._placeholder)
self._path.set_property('margin', 6)
self._path.set_property('expand', True)
self._path.set_property('halign', Gtk.Align.FILL)
@@ -218,6 +217,7 @@ class OnionCircuitsWindow(Gtk.ApplicationWindow):
self._infobar.set_message_type(Gtk.MessageType.ERROR)
self._infobar.show()
self._treestore.clear()
+ self._placeholder.set_visible(False)
return False
def connection_init_cb(self):
@@ -322,6 +322,7 @@ class OnionCircuitsWindow(Gtk.ApplicationWindow):
:returns: the :class:`Gtk.TreeIter` corresponding to the circuit
"""
+ self._placeholder.set_visible(True)
circ_iter = self._treestore.append(None,
[self.TYPE_CIRC,
circuit.id,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onioncircuits.git
More information about the Pkg-privacy-commits
mailing list