Merge lp:~ted/indicator-messages/min-width into lp:indicator-messages/0.5

Proposed by Ted Gould
Status: Merged
Merged at revision: not available
Proposed branch: lp:~ted/indicator-messages/min-width
Merge into: lp:indicator-messages/0.5
Diff against target: None lines
To merge this branch: bzr merge lp:~ted/indicator-messages/min-width
Reviewer Review Type Date Requested Status
David Barth Approve
Review via email: mp+12314@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ted Gould (ted) wrote :

Puts a min width on the menu so that descriptions that are reasonable don't elipsize.

Revision history for this message
David Barth (dbarth) wrote :

Nice change, reasonable value.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/indicator-messages.c'
2--- src/indicator-messages.c 2009-09-09 01:20:45 +0000
3+++ src/indicator-messages.c 2009-09-23 20:58:34 +0000
4@@ -241,6 +241,7 @@
5 GtkWidget * dsc_label = gtk_label_new("");
6 gtk_misc_set_alignment(GTK_MISC(dsc_label), 0.05, 0.5);
7 gtk_label_set_ellipsize(GTK_LABEL(dsc_label), PANGO_ELLIPSIZE_END);
8+ gtk_widget_set_size_request(dsc_label, 200, -1);
9 gchar * markup = g_markup_printf_escaped("<span font-size=\"smaller\">%s</span>", dbusmenu_menuitem_property_get(newitem, LAUNCHER_MENUITEM_PROP_APP_DESC));
10 gtk_label_set_markup(GTK_LABEL(dsc_label), markup);
11 g_free(markup);
12
13=== modified file 'src/messages-service.c'
14--- src/messages-service.c 2009-09-23 16:48:09 +0000
15+++ src/messages-service.c 2009-09-23 21:05:02 +0000
16@@ -350,6 +350,7 @@
17 }
18
19 check_hidden();
20+ resort_menu(root_menuitem);
21
22 return FALSE;
23 }

Subscribers

People subscribed via source and target branches

to all changes: