diff options
author | Nicola Fontana <ntd@entidi.it> | 2009-11-06 01:21:09 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2009-11-06 01:21:09 +0100 |
commit | 1e1131c959c5e74ce1272b698f597e97e0f5ddd7 (patch) | |
tree | 8c414b20aa333a218b41138a17a9361efdcb654e /gdk/directfb | |
parent | e41f4e85cf56f3419fc284f9ef6cfd61b9008b4e (diff) | |
download | gtk+-1e1131c959c5e74ce1272b698f597e97e0f5ddd7.tar.gz |
Do not use static GTypeInfo and GInterfaceInfo
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. This commit consistently adopts the former method.
https://bugzilla.gnome.org/show_bug.cgi?id=600158
Diffstat (limited to 'gdk/directfb')
-rw-r--r-- | gdk/directfb/gdkcolor-directfb.c | 2 | ||||
-rw-r--r-- | gdk/directfb/gdkdisplay-directfb.c | 2 | ||||
-rw-r--r-- | gdk/directfb/gdkdnd-directfb.c | 2 | ||||
-rw-r--r-- | gdk/directfb/gdkdrawable-directfb.c | 2 | ||||
-rw-r--r-- | gdk/directfb/gdkgc-directfb.c | 2 | ||||
-rw-r--r-- | gdk/directfb/gdkimage-directfb.c | 2 | ||||
-rw-r--r-- | gdk/directfb/gdkinput-directfb.c | 2 | ||||
-rw-r--r-- | gdk/directfb/gdkpixmap-directfb.c | 2 | ||||
-rw-r--r-- | gdk/directfb/gdkvisual-directfb.c | 2 | ||||
-rw-r--r-- | gdk/directfb/gdkwindow-directfb.c | 6 |
10 files changed, 12 insertions, 12 deletions
diff --git a/gdk/directfb/gdkcolor-directfb.c b/gdk/directfb/gdkcolor-directfb.c index 6bd31c3419..e3ecdd24b4 100644 --- a/gdk/directfb/gdkcolor-directfb.c +++ b/gdk/directfb/gdkcolor-directfb.c @@ -73,7 +73,7 @@ gdk_colormap_get_type (void) static GType object_type = 0; if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkColormapClass), (GBaseInitFunc) NULL, diff --git a/gdk/directfb/gdkdisplay-directfb.c b/gdk/directfb/gdkdisplay-directfb.c index 1b8d2456f2..448355229e 100644 --- a/gdk/directfb/gdkdisplay-directfb.c +++ b/gdk/directfb/gdkdisplay-directfb.c @@ -140,7 +140,7 @@ gdk_display_dfb_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkDisplayDFBClass), (GBaseInitFunc) NULL, diff --git a/gdk/directfb/gdkdnd-directfb.c b/gdk/directfb/gdkdnd-directfb.c index 6569105c26..a106de818c 100644 --- a/gdk/directfb/gdkdnd-directfb.c +++ b/gdk/directfb/gdkdnd-directfb.c @@ -123,7 +123,7 @@ gdk_drag_context_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkDragContextClass), (GBaseInitFunc) NULL, diff --git a/gdk/directfb/gdkdrawable-directfb.c b/gdk/directfb/gdkdrawable-directfb.c index 7e26c8d21b..9fdad15028 100644 --- a/gdk/directfb/gdkdrawable-directfb.c +++ b/gdk/directfb/gdkdrawable-directfb.c @@ -1568,7 +1568,7 @@ gdk_drawable_impl_directfb_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkDrawableImplDirectFBClass), (GBaseInitFunc) NULL, diff --git a/gdk/directfb/gdkgc-directfb.c b/gdk/directfb/gdkgc-directfb.c index ef83e85ace..7348312006 100644 --- a/gdk/directfb/gdkgc-directfb.c +++ b/gdk/directfb/gdkgc-directfb.c @@ -71,7 +71,7 @@ gdk_gc_directfb_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkGCDirectFBClass), (GBaseInitFunc) NULL, diff --git a/gdk/directfb/gdkimage-directfb.c b/gdk/directfb/gdkimage-directfb.c index a6bee05050..0485dfdb18 100644 --- a/gdk/directfb/gdkimage-directfb.c +++ b/gdk/directfb/gdkimage-directfb.c @@ -58,7 +58,7 @@ gdk_image_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkImageClass), (GBaseInitFunc) NULL, diff --git a/gdk/directfb/gdkinput-directfb.c b/gdk/directfb/gdkinput-directfb.c index 9fbe3a63e6..00e0b4343d 100644 --- a/gdk/directfb/gdkinput-directfb.c +++ b/gdk/directfb/gdkinput-directfb.c @@ -94,7 +94,7 @@ gdk_device_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkDeviceClass), (GBaseInitFunc) NULL, diff --git a/gdk/directfb/gdkpixmap-directfb.c b/gdk/directfb/gdkpixmap-directfb.c index 7e45ba0afe..c1134cc75c 100644 --- a/gdk/directfb/gdkpixmap-directfb.c +++ b/gdk/directfb/gdkpixmap-directfb.c @@ -61,7 +61,7 @@ gdk_pixmap_impl_directfb_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkPixmapImplDirectFBClass), (GBaseInitFunc) NULL, diff --git a/gdk/directfb/gdkvisual-directfb.c b/gdk/directfb/gdkvisual-directfb.c index 43ecb83b4d..7ae08312bf 100644 --- a/gdk/directfb/gdkvisual-directfb.c +++ b/gdk/directfb/gdkvisual-directfb.c @@ -88,7 +88,7 @@ gdk_visual_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkVisualClass), (GBaseInitFunc) NULL, diff --git a/gdk/directfb/gdkwindow-directfb.c b/gdk/directfb/gdkwindow-directfb.c index 61c9bace6a..1690394471 100644 --- a/gdk/directfb/gdkwindow-directfb.c +++ b/gdk/directfb/gdkwindow-directfb.c @@ -92,7 +92,7 @@ gdk_window_impl_directfb_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkWindowImplDirectFBClass), (GBaseInitFunc) NULL, @@ -105,14 +105,14 @@ gdk_window_impl_directfb_get_type (void) (GInstanceInitFunc) gdk_window_impl_directfb_init, }; - static const GInterfaceInfo paintable_info = + const GInterfaceInfo paintable_info = { (GInterfaceInitFunc) gdk_window_impl_directfb_paintable_init, NULL, NULL }; - static const GInterfaceInfo window_impl_info = + const GInterfaceInfo window_impl_info = { (GInterfaceInitFunc) gdk_window_impl_iface_init, NULL, |