balsa r8116 - in trunk: . src
- From: PeterB svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r8116 - in trunk: . src
- Date: Wed, 15 Apr 2009 13:54:22 +0000 (UTC)
Author: PeterB
Date: Wed Apr 15 13:54:22 2009
New Revision: 8116
URL: http://svn.gnome.org/viewvc/balsa?rev=8116&view=rev
Log:
ellipsize message label
Modified:
trunk/ChangeLog
trunk/src/balsa-mime-widget.c
Modified: trunk/src/balsa-mime-widget.c
==============================================================================
--- trunk/src/balsa-mime-widget.c (original)
+++ trunk/src/balsa-mime-widget.c Wed Apr 15 13:54:22 2009
@@ -220,6 +220,7 @@
GtkWidget *hbox;
GtkWidget *button = NULL;
gchar *msg;
+ GtkWidget *msg_label;
gchar *content_desc;
BalsaMimeWidget *mw;
gchar *use_content_type;
@@ -280,9 +281,10 @@
g_free(content_desc);
} else
msg = g_strdup_printf(_("Content Type: %s"), use_content_type);
- gtk_box_pack_start(GTK_BOX(mw->widget), gtk_label_new(msg), FALSE,
- FALSE, 0);
+ msg_label = gtk_label_new(msg);
g_free(msg);
+ gtk_label_set_ellipsize(GTK_LABEL(msg_label), PANGO_ELLIPSIZE_END);
+ gtk_box_pack_start(GTK_BOX(mw->widget), msg_label, FALSE, FALSE, 0);
hbox = gtk_hbox_new(TRUE, BMW_HBOX_SPACE);
if ((button = libbalsa_vfs_mime_button(mime_body, use_content_type,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]