Re: [Spice-commits] src/channel-main.c

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

 



Hi

On Thu, Mar 19, 2020 at 6:05 PM GitLab Mirror
<gitlab-mirror@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>  src/channel-main.c |   36 +++++++++++++++++++-----------------
>  1 file changed, 19 insertions(+), 17 deletions(-)
>
> New commits:
> commit 1defa5c0f0107b8496b7696408aad064c65947a5
> Author: Frediano Ziglio <fziglio@xxxxxxxxxx>
> Date:   Tue Mar 17 21:27:19 2020 +0000
>
>     channel-main: Fix indentation
>
>     Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
>     Acked-by: Victor Toso <victortoso@xxxxxxxxxx>
>
> diff --git a/src/channel-main.c b/src/channel-main.c
> index 1e85a36..0a0b9ca 100644
> --- a/src/channel-main.c
> +++ b/src/channel-main.c
> @@ -283,13 +283,13 @@ static void spice_main_get_property(GObject    *object,
>      switch (prop_id) {
>      case PROP_MOUSE_MODE:
>          g_value_set_int(value, c->mouse_mode);
> -       break;
> +    break;
>      case PROP_AGENT_CONNECTED:
>          g_value_set_boolean(value, c->agent_connected);
> -       break;
> +    break;
>      case PROP_AGENT_CAPS_0:
>          g_value_set_int(value, c->agent_caps[0]);
> -       break;
> +    break;

Hmm, this looks weird:

https://gitlab.freedesktop.org/spice/spice-gtk/-/blob/master/src/channel-main.c#L283

>      case PROP_DISPLAY_DISABLE_WALLPAPER:
>          g_value_set_boolean(value, c->display_disable_wallpaper);
>          break;
> @@ -312,8 +312,8 @@ static void spice_main_get_property(GObject    *object,
>          g_value_set_int(value, spice_main_get_max_clipboard(self));
>          break;
>      default:
> -       G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
> -       break;
> +        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
> +        break;
>      }
>  }
>
> @@ -346,8 +346,8 @@ static void spice_main_set_property(GObject *gobject, guint prop_id,
>          spice_main_set_max_clipboard(self, g_value_get_int(value));
>          break;
>      default:
> -       G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, pspec);
> -       break;
> +        G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, pspec);
> +        break;
>      }
>  }
>
> @@ -2051,9 +2051,10 @@ static void main_agent_handle_msg(SpiceChannel *channel,
>          g_coroutine_signal_emit(self, signals[SPICE_MAIN_CLIPBOARD_SELECTION], 0, selection,
>                                  cb->type, cb->data, msg->size - sizeof(VDAgentClipboard));
>
> -       if (selection == VD_AGENT_CLIPBOARD_SELECTION_CLIPBOARD)
> -           g_coroutine_signal_emit(self, signals[SPICE_MAIN_CLIPBOARD], 0,
> -                              cb->type, cb->data, msg->size - sizeof(VDAgentClipboard));
> +        if (selection == VD_AGENT_CLIPBOARD_SELECTION_CLIPBOARD) {
> +            g_coroutine_signal_emit(self, signals[SPICE_MAIN_CLIPBOARD], 0,
> +                                    cb->type, cb->data, msg->size - sizeof(VDAgentClipboard));
> +        }
>          break;
>      }
>      case VD_AGENT_CLIPBOARD_GRAB:
> @@ -2075,10 +2076,11 @@ static void main_agent_handle_msg(SpiceChannel *channel,
>          }
>
>          g_coroutine_signal_emit(self, signals[SPICE_MAIN_CLIPBOARD_SELECTION_GRAB], 0, selection,
> -                          (guint8*)payload, msg->size / sizeof(uint32_t), &ret);
> -        if (selection == VD_AGENT_CLIPBOARD_SELECTION_CLIPBOARD)
> +                                (guint8*)payload, msg->size / sizeof(uint32_t), &ret);
> +        if (selection == VD_AGENT_CLIPBOARD_SELECTION_CLIPBOARD) {
>              g_coroutine_signal_emit(self, signals[SPICE_MAIN_CLIPBOARD_GRAB], 0,
> -                              payload, msg->size / sizeof(uint32_t), &ret);
> +                                    payload, msg->size / sizeof(uint32_t), &ret);
> +        }
>          break;
>      }
>      case VD_AGENT_CLIPBOARD_REQUEST:
> @@ -2086,11 +2088,11 @@ static void main_agent_handle_msg(SpiceChannel *channel,
>          gboolean ret;
>          VDAgentClipboardRequest *req = payload;
>          g_coroutine_signal_emit(self, signals[SPICE_MAIN_CLIPBOARD_SELECTION_REQUEST], 0, selection,
> -                          req->type, &ret);
> +                                req->type, &ret);
>
>          if (selection == VD_AGENT_CLIPBOARD_SELECTION_CLIPBOARD)
>              g_coroutine_signal_emit(self, signals[SPICE_MAIN_CLIPBOARD_REQUEST], 0,
> -                              req->type, &ret);
> +                                    req->type, &ret);
>          break;
>      }
>      case VD_AGENT_CLIPBOARD_RELEASE:
> @@ -2333,7 +2335,7 @@ static gboolean migrate_connect(gpointer data)
>      host = (char*)info->host_data;
>
>      if (info->cert_subject_size == 0 ||
> -               strlen((const char*)info->cert_subject_data) == 0) {
> +        strlen((const char*)info->cert_subject_data) == 0) {
>          /* only verify hostname if no cert subject */
>          g_object_set(mig->session, "verify", SPICE_SESSION_VERIFY_HOSTNAME, NULL);
>      } else {
> @@ -2690,7 +2692,7 @@ void spice_main_update_display(SpiceMainChannel *channel, int id,
>   * Since: 0.35
>   **/
>  void spice_main_channel_update_display(SpiceMainChannel *channel, int id, int x, int y, int width,
> -                               int height, gboolean update)
> +                                       int height, gboolean update)
>  {
>      SpiceMainChannelPrivate *c;
>
> _______________________________________________
> Spice-commits mailing list
> Spice-commits@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-commits



-- 
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]