[LIBREPORT PATCH] report-gtk: use wrapped text for warning labels
Jakub Filak
jfilak at redhat.com
Thu Aug 8 14:10:46 UTC 2013
Warning texts were designed to fit into window size but their width
depends on used font properties. Therefore we have to make text
wrapped in order to not resize window.
Closes rhbz#895745
Signed-off-by: Jakub Filak <jfilak at redhat.com>
---
src/gui-wizard-gtk/wizard.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
index 9ddf076..2677700 100644
--- a/src/gui-wizard-gtk/wizard.c
+++ b/src/gui-wizard-gtk/wizard.c
@@ -1976,6 +1976,7 @@ static void add_warning(const char *warning)
gtk_misc_set_alignment(GTK_MISC(warning_lbl), 0.0, 0.0);
gtk_label_set_justify(GTK_LABEL(warning_lbl), GTK_JUSTIFY_LEFT);
+ gtk_label_set_line_wrap(GTK_LABEL(warning_lbl), TRUE);
gtk_box_pack_start(g_box_warning_labels, warning_lbl, false, false, 0);
gtk_widget_show(warning_lbl);
}
--
1.8.3.1
More information about the Crash-catcher
mailing list