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 | |
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
66 files changed, 83 insertions, 83 deletions
diff --git a/docs/tutorial/gtk-tut.sgml b/docs/tutorial/gtk-tut.sgml index f45f6972f0..9a7c9f1c11 100755 --- a/docs/tutorial/gtk-tut.sgml +++ b/docs/tutorial/gtk-tut.sgml @@ -11154,7 +11154,7 @@ tictactoe_get_type (void) if (!ttt_type) { - static const GTypeInfo ttt_info = + const GTypeInfo ttt_info = { sizeof (TictactoeClass), NULL, /* base_init */ @@ -14606,7 +14606,7 @@ tictactoe_get_type (void) if (!ttt_type) { - static const GTypeInfo ttt_info = + const GTypeInfo ttt_info = { sizeof (TictactoeClass), NULL, /* base_init */ @@ -14963,7 +14963,7 @@ gtk_dial_get_type () if (!dial_type) { - static const GTypeInfo dial_info = + const GTypeInfo dial_info = { sizeof (GtkDialClass), NULL, diff --git a/examples/gtkdial/gtkdial.c b/examples/gtkdial/gtkdial.c index 385ed420f4..4abc18472e 100644 --- a/examples/gtkdial/gtkdial.c +++ b/examples/gtkdial/gtkdial.c @@ -65,7 +65,7 @@ gtk_dial_get_type () if (!dial_type) { - static const GTypeInfo dial_info = + const GTypeInfo dial_info = { sizeof (GtkDialClass), NULL, diff --git a/examples/tictactoe/tictactoe.c b/examples/tictactoe/tictactoe.c index 34c7b2f05e..3385b1fa0d 100644 --- a/examples/tictactoe/tictactoe.c +++ b/examples/tictactoe/tictactoe.c @@ -40,7 +40,7 @@ tictactoe_get_type (void) if (!ttt_type) { - static const GTypeInfo ttt_info = + const GTypeInfo ttt_info = { sizeof (TictactoeClass), NULL, /* base_init */ diff --git a/gdk-pixbuf/io-ani-animation.c b/gdk-pixbuf/io-ani-animation.c index b3a236cb85..fc19b68666 100644 --- a/gdk-pixbuf/io-ani-animation.c +++ b/gdk-pixbuf/io-ani-animation.c @@ -49,7 +49,7 @@ gdk_pixbuf_ani_anim_get_type (void) static GType object_type = 0; if (!object_type) { - static const GTypeInfo object_info = { + const GTypeInfo object_info = { sizeof (GdkPixbufAniAnimClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, @@ -191,7 +191,7 @@ gdk_pixbuf_ani_anim_iter_get_type (void) static GType object_type = 0; if (!object_type) { - static const GTypeInfo object_info = { + const GTypeInfo object_info = { sizeof (GdkPixbufAniAnimIterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, diff --git a/gdk-pixbuf/io-gdip-animation.c b/gdk-pixbuf/io-gdip-animation.c index 14cd034bc2..7281b6d115 100644 --- a/gdk-pixbuf/io-gdip-animation.c +++ b/gdk-pixbuf/io-gdip-animation.c @@ -46,7 +46,7 @@ gdk_pixbuf_gdip_anim_get_type (void) static GType object_type = 0; if (!object_type) { - static const GTypeInfo object_info = { + const GTypeInfo object_info = { sizeof (GdkPixbufGdipAnimClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, @@ -197,7 +197,7 @@ gdk_pixbuf_gdip_anim_iter_get_type (void) static GType object_type = 0; if (!object_type) { - static const GTypeInfo object_info = { + const GTypeInfo object_info = { sizeof (GdkPixbufGdipAnimIterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, diff --git a/gdk-pixbuf/io-gif-animation.c b/gdk-pixbuf/io-gif-animation.c index 580b057528..391e928503 100644 --- a/gdk-pixbuf/io-gif-animation.c +++ b/gdk-pixbuf/io-gif-animation.c @@ -50,7 +50,7 @@ gdk_pixbuf_gif_anim_get_type (void) static GType object_type = 0; if (!object_type) { - static const GTypeInfo object_info = { + const GTypeInfo object_info = { sizeof (GdkPixbufGifAnimClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, @@ -206,7 +206,7 @@ gdk_pixbuf_gif_anim_iter_get_type (void) static GType object_type = 0; if (!object_type) { - static const GTypeInfo object_info = { + const GTypeInfo object_info = { sizeof (GdkPixbufGifAnimIterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, 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, diff --git a/gdk/quartz/gdkcolor-quartz.c b/gdk/quartz/gdkcolor-quartz.c index 78062440c5..3dbc186f25 100644 --- a/gdk/quartz/gdkcolor-quartz.c +++ b/gdk/quartz/gdkcolor-quartz.c @@ -30,7 +30,7 @@ gdk_colormap_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkColormapClass), (GBaseInitFunc) NULL, diff --git a/gdk/quartz/gdkdnd-quartz.c b/gdk/quartz/gdkdnd-quartz.c index 948b4dd39a..bb70b710fc 100644 --- a/gdk/quartz/gdkdnd-quartz.c +++ b/gdk/quartz/gdkdnd-quartz.c @@ -59,7 +59,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/quartz/gdkdrawable-quartz.c b/gdk/quartz/gdkdrawable-quartz.c index b4b1e0364a..2f03f2eecd 100644 --- a/gdk/quartz/gdkdrawable-quartz.c +++ b/gdk/quartz/gdkdrawable-quartz.c @@ -687,7 +687,7 @@ gdk_drawable_impl_quartz_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkDrawableImplQuartzClass), (GBaseInitFunc) NULL, diff --git a/gdk/quartz/gdkgc-quartz.c b/gdk/quartz/gdkgc-quartz.c index c4da89328c..66a4e759b6 100644 --- a/gdk/quartz/gdkgc-quartz.c +++ b/gdk/quartz/gdkgc-quartz.c @@ -169,7 +169,7 @@ _gdk_gc_quartz_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkGCQuartzClass), (GBaseInitFunc) NULL, diff --git a/gdk/quartz/gdkimage-quartz.c b/gdk/quartz/gdkimage-quartz.c index 40b120563a..c8e37bcbaa 100644 --- a/gdk/quartz/gdkimage-quartz.c +++ b/gdk/quartz/gdkimage-quartz.c @@ -202,7 +202,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/quartz/gdkinput-old.c b/gdk/quartz/gdkinput-old.c index ad636ca5fa..3ed0609d5a 100644 --- a/gdk/quartz/gdkinput-old.c +++ b/gdk/quartz/gdkinput-old.c @@ -29,7 +29,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/quartz/gdkinput.c b/gdk/quartz/gdkinput.c index ea6cdca1e9..d05638cea9 100644 --- a/gdk/quartz/gdkinput.c +++ b/gdk/quartz/gdkinput.c @@ -83,7 +83,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/quartz/gdkpixmap-quartz.c b/gdk/quartz/gdkpixmap-quartz.c index a74348089d..5818d7c860 100644 --- a/gdk/quartz/gdkpixmap-quartz.c +++ b/gdk/quartz/gdkpixmap-quartz.c @@ -102,7 +102,7 @@ _gdk_pixmap_impl_quartz_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkPixmapImplQuartzClass), (GBaseInitFunc) NULL, diff --git a/gdk/quartz/gdkvisual-quartz.c b/gdk/quartz/gdkvisual-quartz.c index a1d62d10a3..b6dace565d 100644 --- a/gdk/quartz/gdkvisual-quartz.c +++ b/gdk/quartz/gdkvisual-quartz.c @@ -47,7 +47,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/win32/gdkcolor-win32.c b/gdk/win32/gdkcolor-win32.c index 546c91a641..60a8464c1f 100644 --- a/gdk/win32/gdkcolor-win32.c +++ b/gdk/win32/gdkcolor-win32.c @@ -51,7 +51,7 @@ gdk_colormap_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkColormapClass), (GBaseInitFunc) NULL, diff --git a/gdk/win32/gdkgc-win32.c b/gdk/win32/gdkgc-win32.c index c4e234f4c1..62f79292b6 100644 --- a/gdk/win32/gdkgc-win32.c +++ b/gdk/win32/gdkgc-win32.c @@ -60,7 +60,7 @@ _gdk_gc_win32_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkGCWin32Class), (GBaseInitFunc) NULL, diff --git a/gdk/win32/gdkimage-win32.c b/gdk/win32/gdkimage-win32.c index 4359183b9b..5292f20622 100644 --- a/gdk/win32/gdkimage-win32.c +++ b/gdk/win32/gdkimage-win32.c @@ -46,7 +46,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/win32/gdkinput.c b/gdk/win32/gdkinput.c index ddf1d91e7f..87862f1915 100644 --- a/gdk/win32/gdkinput.c +++ b/gdk/win32/gdkinput.c @@ -73,7 +73,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/win32/gdkpixmap-win32.c b/gdk/win32/gdkpixmap-win32.c index d231cbd106..1ee3f1ec1e 100644 --- a/gdk/win32/gdkpixmap-win32.c +++ b/gdk/win32/gdkpixmap-win32.c @@ -53,7 +53,7 @@ _gdk_pixmap_impl_win32_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkPixmapImplWin32Class), (GBaseInitFunc) NULL, diff --git a/gdk/win32/gdkvisual-win32.c b/gdk/win32/gdkvisual-win32.c index cd26acde96..440f6ce844 100644 --- a/gdk/win32/gdkvisual-win32.c +++ b/gdk/win32/gdkvisual-win32.c @@ -61,7 +61,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/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index 8942688102..b859efc818 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -70,7 +70,7 @@ _gdk_window_impl_win32_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkWindowImplWin32Class), (GBaseInitFunc) NULL, diff --git a/gdk/x11/gdkinput.c b/gdk/x11/gdkinput.c index 25f93dc28d..4cd2406c02 100644 --- a/gdk/x11/gdkinput.c +++ b/gdk/x11/gdkinput.c @@ -75,7 +75,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/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c index 18952968fc..01d2a182e5 100644 --- a/gdk/x11/gdkkeys-x11.c +++ b/gdk/x11/gdkkeys-x11.c @@ -119,7 +119,7 @@ gdk_keymap_x11_get_type (void) if (!object_type) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GdkKeymapClass), (GBaseInitFunc) NULL, diff --git a/gdk/x11/gdkvisual-x11.c b/gdk/x11/gdkvisual-x11.c index 593e3bab81..6d827c9ed2 100644 --- a/gdk/x11/gdkvisual-x11.c +++ b/gdk/x11/gdkvisual-x11.c @@ -70,7 +70,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/gtk/gtkactiongroup.c b/gtk/gtkactiongroup.c index 2794c58008..2fd87e0969 100644 --- a/gtk/gtkactiongroup.c +++ b/gtk/gtkactiongroup.c @@ -131,7 +131,7 @@ gtk_action_group_get_type (void) (GInstanceInitFunc) gtk_action_group_init, }; - static const GInterfaceInfo buildable_info = + const GInterfaceInfo buildable_info = { (GInterfaceInitFunc) gtk_action_group_buildable_init, NULL, diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 6563af965f..8b721d0282 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -155,7 +155,7 @@ gtk_container_get_type (void) NULL, /* value_table */ }; - static const GInterfaceInfo buildable_info = + const GInterfaceInfo buildable_info = { (GInterfaceInitFunc) gtk_container_buildable_init, NULL, diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index bb6ba29100..95dd72d675 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -8768,25 +8768,25 @@ gtk_icon_view_item_accessible_get_type (void) NULL /* value table */ }; - static const GInterfaceInfo atk_component_info = + const GInterfaceInfo atk_component_info = { (GInterfaceInitFunc) atk_component_item_interface_init, (GInterfaceFinalizeFunc) NULL, NULL }; - static const GInterfaceInfo atk_action_info = + const GInterfaceInfo atk_action_info = { (GInterfaceInitFunc) atk_action_item_interface_init, (GInterfaceFinalizeFunc) NULL, NULL }; - static const GInterfaceInfo atk_image_info = + const GInterfaceInfo atk_image_info = { (GInterfaceInitFunc) atk_image_item_interface_init, (GInterfaceFinalizeFunc) NULL, NULL }; - static const GInterfaceInfo atk_text_info = + const GInterfaceInfo atk_text_info = { (GInterfaceInitFunc) atk_text_item_interface_init, (GInterfaceFinalizeFunc) NULL, @@ -9711,7 +9711,7 @@ gtk_icon_view_accessible_get_type (void) if (!type) { - static GTypeInfo tinfo = + GTypeInfo tinfo = { 0, /* class size */ (GBaseInitFunc) NULL, /* base init */ @@ -9724,13 +9724,13 @@ gtk_icon_view_accessible_get_type (void) (GInstanceInitFunc) NULL, /* instance init */ NULL /* value table */ }; - static const GInterfaceInfo atk_component_info = + const GInterfaceInfo atk_component_info = { (GInterfaceInitFunc) atk_component_interface_init, (GInterfaceFinalizeFunc) NULL, NULL }; - static const GInterfaceInfo atk_selection_info = + const GInterfaceInfo atk_selection_info = { (GInterfaceInitFunc) gtk_icon_view_accessible_selection_interface_init, (GInterfaceFinalizeFunc) NULL, diff --git a/gtk/gtktext.c b/gtk/gtktext.c index ddf5e205f3..24f3b77e5a 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -471,7 +471,7 @@ gtk_text_get_type (void) (GtkClassInitFunc) NULL, }; - static const GInterfaceInfo editable_info = + const GInterfaceInfo editable_info = { (GInterfaceInitFunc) gtk_text_editable_init, /* interface_init */ NULL, /* interface_finalize */ diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c index 5975a51689..8875b6d6e6 100644 --- a/gtk/gtktoolbutton.c +++ b/gtk/gtktoolbutton.c @@ -114,7 +114,7 @@ gtk_tool_button_get_type (void) if (!type) { - static const GInterfaceInfo activatable_info = + const GInterfaceInfo activatable_info = { (GInterfaceInitFunc) gtk_tool_button_activatable_interface_init, (GInterfaceFinalizeFunc) NULL, diff --git a/modules/engines/ms-windows/msw_rc_style.c b/modules/engines/ms-windows/msw_rc_style.c index b80f71332a..62c29adca1 100755 --- a/modules/engines/ms-windows/msw_rc_style.c +++ b/modules/engines/ms-windows/msw_rc_style.c @@ -34,7 +34,7 @@ GType msw_type_rc_style = 0; void msw_rc_style_register_type (GTypeModule *module) { - static const GTypeInfo object_info = { + const GTypeInfo object_info = { sizeof (MswRcStyleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, diff --git a/modules/engines/ms-windows/msw_style.c b/modules/engines/ms-windows/msw_style.c index a21494b298..27f85947fc 100755 --- a/modules/engines/ms-windows/msw_style.c +++ b/modules/engines/ms-windows/msw_style.c @@ -3745,7 +3745,7 @@ GType msw_type_style = 0; void msw_style_register_type (GTypeModule *module) { - static const GTypeInfo object_info = { + const GTypeInfo object_info = { sizeof (MswStyleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c index dec14e5be1..38f2761232 100644 --- a/modules/engines/pixbuf/pixbuf-draw.c +++ b/modules/engines/pixbuf/pixbuf-draw.c @@ -1058,7 +1058,7 @@ GType pixbuf_type_style = 0; void pixbuf_style_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (PixbufStyleClass), (GBaseInitFunc) NULL, diff --git a/modules/engines/pixbuf/pixbuf-rc-style.c b/modules/engines/pixbuf/pixbuf-rc-style.c index af6490aac0..a3367c4a0e 100644 --- a/modules/engines/pixbuf/pixbuf-rc-style.c +++ b/modules/engines/pixbuf/pixbuf-rc-style.c @@ -140,7 +140,7 @@ GType pixbuf_type_rc_style = 0; void pixbuf_rc_style_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (PixbufRcStyleClass), (GBaseInitFunc) NULL, diff --git a/modules/input/gtkimcontextime.c b/modules/input/gtkimcontextime.c index 5322b342e0..84fd1e0c83 100644 --- a/modules/input/gtkimcontextime.c +++ b/modules/input/gtkimcontextime.c @@ -124,7 +124,7 @@ static GObjectClass *parent_class; void gtk_im_context_ime_register_type (GTypeModule *type_module) { - static const GTypeInfo im_context_ime_info = { + const GTypeInfo im_context_ime_info = { sizeof (GtkIMContextIMEClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, diff --git a/modules/input/gtkimcontextmultipress.c b/modules/input/gtkimcontextmultipress.c index 947209810d..7c2a2282e7 100644 --- a/modules/input/gtkimcontextmultipress.c +++ b/modules/input/gtkimcontextmultipress.c @@ -63,7 +63,7 @@ static void vfunc_get_preedit_string (GtkIMContext *context, void gtk_im_context_multipress_register_type (GTypeModule* type_module) { - static const GTypeInfo im_context_multipress_info = + const GTypeInfo im_context_multipress_info = { sizeof (GtkImContextMultipressClass), (GBaseInitFunc) NULL, diff --git a/modules/input/gtkimcontextthai.c b/modules/input/gtkimcontextthai.c index 640c013c5f..5592a1ebf0 100644 --- a/modules/input/gtkimcontextthai.c +++ b/modules/input/gtkimcontextthai.c @@ -43,7 +43,7 @@ GType gtk_type_im_context_thai = 0; void gtk_im_context_thai_register_type (GTypeModule *type_module) { - static const GTypeInfo im_context_thai_info = + const GTypeInfo im_context_thai_info = { sizeof (GtkIMContextThaiClass), (GBaseInitFunc) NULL, diff --git a/modules/input/gtkimcontextxim.c b/modules/input/gtkimcontextxim.c index a9e584c5ca..cefbf609b4 100644 --- a/modules/input/gtkimcontextxim.c +++ b/modules/input/gtkimcontextxim.c @@ -158,7 +158,7 @@ static GSList *status_windows = NULL; void gtk_im_context_xim_register_type (GTypeModule *type_module) { - static const GTypeInfo im_context_xim_info = + const GTypeInfo im_context_xim_info = { sizeof (GtkIMContextXIMClass), (GBaseInitFunc) NULL, diff --git a/modules/input/imam-et.c b/modules/input/imam-et.c index 6e910a9972..f989ca4c46 100644 --- a/modules/input/imam-et.c +++ b/modules/input/imam-et.c @@ -43,7 +43,7 @@ static void am_et_init (GtkIMContextSimple *im_context); static void am_et_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GtkIMContextSimpleClass), (GBaseInitFunc) NULL, diff --git a/modules/input/imcedilla.c b/modules/input/imcedilla.c index 98db8e8f3f..59c4498d57 100644 --- a/modules/input/imcedilla.c +++ b/modules/input/imcedilla.c @@ -38,7 +38,7 @@ static void cedilla_init (GtkIMContextSimple *im_context); static void cedilla_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GtkIMContextSimpleClass), (GBaseInitFunc) NULL, diff --git a/modules/input/imcyrillic-translit.c b/modules/input/imcyrillic-translit.c index aac8d40396..ef4c7decbe 100644 --- a/modules/input/imcyrillic-translit.c +++ b/modules/input/imcyrillic-translit.c @@ -37,7 +37,7 @@ static void cyrillic_translit_init (GtkIMContextSimple *im_context); static void cyrillic_translit_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GtkIMContextSimpleClass), (GBaseInitFunc) NULL, diff --git a/modules/input/iminuktitut.c b/modules/input/iminuktitut.c index 38a03988a0..d727da743e 100644 --- a/modules/input/iminuktitut.c +++ b/modules/input/iminuktitut.c @@ -40,7 +40,7 @@ static void inuktitut_init (GtkIMContextSimple *im_context); static void inuktitut_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GtkIMContextSimpleClass), (GBaseInitFunc) NULL, diff --git a/modules/input/imipa.c b/modules/input/imipa.c index 900dc0b81f..b526d8f402 100644 --- a/modules/input/imipa.c +++ b/modules/input/imipa.c @@ -37,7 +37,7 @@ static void ipa_init (GtkIMContextSimple *im_context); static void ipa_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GtkIMContextSimpleClass), (GBaseInitFunc) NULL, diff --git a/modules/input/imti-er.c b/modules/input/imti-er.c index ea1da49475..ad623448c7 100644 --- a/modules/input/imti-er.c +++ b/modules/input/imti-er.c @@ -43,7 +43,7 @@ static void ti_er_init (GtkIMContextSimple *im_context); static void ti_er_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GtkIMContextSimpleClass), (GBaseInitFunc) NULL, diff --git a/modules/input/imti-et.c b/modules/input/imti-et.c index 7834803f21..663c7e2a82 100644 --- a/modules/input/imti-et.c +++ b/modules/input/imti-et.c @@ -43,7 +43,7 @@ static void ti_et_init (GtkIMContextSimple *im_context); static void ti_et_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GtkIMContextSimpleClass), (GBaseInitFunc) NULL, diff --git a/modules/input/imviqr.c b/modules/input/imviqr.c index 0c007ffd13..5994894486 100644 --- a/modules/input/imviqr.c +++ b/modules/input/imviqr.c @@ -40,7 +40,7 @@ static void viqr_init (GtkIMContextSimple *im_context); static void viqr_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GtkIMContextSimpleClass), (GBaseInitFunc) NULL, diff --git a/modules/other/gail/libgail-util/gailtextutil.c b/modules/other/gail/libgail-util/gailtextutil.c index ae6234f936..5ef7f69a0a 100644 --- a/modules/other/gail/libgail-util/gailtextutil.c +++ b/modules/other/gail/libgail-util/gailtextutil.c @@ -46,7 +46,7 @@ gail_text_util_get_type(void) if (!type) { - static const GTypeInfo tinfo = + const GTypeInfo tinfo = { sizeof (GailTextUtilClass), (GBaseInitFunc) NULL, /* base init */ diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index 10947b41bc..0bae98fac2 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -193,7 +193,7 @@ static gboolean request_auth_info (gpointer static void gtk_print_backend_cups_register_type (GTypeModule *module) { - static const GTypeInfo print_backend_cups_info = + const GTypeInfo print_backend_cups_info = { sizeof (GtkPrintBackendCupsClass), NULL, /* base_init */ diff --git a/modules/printbackends/cups/gtkprintercups.c b/modules/printbackends/cups/gtkprintercups.c index ddf4d1d8a5..09818c3505 100644 --- a/modules/printbackends/cups/gtkprintercups.c +++ b/modules/printbackends/cups/gtkprintercups.c @@ -30,7 +30,7 @@ static GType gtk_printer_cups_type = 0; void gtk_printer_cups_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GtkPrinterCupsClass), (GBaseInitFunc) NULL, diff --git a/modules/printbackends/file/gtkprintbackendfile.c b/modules/printbackends/file/gtkprintbackendfile.c index fc2046c595..2d86bd50e4 100644 --- a/modules/printbackends/file/gtkprintbackendfile.c +++ b/modules/printbackends/file/gtkprintbackendfile.c @@ -109,7 +109,7 @@ static GtkPageSetup * file_printer_get_default_page_size (GtkPrinter static void gtk_print_backend_file_register_type (GTypeModule *module) { - static const GTypeInfo print_backend_file_info = + const GTypeInfo print_backend_file_info = { sizeof (GtkPrintBackendFileClass), NULL, /* base_init */ diff --git a/modules/printbackends/lpr/gtkprintbackendlpr.c b/modules/printbackends/lpr/gtkprintbackendlpr.c index f76206e0be..4ba4ae495f 100644 --- a/modules/printbackends/lpr/gtkprintbackendlpr.c +++ b/modules/printbackends/lpr/gtkprintbackendlpr.c @@ -88,7 +88,7 @@ static void gtk_print_backend_lpr_print_stream (GtkPrintBacke static void gtk_print_backend_lpr_register_type (GTypeModule *module) { - static const GTypeInfo print_backend_lpr_info = + const GTypeInfo print_backend_lpr_info = { sizeof (GtkPrintBackendLprClass), NULL, /* base_init */ diff --git a/modules/printbackends/papi/gtkprintbackendpapi.c b/modules/printbackends/papi/gtkprintbackendpapi.c index 7dba533eaa..d349010583 100644 --- a/modules/printbackends/papi/gtkprintbackendpapi.c +++ b/modules/printbackends/papi/gtkprintbackendpapi.c @@ -105,7 +105,7 @@ static void papi_display_printer_status_done (gpointer use static void gtk_print_backend_papi_register_type (GTypeModule *module) { - static const GTypeInfo print_backend_papi_info = + const GTypeInfo print_backend_papi_info = { sizeof (GtkPrintBackendPapiClass), NULL, /* base_init */ diff --git a/modules/printbackends/papi/gtkprinterpapi.c b/modules/printbackends/papi/gtkprinterpapi.c index 387bc30be7..979c42877c 100644 --- a/modules/printbackends/papi/gtkprinterpapi.c +++ b/modules/printbackends/papi/gtkprinterpapi.c @@ -31,7 +31,7 @@ static GType gtk_printer_papi_type = 0; void gtk_printer_papi_register_type (GTypeModule *module) { - static const GTypeInfo object_info = + const GTypeInfo object_info = { sizeof (GtkPrinterPapiClass), (GBaseInitFunc) NULL, diff --git a/modules/printbackends/test/gtkprintbackendtest.c b/modules/printbackends/test/gtkprintbackendtest.c index c4a4e23f73..44912c0e06 100644 --- a/modules/printbackends/test/gtkprintbackendtest.c +++ b/modules/printbackends/test/gtkprintbackendtest.c @@ -107,7 +107,7 @@ static void test_printer_request_details (GtkPrinter static void gtk_print_backend_test_register_type (GTypeModule *module) { - static const GTypeInfo print_backend_test_info = + const GTypeInfo print_backend_test_info = { sizeof (GtkPrintBackendTestClass), NULL, /* base_init */ diff --git a/tests/testtreecolumns.c b/tests/testtreecolumns.c index 213836ef61..b8358f5134 100644 --- a/tests/testtreecolumns.c +++ b/tests/testtreecolumns.c @@ -374,7 +374,7 @@ view_column_model_get_type (void) if (!view_column_model_type) { - static const GTypeInfo view_column_model_info = + const GTypeInfo view_column_model_info = { sizeof (GtkListStoreClass), NULL, /* base_init */ @@ -387,21 +387,21 @@ view_column_model_get_type (void) (GInstanceInitFunc) view_column_model_init, }; - static const GInterfaceInfo tree_model_info = + const GInterfaceInfo tree_model_info = { (GInterfaceInitFunc) view_column_model_tree_model_init, NULL, NULL }; - static const GInterfaceInfo drag_source_info = + const GInterfaceInfo drag_source_info = { (GInterfaceInitFunc) view_column_model_drag_source_init, NULL, NULL }; - static const GInterfaceInfo drag_dest_info = + const GInterfaceInfo drag_dest_info = { (GInterfaceInitFunc) view_column_model_drag_dest_init, NULL, diff --git a/tests/testtreeview.c b/tests/testtreeview.c index 8ee688a937..f4552d80a9 100644 --- a/tests/testtreeview.c +++ b/tests/testtreeview.c @@ -891,7 +891,7 @@ gtk_tree_model_types_get_type (void) if (!model_types_type) { - static const GTypeInfo model_types_info = + const GTypeInfo model_types_info = { sizeof (GtkTreeModelTypesClass), NULL, /* base_init */ @@ -904,7 +904,7 @@ gtk_tree_model_types_get_type (void) (GInstanceInitFunc) gtk_tree_model_types_init }; - static const GInterfaceInfo tree_model_info = + const GInterfaceInfo tree_model_info = { (GInterfaceInitFunc) gtk_tree_model_types_tree_model_init, NULL, |