diff pidgin/gtksavedstatuses.c @ 28976:38dd50309ba4

Allow ellipsizing on the status menus in the preference window. This should prevent the status selector from making the preference window too large when a custom status with an absurdly long title is in use. Fixes #7339.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 20 Nov 2009 06:23:23 +0000
parents 5d4400b197d5
children 45a94940c122 a538cb73f897
line wrap: on
line diff
--- a/pidgin/gtksavedstatuses.c	Fri Nov 20 05:09:27 2009 +0000
+++ b/pidgin/gtksavedstatuses.c	Fri Nov 20 06:23:23 2009 +0000
@@ -1862,6 +1862,9 @@
 	g_object_set(G_OBJECT(icon_rend),
 			"stock-size", gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL),
 			NULL);
+#if GTK_CHECK_VERSION(2,6,0)
+	g_object_set(text_rend, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
+#endif
 
 	gtk_combo_box_set_active(GTK_COMBO_BOX(combobox), index);
 	g_signal_connect(G_OBJECT(combobox), "changed", G_CALLBACK(status_menu_cb), callback);