From 446385cf45b3702fba437dfbd1d0740e72740b36 Mon Sep 17 00:00:00 2001 From: karl-qdh Date: Fri, 15 Apr 2011 14:20:50 +0100 Subject: Prevent long appointment titles making the menu too wide --- src/indicator-datetime.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3