← Back to team overview

ayatana-commits team mailing list archive

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

 

Ted Gould has proposed merging lp:~ted/indicator-messages/min-width into lp:indicator-messages.

Requested reviews:
    Indicator Applet Developers (indicator-applet-developers)

Puts a min width on the menu so that descriptions that are reasonable don't elipsize.
-- 
https://code.launchpad.net/~ted/indicator-messages/min-width/+merge/12314
Your team ayatana-commits is subscribed to branch lp:indicator-messages.
=== modified file 'src/indicator-messages.c'
--- src/indicator-messages.c	2009-09-09 01:20:45 +0000
+++ src/indicator-messages.c	2009-09-23 20:58:34 +0000
@@ -241,6 +241,7 @@
 	GtkWidget * dsc_label = gtk_label_new("");
 	gtk_misc_set_alignment(GTK_MISC(dsc_label), 0.05, 0.5);
 	gtk_label_set_ellipsize(GTK_LABEL(dsc_label), PANGO_ELLIPSIZE_END);
+	gtk_widget_set_size_request(dsc_label, 200, -1);
 	gchar * markup = g_markup_printf_escaped("<span font-size=\"smaller\">%s</span>", dbusmenu_menuitem_property_get(newitem, LAUNCHER_MENUITEM_PROP_APP_DESC));
 	gtk_label_set_markup(GTK_LABEL(dsc_label), markup);
 	g_free(markup);

=== modified file 'src/messages-service.c'
--- src/messages-service.c	2009-09-23 16:48:09 +0000
+++ src/messages-service.c	2009-09-23 21:05:02 +0000
@@ -350,6 +350,7 @@
 	}
 
 	check_hidden();
+	resort_menu(root_menuitem);
 
 	return FALSE;
 }


Follow ups