Re: [PATCH newui] Prevent the status line from getting too long for any one spoke.

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

 



> I do not have the environment to build it at hand (I have to reinstall
> it first), but I think this might be nicer:
> 
> diff --git a/widgets/src/SpokeSelector.c b/widgets/src/SpokeSelector.c
> index e90bc0d..9be3d59 100644
> --- a/widgets/src/SpokeSelector.c
> +++ b/widgets/src/SpokeSelector.c
> @@ -185,6 +185,7 @@ static void anaconda_spoke_selector_init(AnacondaSpokeSelector *spoke) {
>      markup = g_markup_printf_escaped("<span style='italic' size='large'>%s</span>", _(DEFAULT_STATUS));
>      gtk_label_set_markup(GTK_LABEL(spoke->priv->status_label), markup);
>      gtk_misc_set_alignment(GTK_MISC(spoke->priv->status_label), 0, 0);
> +    gtk_label_set_ellipsize(GTK_LABEL(spoke->priv->status_label), PANGO_ELLIPSIZE_MIDDLE);
>      g_free(markup);
>  
>      /* Add everything to the grid, add the grid to the widget. */

It makes the text a little long for URLs, but that can probably be
solved by setting the label width correctly.  Otherwise, this works
really well.  Go ahead and push it.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux