diff options
author | Andrea Cimitan <andrea.cimitan@gmail.com> | 2010-07-29 13:30:48 +0200 |
---|---|---|
committer | Andrea Cimitan <andrea.cimitan@gmail.com> | 2010-07-29 13:30:48 +0200 |
commit | c4baebd40e86b2277f87a17df0a9d25d79cac251 (patch) | |
tree | acf90735b9f864ee6143b21203df8524107296a7 | |
parent | 8712e709c76ca99f71680dd5ade66c03c45c8dd1 (diff) | |
download | ayatana-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.c | 6 |
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)); |