[Spice-devel] [PATCH 1/2] Remove simicolon from G_DEFINE_TYPE_ macros

Jonathon Jongsma jjongsma at redhat.com
Wed Aug 1 16:17:40 UTC 2018


Acked-by: Jonathon Jongsma <jjongsma at redhat.com>


On Wed, 2018-08-01 at 16:57 +0200, Victor Toso wrote:
> From: Victor Toso <me at victortoso.com>
> 
> ---
>  src/desktop-integration.c | 2 +-
>  src/spice-channel.c       | 2 +-
>  src/spice-gtk-session.c   | 2 +-
>  src/spice-session.c       | 2 +-
>  src/spice-uri.c           | 2 +-
>  src/usb-acl-helper.c      | 2 +-
>  src/usb-device-manager.c  | 2 +-
>  src/usb-device-widget.c   | 2 +-
>  src/win-usb-dev.c         | 2 +-
>  tools/spicy.c             | 2 +-
>  10 files changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/src/desktop-integration.c b/src/desktop-integration.c
> index 61d9eae..7c433bb 100644
> --- a/src/desktop-integration.c
> +++ b/src/desktop-integration.c
> @@ -39,7 +39,7 @@ struct _SpiceDesktopIntegrationPrivate {
>      guint gnome_automount_inhibit_cookie;
>  };
>  
> -G_DEFINE_TYPE_WITH_PRIVATE(SpiceDesktopIntegration,
> spice_desktop_integration, G_TYPE_OBJECT);
> +G_DEFINE_TYPE_WITH_PRIVATE(SpiceDesktopIntegration,
> spice_desktop_integration, G_TYPE_OBJECT)
>  
>  /* ---------------------------------------------------------------
> --- */
>  /* Gnome specific
> code                                                */
> diff --git a/src/spice-channel.c b/src/spice-channel.c
> index 55dcd8e..0a5437c 100644
> --- a/src/spice-channel.c
> +++ b/src/spice-channel.c
> @@ -81,7 +81,7 @@ static RSA *EVP_PKEY_get0_RSA(EVP_PKEY *pkey)
>  
>  G_DEFINE_TYPE_WITH_CODE (SpiceChannel, spice_channel, G_TYPE_OBJECT,
>                           G_ADD_PRIVATE (SpiceChannel)
> -                         g_type_add_class_private (g_define_type_id,
> sizeof (SpiceChannelClassPrivate)));
> +                         g_type_add_class_private (g_define_type_id,
> sizeof (SpiceChannelClassPrivate)))
>  
>  /* Properties */
>  enum {
> diff --git a/src/spice-gtk-session.c b/src/spice-gtk-session.c
> index 4b5f7a2..20a4060 100644
> --- a/src/spice-gtk-session.c
> +++ b/src/spice-gtk-session.c
> @@ -104,7 +104,7 @@ static void channel_destroy(SpiceSession
> *session, SpiceChannel *channel,
>                              gpointer user_data);
>  static gboolean read_only(SpiceGtkSession *self);
>  
> -G_DEFINE_TYPE_WITH_PRIVATE(SpiceGtkSession, spice_gtk_session,
> G_TYPE_OBJECT);
> +G_DEFINE_TYPE_WITH_PRIVATE(SpiceGtkSession, spice_gtk_session,
> G_TYPE_OBJECT)
>  
>  /* Properties */
>  enum {
> diff --git a/src/spice-session.c b/src/spice-session.c
> index ee6e4cf..b1aeb84 100644
> --- a/src/spice-session.c
> +++ b/src/spice-session.c
> @@ -157,7 +157,7 @@ struct _SpiceSessionPrivate {
>   * a Spice server.
>   */
>  
> -G_DEFINE_TYPE_WITH_PRIVATE(SpiceSession, spice_session,
> G_TYPE_OBJECT);
> +G_DEFINE_TYPE_WITH_PRIVATE(SpiceSession, spice_session,
> G_TYPE_OBJECT)
>  
>  /* Properties */
>  enum {
> diff --git a/src/spice-uri.c b/src/spice-uri.c
> index ae1347b..0c75543 100644
> --- a/src/spice-uri.c
> +++ b/src/spice-uri.c
> @@ -49,7 +49,7 @@ struct _SpiceURIClass {
>      GObjectClass parent_class;
>  };
>  
> -G_DEFINE_TYPE(SpiceURI, spice_uri, G_TYPE_OBJECT);
> +G_DEFINE_TYPE(SpiceURI, spice_uri, G_TYPE_OBJECT)
>  
>  enum  {
>      SPICE_URI_DUMMY_PROPERTY,
> diff --git a/src/usb-acl-helper.c b/src/usb-acl-helper.c
> index fcac4b7..186b86e 100644
> --- a/src/usb-acl-helper.c
> +++ b/src/usb-acl-helper.c
> @@ -35,7 +35,7 @@ struct _SpiceUsbAclHelperPrivate {
>      gulong cancellable_id;
>  };
>  
> -G_DEFINE_TYPE_WITH_PRIVATE(SpiceUsbAclHelper, spice_usb_acl_helper,
> G_TYPE_OBJECT);
> +G_DEFINE_TYPE_WITH_PRIVATE(SpiceUsbAclHelper, spice_usb_acl_helper,
> G_TYPE_OBJECT)
>  
>  static void spice_usb_acl_helper_init(SpiceUsbAclHelper *self)
>  {
> diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
> index 35b1eb7..55bf67e 100644
> --- a/src/usb-device-manager.c
> +++ b/src/usb-device-manager.c
> @@ -256,7 +256,7 @@ static guint signals[LAST_SIGNAL] = { 0, };
>  
>  G_DEFINE_TYPE_WITH_CODE(SpiceUsbDeviceManager,
> spice_usb_device_manager, G_TYPE_OBJECT,
>       G_ADD_PRIVATE(SpiceUsbDeviceManager)
> -     G_IMPLEMENT_INTERFACE (G_TYPE_INITABLE,
> spice_usb_device_manager_initable_iface_init));
> +     G_IMPLEMENT_INTERFACE (G_TYPE_INITABLE,
> spice_usb_device_manager_initable_iface_init))
>  
>  static void spice_usb_device_manager_init(SpiceUsbDeviceManager
> *self)
>  {
> diff --git a/src/usb-device-widget.c b/src/usb-device-widget.c
> index 6c4fd63..d6e440c 100644
> --- a/src/usb-device-widget.c
> +++ b/src/usb-device-widget.c
> @@ -87,7 +87,7 @@ struct _SpiceUsbDeviceWidgetPrivate {
>  
>  static guint signals[LAST_SIGNAL] = { 0, };
>  
> -G_DEFINE_TYPE_WITH_PRIVATE(SpiceUsbDeviceWidget,
> spice_usb_device_widget, GTK_TYPE_BOX);
> +G_DEFINE_TYPE_WITH_PRIVATE(SpiceUsbDeviceWidget,
> spice_usb_device_widget, GTK_TYPE_BOX)
>  
>  static void
> spice_usb_device_widget_get_property(GObject     *gobject,
>                                                   guint        prop_i
> d,
> diff --git a/src/win-usb-dev.c b/src/win-usb-dev.c
> index fe4cb98..7dc02ac 100644
> --- a/src/win-usb-dev.c
> +++ b/src/win-usb-dev.c
> @@ -47,7 +47,7 @@ static void
> g_udev_client_initable_iface_init(GInitableIface  *iface);
>  
>  G_DEFINE_TYPE_WITH_CODE(GUdevClient, g_udev_client, G_TYPE_OBJECT,
>                          G_ADD_PRIVATE(GUdevClient)
> -                        G_IMPLEMENT_INTERFACE(G_TYPE_INITABLE,
> g_udev_client_initable_iface_init));
> +                        G_IMPLEMENT_INTERFACE(G_TYPE_INITABLE,
> g_udev_client_initable_iface_init))
>  
>  
>  typedef struct _GUdevDeviceInfo GUdevDeviceInfo;
> diff --git a/tools/spicy.c b/tools/spicy.c
> index d79e504..263c15f 100644
> --- a/tools/spicy.c
> +++ b/tools/spicy.c
> @@ -89,7 +89,7 @@ struct _SpiceWindowClass
>  
>  static GType spice_window_get_type(void);
>  
> -G_DEFINE_TYPE (SpiceWindow, spice_window, G_TYPE_OBJECT);
> +G_DEFINE_TYPE (SpiceWindow, spice_window, G_TYPE_OBJECT)
>  
>  #define CHANNELID_MAX 4
>  #define MONITORID_MAX 4


More information about the Spice-devel mailing list