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

Re: [virt-tools-list] [PATCH virt-viewer 1/4] Fix indentation



On Sun, Mar 18, 2012 at 07:59:14PM +0100, Marc-André Lureau wrote:
> ---
>  src/virt-viewer-app.c |   26 +++++++++++++-------------
>  1 files changed, 13 insertions(+), 13 deletions(-)
> 
> diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
> index 789cb88..e30df85 100644
> --- a/src/virt-viewer-app.c
> +++ b/src/virt-viewer-app.c
> @@ -680,20 +680,20 @@ virt_viewer_app_create_session(VirtViewerApp *self, const gchar *type)
>      } else
>  #endif
>  #ifdef HAVE_SPICE_GTK
> -        if (g_ascii_strcasecmp(type, "spice") == 0) {
> -            GtkWindow *window = virt_viewer_window_get_window(priv->main_window);
> -            virt_viewer_app_trace(self, "Guest %s has a %s display\n",
> -                                  priv->guest_name, type);
> -            priv->session = virt_viewer_session_spice_new(window);
> -        } else
> +    if (g_ascii_strcasecmp(type, "spice") == 0) {
> +        GtkWindow *window = virt_viewer_window_get_window(priv->main_window);
> +        virt_viewer_app_trace(self, "Guest %s has a %s display\n",
> +                              priv->guest_name, type);
> +        priv->session = virt_viewer_session_spice_new(window);
> +    } else
>  #endif
> -            {
> -                virt_viewer_app_trace(self, "Guest %s has unsupported %s display type\n",
> -                                      priv->guest_name, type);
> -                virt_viewer_app_simple_message_dialog(self, _("Unknown graphic type for the guest %s"),
> -                                                      priv->guest_name);
> -                return -1;
> -            }
> +    {
> +        virt_viewer_app_trace(self, "Guest %s has unsupported %s display type\n",
> +                              priv->guest_name, type);
> +        virt_viewer_app_simple_message_dialog(self, _("Unknown graphic type for the guest %s"),
> +                                              priv->guest_name);
> +        return -1;
> +    }
>  
>      g_signal_connect(priv->session, "session-initialized",
>                       G_CALLBACK(virt_viewer_app_initialized), self);

ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


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