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 600158 - Do not use static GTypeInfo and GInterfaceInfo
Do not use static GTypeInfo and GInterfaceInfo
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
2.18.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-10-30 19:21 UTC by Javier Jardón (IRC: jjardon)
Modified: 2009-11-07 06:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Do not use static GTypeInfo and GInterfaceInfo (37.88 KB, patch)
2009-10-30 19:21 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review

Description Javier Jardón (IRC: jjardon) 2009-10-30 19:21:25 UTC
Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED)
and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and
GInterfaceInfo structs, while tutorials and source code often use
static variables.

Patch following
Comment 1 Javier Jardón (IRC: jjardon) 2009-10-30 19:21:52 UTC
Created attachment 146585 [details] [review]
Do not use static GTypeInfo and GInterfaceInfo
Comment 2 Javier Jardón (IRC: jjardon) 2009-10-30 19:22:50 UTC
Initially reported here: http://mail.gnome.org/archives/gtk-devel-list/2009-October/msg00168.html
Comment 3 Matthias Clasen 2009-11-05 22:27:22 UTC
Comment on attachment 146585 [details] [review]
Do not use static GTypeInfo and GInterfaceInfo

Looks good to me.
Comment 4 Javier Jardón (IRC: jjardon) 2009-11-06 00:22:52 UTC
Comment on attachment 146585 [details] [review]
Do not use static GTypeInfo and GInterfaceInfo

commit 1e1131c959c5e74ce1272b698f597e97e0f5ddd7