[gthumb: 16/23] extra widget: disable the line_wrap option to ellipsize the labels correctly



commit 63136255d9306790e790ddd408668cfed2ad19ad
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Mar 4 10:45:20 2012 +0100

    extra widget: disable the line_wrap option to ellipsize the labels correctly

 gthumb/gth-embedded-dialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-embedded-dialog.c b/gthumb/gth-embedded-dialog.c
index 8e574f9..a25e135 100644
--- a/gthumb/gth-embedded-dialog.c
+++ b/gthumb/gth-embedded-dialog.c
@@ -77,7 +77,7 @@ gth_embedded_dialog_init (GthEmbeddedDialog *self)
 	self->priv->primary_text_label = primary_label = gtk_label_new (NULL);
 	gtk_box_pack_start (GTK_BOX (label_box), primary_label, FALSE, FALSE, 0);
 	gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE);
-	gtk_label_set_line_wrap (GTK_LABEL (primary_label), TRUE);
+	gtk_label_set_line_wrap (GTK_LABEL (primary_label), FALSE);
 	gtk_label_set_ellipsize (GTK_LABEL (primary_label), PANGO_ELLIPSIZE_MIDDLE);
 	gtk_misc_set_alignment (GTK_MISC (primary_label), 0, 0.5);
 	gtk_widget_set_can_focus (primary_label, TRUE);
@@ -87,7 +87,7 @@ gth_embedded_dialog_init (GthEmbeddedDialog *self)
 	gtk_box_pack_start (GTK_BOX (label_box), secondary_label, FALSE, FALSE, 0);
 	gtk_widget_set_can_focus (secondary_label, TRUE);
 	gtk_label_set_use_markup (GTK_LABEL (secondary_label), TRUE);
-	gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE);
+	gtk_label_set_line_wrap (GTK_LABEL (secondary_label), FALSE);
 	gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE);
 	gtk_label_set_ellipsize (GTK_LABEL (secondary_label), PANGO_ELLIPSIZE_END);
 	gtk_misc_set_alignment (GTK_MISC (secondary_label), 0, 0.5);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]