summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bechtold <thomasbechtold@jpberlin.de>2013-07-20 10:24:46 +0200
committerThomas Bechtold <thomasbechtold@jpberlin.de>2013-07-20 10:24:46 +0200
commit780b0024d7001a644ab293e25f6c880794183bec (patch)
treef616d68ad3b13095124e4aa5d4d5f0e66db6a611
parentbfb53da4cf223fd92dafe931849a7da9af403893 (diff)
downloadd-feet-listbox.tar.gz
Show inactive bus names in italiclistbox
-rw-r--r--src/dfeet/bus_watch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dfeet/bus_watch.py b/src/dfeet/bus_watch.py
index cbc3d02..cadad74 100644
--- a/src/dfeet/bus_watch.py
+++ b/src/dfeet/bus_watch.py
@@ -29,7 +29,6 @@ class BusNameBox(Gtk.VBox):
#first element
self.__label_bus_name = Gtk.Label()
- self.__label_bus_name.set_markup("<b>{0}</b>".format(self.__bus_name))
self.__label_bus_name.set_halign(Gtk.Align.START)
self.__vbox_right.pack_start(self.__label_bus_name, True, True, 0)
#second element
@@ -44,6 +43,10 @@ class BusNameBox(Gtk.VBox):
def __update_widget(self):
"""update the widget with the available information"""
+ if self.__process_id > 0:
+ self.__label_bus_name.set_markup("<b>{0}</b>".format(self.__bus_name))
+ else:
+ self.__label_bus_name.set_markup("<b><i>{0}</i></b>".format(self.__bus_name))
#update the label info
label_info_str = "<small>"
if self.__activatable: