aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Cimitan <andrea.cimitan@gmail.com>2010-07-29 13:30:48 +0200
committerAndrea Cimitan <andrea.cimitan@gmail.com>2010-07-29 13:30:48 +0200
commitc4baebd40e86b2277f87a17df0a9d25d79cac251 (patch)
treeacf90735b9f864ee6143b21203df8524107296a7
parent8712e709c76ca99f71680dd5ade66c03c45c8dd1 (diff)
downloadayatana-indicator-messages-c4baebd40e86b2277f87a17df0a9d25d79cac251.tar.gz
ayatana-indicator-messages-c4baebd40e86b2277f87a17df0a9d25d79cac251.tar.bz2
ayatana-indicator-messages-c4baebd40e86b2277f87a17df0a9d25d79cac251.zip
Ops, readded the label :P
-rw-r--r--src/indicator-messages.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index a4299dc..550f1fd 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -516,6 +516,12 @@ new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusm
gtk_box_pack_start(GTK_BOX(hbox), mi_data->icon, FALSE, FALSE, padding);
gtk_widget_show(mi_data->icon);
+ /* Label, probably a username, chat room or mailbox name */
+ mi_data->label = gtk_label_new(dbusmenu_menuitem_property_get(newitem, INDICATOR_MENUITEM_PROP_LABEL));
+ gtk_misc_set_alignment(GTK_MISC(mi_data->label), 0.0, 0.5);
+ gtk_box_pack_start(GTK_BOX(hbox), mi_data->label, TRUE, TRUE, padding);
+ gtk_widget_show(mi_data->label);
+
/* Usually either the time or the count on the individual
item. */
mi_data->right = gtk_label_new(dbusmenu_menuitem_property_get(newitem, INDICATOR_MENUITEM_PROP_RIGHT));