Mercurial > pidgin
changeset 28597: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 | bd4f23c22dc2 |
children | c31707e63726 |
files | pidgin/gtksavedstatuses.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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);