comparison pidgin/gtkconv.c @ 23841:3c9711cf1a76

Ellipsize the "n people in room" text if necessary. This is a little bit pointless, but looks better than just truncating it.
author Will Thompson <will.thompson@collabora.co.uk>
date Sun, 17 Aug 2008 10:37:42 +0000
parents a5bfc59b0c6e
children ca3dc911bf52
comparison
equal deleted inserted replaced
23840:472f382a44b1 23841:3c9711cf1a76
4617 gtk_paned_pack2(GTK_PANED(hpaned), lbox, FALSE, TRUE); 4617 gtk_paned_pack2(GTK_PANED(hpaned), lbox, FALSE, TRUE);
4618 gtk_widget_show(lbox); 4618 gtk_widget_show(lbox);
4619 4619
4620 /* Setup the label telling how many people are in the room. */ 4620 /* Setup the label telling how many people are in the room. */
4621 gtkchat->count = gtk_label_new(_("0 people in room")); 4621 gtkchat->count = gtk_label_new(_("0 people in room"));
4622 #if GTK_CHECK_VERSION(2,6,0)
4623 gtk_label_set_ellipsize(GTK_LABEL(gtkchat->count), PANGO_ELLIPSIZE_END);
4624 #endif
4622 gtk_box_pack_start(GTK_BOX(lbox), gtkchat->count, FALSE, FALSE, 0); 4625 gtk_box_pack_start(GTK_BOX(lbox), gtkchat->count, FALSE, FALSE, 0);
4623 gtk_widget_show(gtkchat->count); 4626 gtk_widget_show(gtkchat->count);
4624 4627
4625 /* Setup the list of users. */ 4628 /* Setup the list of users. */
4626 sw = gtk_scrolled_window_new(NULL, NULL); 4629 sw = gtk_scrolled_window_new(NULL, NULL);