pidgin: 15ba1c2b: Allow ellipsizing on the status menus in...

sadrul at pidgin.im sadrul at pidgin.im
Fri Nov 20 01:21:00 EST 2009


-----------------------------------------------------------------
Revision: 15ba1c2b0820be77a0ce4020dfa081674817963d
Ancestor: 751ab93934a0cb16378fb81c8b62d0183ce7e299
Author: sadrul at pidgin.im
Date: 2009-11-20T06:23:23
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/15ba1c2b0820be77a0ce4020dfa081674817963d

Modified files:
        pidgin/gtksavedstatuses.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- pidgin/gtksavedstatuses.c	4b3a368e7e485d7d12983384b4db9fff6c459cf8
+++ pidgin/gtksavedstatuses.c	3912f0509a3138f98f34fbd045d45cc474960941
@@ -1862,6 +1862,9 @@ GtkWidget *pidgin_status_menu(PurpleSave
 	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);


More information about the Commits mailing list