aboutsummaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-04-18 10:35:21 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-04-18 10:35:21 -0400
commit5b1027bd6f7e193639a895c9c0d63462443d4566 (patch)
tree2e34e02d9ed0067ecf737690e99b95a6ea3443f2 /debian/patches
parentae1d80c9a460c889ba14027d4530985ef1ee3de6 (diff)
downloadayatana-indicator-datetime-5b1027bd6f7e193639a895c9c0d63462443d4566.tar.gz
ayatana-indicator-datetime-5b1027bd6f7e193639a895c9c0d63462443d4566.tar.bz2
ayatana-indicator-datetime-5b1027bd6f7e193639a895c9c0d63462443d4566.zip
releasing version 0.2.3-0ubuntu30.2.3-0ubuntu3
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/lp_762976.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/lp_762976.patch b/debian/patches/lp_762976.patch
new file mode 100644
index 0000000..e62280a
--- /dev/null
+++ b/debian/patches/lp_762976.patch
@@ -0,0 +1,18 @@
+=== modified file 'src/indicator-datetime.c'
+--- src/indicator-datetime.c 2011-04-13 19:32:18 +0000
++++ src/indicator-datetime.c 2011-04-18 09:59:43 +0000
+@@ -1285,6 +1285,13 @@
+ /* 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);
++
++ GtkStyle * style = gtk_widget_get_style(GTK_WIDGET(mi_data->label));
++ PangoContext * context = gtk_widget_get_pango_context(GTK_WIDGET(mi_data->label));
++ gint length = measure_string(style, context, "GGGGGGGGGGGGGGG"); // 15 char wide string max
++ gtk_widget_set_size_request(GTK_WIDGET(mi_data->label), length, -1); // Set the min size in pixels
++
++ 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);
+
+