# HG changeset patch # User Sadrul Habib Chowdhury # Date 1258698203 0 # Node ID 38dd50309ba4e59265a0a3876a82f72a52565ab0 # Parent bd4f23c22dc2bc85fee341f957824e087a591e6f 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. diff -r bd4f23c22dc2 -r 38dd50309ba4 pidgin/gtksavedstatuses.c --- 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);