summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <resiak@pidgin.im>2008-08-17 10:37:42 +0000
committerWill Thompson <resiak@pidgin.im>2008-08-17 10:37:42 +0000
commit835df11940893ed0710e06bf37fa4ac31266850c (patch)
tree58f5f90316ef84199a0160843dc6e8ab462cf6ae
parent73a65060bae407d56464e6ce33909d76ad793021 (diff)
downloadpidgin-835df11940893ed0710e06bf37fa4ac31266850c.tar.gz
Ellipsize the "n people in room" text if necessary.
This is a little bit pointless, but looks better than just truncating it.
-rw-r--r--pidgin/gtkconv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
index 8edb7fb28d..70e62681bb 100644
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -4619,6 +4619,9 @@ setup_chat_userlist(PidginConversation *gtkconv, GtkWidget *hpaned)
/* 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);