[Spice-devel] [PATCH spice-gtk 0/4] Cleanups for new gtk and glib

Pavel Grunt pgrunt at redhat.com
Tue Apr 5 16:58:31 UTC 2016


Hi,

since we bumped the glib and gtk dependencies, it's possible to clean up
the code little bit. Patches silence some deprecated warnings and change
our code to use more g_clear_pointer and g_clear_object.

Thanks,
Pavel

Pavel Grunt (4):
  Use GMutex instead of GStaticMutex
  Use g_object_unref instead of gdk_cursor_unref
  Use g_clear_object if possible
  Use g_clear_pointer if possible

 src/bio-gio.c               |  3 +--
 src/channel-display-mjpeg.c |  6 ++----
 src/channel-display.c       | 10 +++-------
 src/channel-main.c          |  6 ++----
 src/channel-playback.c      |  3 +--
 src/channel-record.c        |  9 +++------
 src/channel-smartcard.c     | 28 ++++++---------------------
 src/channel-usbredir.c      |  9 +++------
 src/decode-glz.c            |  3 +--
 src/desktop-integration.c   |  6 +++---
 src/smartcard-manager.c     | 13 +++----------
 src/spice-audio.c           |  5 +----
 src/spice-channel.c         | 37 ++++++++----------------------------
 src/spice-gstaudio.c        | 30 +++++++++--------------------
 src/spice-gtk-session.c     | 12 +++++-------
 src/spice-option.c          |  3 +--
 src/spice-pulse.c           | 46 +++++++++++++--------------------------------
 src/spice-session.c         | 24 ++++++++++-------------
 src/spice-widget-cairo.c    | 10 +++-------
 src/spice-widget.c          | 44 +++++++++++--------------------------------
 src/usb-acl-helper.c        | 11 ++---------
 src/usbutil.c               |  6 +++---
 src/wocky-http-proxy.c      |  6 ++----
 23 files changed, 96 insertions(+), 234 deletions(-)

-- 
2.8.0



More information about the Spice-devel mailing list