pidgin: 41c72eac: Ellipsize the "n people in room" text if...

resiak at pidgin.im resiak at pidgin.im
Sun Aug 17 07:16:24 EDT 2008


-----------------------------------------------------------------
Revision: 41c72eace6770646db0a457b15c1481e494b51ea
Ancestor: 0f32c1eaa2ff45225be5b86fc9f5b024b28829a9
Author: resiak at pidgin.im
Date: 2008-08-17T10:37:42
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/41c72eace6770646db0a457b15c1481e494b51ea

Modified files:
        pidgin/gtkconv.c

ChangeLog: 

Ellipsize the "n people in room" text if necessary.

This is a little bit pointless, but looks better than just truncating it.

-------------- next part --------------
============================================================
--- pidgin/gtkconv.c	2ba67831f6773420c93bbc89bb0c035b000b08ec
+++ pidgin/gtkconv.c	8716cdce16b1c081fefdcf1791df042f31d1ad29
@@ -4619,6 +4619,9 @@ setup_chat_userlist(PidginConversation *
 
 	/* Setup the label telling how many people are in the room. */
 	gtkchat->count = gtk_label_new(_("0 people in room"));
+#if GTK_CHECK_VERSION(2,6,0)
+	gtk_label_set_ellipsize(GTK_LABEL(gtkchat->count), PANGO_ELLIPSIZE_END);
+#endif
 	gtk_box_pack_start(GTK_BOX(lbox), gtkchat->count, FALSE, FALSE, 0);
 	gtk_widget_show(gtkchat->count);
 


More information about the Commits mailing list