After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 60865 - rename deprecated functions
rename deprecated functions
Status: RESOLVED DUPLICATE of bug 52790
Product: gtk+
Classification: Platform
Component: .General
1.3.x
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-09-21 03:34 UTC by Joshua N Pritikin
Modified: 2011-02-04 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rename deprecated functions (18.37 KB, patch)
2001-09-21 03:38 UTC, Joshua N Pritikin
none Details | Review

Description Joshua N Pritikin 2001-09-21 03:34:46 UTC
This patch renames:

gdk_drawable_ref/unref
gdk_window_ref/unref

to:

g_object_ref/unref

This change is especially useful in concert with enhancement #60864.
Comment 1 Joshua N Pritikin 2001-09-21 03:38:09 UTC
Created attachment 5646 [details] [review]
rename deprecated functions
Comment 2 Havoc Pennington 2001-09-21 04:07:39 UTC
I personally prefer the G_OBJECT() cast when calling
g_object_ref/unref, but since they take a void* I guess we may as well
use it.

Applying the patch seems like a sane cleanup but most likely should get
Owen/Tim's opinion.
Comment 3 Owen Taylor 2001-10-18 19:55:49 UTC
I think the patch is a reasonable cleanup, but I think
we really need to do:

 - All GDK GObject types (GdkColoramp, GdkPixmap, etc.)
 - All files (including the win32 and linux-fb subdirs)

At once. Doing only a partial job isn't really that much
of an advance.
Comment 4 Sebastian Wilhelmi 2001-11-03 21:40:53 UTC
That's what I'll be doing for bug #52790

*** This bug has been marked as a duplicate of 52790 ***