[LIBREPORT PATCH] report-gtk: use wrapped text for warning labels

Richard Marko rmarko at redhat.com
Thu Aug 8 14:33:24 UTC 2013


Pushed. Thanks!

On 08/08/2013 04:10 PM, Jakub Filak wrote:
> 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);
>  }


-- 
Richard Marko



More information about the Crash-catcher mailing list