diff options
author | karl-qdh <karl@qdh.org.uk> | 2011-04-15 14:20:50 +0100 |
---|---|---|
committer | karl-qdh <karl@qdh.org.uk> | 2011-04-15 14:20:50 +0100 |
commit | 446385cf45b3702fba437dfbd1d0740e72740b36 (patch) | |
tree | 074c82e5b162cc6bba03eb803c0a308ff8af4391 | |
parent | b5bb58568b4ddd555c885b9f32fd9977b64c8b8a (diff) | |
download | ayatana-indicator-datetime-446385cf45b3702fba437dfbd1d0740e72740b36.tar.gz ayatana-indicator-datetime-446385cf45b3702fba437dfbd1d0740e72740b36.tar.bz2 ayatana-indicator-datetime-446385cf45b3702fba437dfbd1d0740e72740b36.zip |
Prevent long appointment titles making the menu too wide
-rw-r--r-- | src/indicator-datetime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c index 1c05ff0..a992507 100644 --- a/src/indicator-datetime.c +++ b/src/indicator-datetime.c @@ -1285,6 +1285,7 @@ new_appointment_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbu /* Label, probably a username, chat room or mailbox name */ mi_data->label = gtk_label_new(dbusmenu_menuitem_property_get(newitem, APPOINTMENT_MENUITEM_PROP_LABEL)); gtk_misc_set_alignment(GTK_MISC(mi_data->label), 0.0, 0.5); + gtk_label_set_ellipsize(GTK_LABEL(mi_data->label), PANGO_ELLIPSIZE_END); gtk_box_pack_start(GTK_BOX(hbox), mi_data->label, TRUE, TRUE, 0); gtk_widget_show(mi_data->label); |