Re: [PATCH spice-gtk 2/2] spice-widget-egl: Simplify gl_make_current reducing indentation

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

 



On Fri, Jan 18, 2019 at 4:37 PM Frediano Ziglio <fziglio@xxxxxxxxxx> wrote:
>
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

ack

> ---
>  src/spice-widget-egl.c | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c
> index 5ad84bfc..43fccd77 100644
> --- a/src/spice-widget-egl.c
> +++ b/src/spice-widget-egl.c
> @@ -306,14 +306,13 @@ gl_make_current(SpiceDisplay *display, GError **err)
>                                  "failed to activate context");
>              return FALSE;
>          }
> +        return TRUE;
>      }
> -    else
>  #endif
> -    {
> -        GtkWidget *area = gtk_stack_get_child_by_name(d->stack, "gl-area");
>
> -        gtk_gl_area_make_current(GTK_GL_AREA(area));
> -    }
> +    GtkWidget *area = gtk_stack_get_child_by_name(d->stack, "gl-area");
> +
> +    gtk_gl_area_make_current(GTK_GL_AREA(area));
>
>      return TRUE;
>  }
> --
> 2.20.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel



-- 
Marc-André Lureau
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]