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

Sun, 17 Aug 2008 10:37:42 +0000

author
Will Thompson <resiak@pidgin.im>
date
Sun, 17 Aug 2008 10:37:42 +0000
changeset 24110
e7e4fd750834
parent 24109
bae667a13f2c
child 24111
40399e39280d

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

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

pidgin/gtkconv.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkconv.c	Sun Aug 17 00:35:07 2008 +0000
+++ b/pidgin/gtkconv.c	Sun Aug 17 10:37:42 2008 +0000
@@ -4619,6 +4619,9 @@
 
 	/* 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);
 

mercurial