[d-feet] Show inactive bus names in italic
- From: Thomas Bechtold <toabctl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [d-feet] Show inactive bus names in italic
- Date: Sun, 1 Sep 2013 06:00:49 +0000 (UTC)
commit 2eae2d6c54d1be900b9ec4c51fed6f61c9c5f61a
Author: Thomas Bechtold <thomasbechtold jpberlin de>
Date: Sat Jul 20 10:24:46 2013 +0200
Show inactive bus names in italic
src/dfeet/bus_watch.py | 5 ++++-
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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]