[gnome-software] GsAppWidget: Allow line wrapping in descriptions
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] GsAppWidget: Allow line wrapping in descriptions
- Date: Tue, 29 Jan 2013 15:38:23 +0000 (UTC)
commit 2ef2c8e3e44682ce157206d84130bed150f184d5
Author: Florian Brosch <flo brosch gmail com>
Date: Sun Jan 27 19:46:41 2013 +0100
GsAppWidget: Allow line wrapping in descriptions
Signed-off-by: Richard Hughes <richard hughsie com>
src/gs-app-widget.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-app-widget.c b/src/gs-app-widget.c
index dc4def9..a9b79a4 100644
--- a/src/gs-app-widget.c
+++ b/src/gs-app-widget.c
@@ -485,6 +485,7 @@ gs_app_widget_init (GsAppWidget *app_widget)
gtk_widget_set_visible (box, TRUE);
priv->widget_description = gtk_label_new ("description");
gtk_misc_set_alignment (GTK_MISC (priv->widget_description), 0.0, 0.0);
+ gtk_label_set_line_wrap (GTK_LABEL (priv->widget_description), TRUE);
gtk_box_pack_start (GTK_BOX (box),
GTK_WIDGET (priv->widget_description),
TRUE, TRUE, 0);
@@ -506,11 +507,10 @@ gs_app_widget_init (GsAppWidget *app_widget)
/* description - more */
priv->widget_description_more = gtk_label_new ("description-more");
gtk_misc_set_alignment (GTK_MISC (priv->widget_description_more), 0.0, 0.0);
+ gtk_label_set_line_wrap (GTK_LABEL (priv->widget_description_more), TRUE);
gtk_box_pack_start (GTK_BOX (box),
GTK_WIDGET (priv->widget_description_more),
TRUE, TRUE, 0);
- gtk_label_set_line_wrap_mode (priv->widget_description_more,
- PANGO_WRAP_WORD);
/* button */
priv->widget_button = gtk_button_new_with_label ("button");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]