removed wrap_g_io_channel_ref() hack, since g_io_channel_ref() has a
authorManish Singh <yosh@gimp.org>
Mon, 8 Nov 2004 18:49:54 +0000 (18:49 +0000)
committerManish Singh <yosh@src.gnome.org>
Mon, 8 Nov 2004 18:49:54 +0000 (18:49 +0000)
Mon Nov  8 10:47:41 2004  Manish Singh  <yosh@gimp.org>

        * gobject/gsourceclosure.c: removed wrap_g_io_channel_ref() hack,
        since g_io_channel_ref() has a compatible API now.

gobject/ChangeLog
gobject/gsourceclosure.c

index 71bffbef7edf53f94a99effc21f93b53c84e1a4b..68764465050d0b9f52b171771362da0ebe4c76fa 100644 (file)
@@ -1,3 +1,8 @@
+Mon Nov  8 10:47:41 2004  Manish Singh  <yosh@gimp.org>
+
+       * gobject/gsourceclosure.c: removed wrap_g_io_channel_ref() hack,
+       since g_io_channel_ref() has a compatible API now.
+
 2004-11-02  Matthias Clasen  <mclasen@redhat.com>
 
        * === Released 2.5.5 ===
index 7ff1680a33d2c0fe309ce4a35c0214e8e3c08890..a733deb138f67156ec31bb7902381d30588f210d 100644 (file)
 #include "gvalue.h"
 #include "gvaluetypes.h"
 
-/* This is needed for a proper GBoxedCopyFunc, until the g_io_channel_ref API
- * returns it's GIOChannel itself #131076.
- */
-static GIOChannel *
-wrap_g_io_channel_ref (GIOChannel *channel)
-{
-  g_io_channel_ref (channel);
-  return channel;
-}
-
 GType
 g_io_channel_get_type (void)
 {
@@ -42,7 +32,7 @@ g_io_channel_get_type (void)
   
   if (our_type == 0)
     our_type = g_boxed_type_register_static ("GIOChannel",
-                                            (GBoxedCopyFunc) wrap_g_io_channel_ref,
+                                            (GBoxedCopyFunc) g_io_channel_ref,
                                             (GBoxedFreeFunc) g_io_channel_unref);
 
   return our_type;