[Spice-devel] [PATCH spice-gtk 1/2] spicy: Do not show underscore in label

Pavel Grunt pgrunt at redhat.com
Mon Jul 11 08:34:45 UTC 2016


Hey,

On Thu, 2016-07-07 at 17:22 +0200, Christophe Fergeau wrote:
> Hey,
> 
> On Thu, Jun 02, 2016 at 03:49:05PM +0200, Pavel Grunt wrote:
> > 
> > ---
> >  src/spicy.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/src/spicy.c b/src/spicy.c
> > index 8fc6845..ea4d4e0 100644
> > --- a/src/spicy.c
> > +++ b/src/spicy.c
> > @@ -1518,7 +1518,7 @@ transfer_task_widgets_new(SpiceFileTransferTask *task)
> >  
> >      widgets->vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
> >      widgets->hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
> > -    widgets->cancel = gtk_button_new_with_label("_Cancel");
> > +    widgets->cancel = gtk_button_new_with_label("Cancel");
> 
> I know this is an old patch, I'm wondering if this shouldn't be:
> 
> diff --git a/src/spicy.c b/src/spicy.c
> index ea4d4e0..0598640 100644
> --- a/src/spicy.c
> +++ b/src/spicy.c
> @@ -1518,7 +1518,7 @@ transfer_task_widgets_new(SpiceFileTransferTask *task)
> 
>      widgets->vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
>      widgets->hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
> -    widgets->cancel = gtk_button_new_with_label("Cancel");
> +    widgets->cancel = gtk_button_new_with_with_mnemonic("_Cancel");
> 
Or it should stay as 'gtk_button_new_from_icon_name'

>      widgets->progress = gtk_progress_bar_new();
>      widgets->label =
> gtk_label_new(spice_file_transfer_task_get_filename(task));
> 
> 
> Not very important as it's in spicy anyway.
agree
> 
> Christophe


More information about the Spice-devel mailing list