[PATCH] Do not use static GTypeInfo and GInterfaceInfo
- From: Nicola Fontana <ntd entidi it>
- Subject: [PATCH] Do not use static GTypeInfo and GInterfaceInfo
- Date: Mon, 26 Oct 2009 20:29:31 +0100
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.
---
docs/tutorial/gtk-tut.sgml | 6 +++---
examples/gtkdial/gtkdial.c | 2 +-
examples/tictactoe/tictactoe.c | 2 +-
gdk-pixbuf/io-ani-animation.c | 4 ++--
gdk-pixbuf/io-gdip-animation.c | 4 ++--
gdk-pixbuf/io-gif-animation.c | 4 ++--
gdk/directfb/gdkcolor-directfb.c | 2 +-
gdk/directfb/gdkdisplay-directfb.c | 2 +-
gdk/directfb/gdkdnd-directfb.c | 2 +-
gdk/directfb/gdkdrawable-directfb.c | 2 +-
gdk/directfb/gdkgc-directfb.c | 2 +-
gdk/directfb/gdkimage-directfb.c | 2 +-
gdk/directfb/gdkinput-directfb.c | 2 +-
gdk/directfb/gdkpixmap-directfb.c | 2 +-
gdk/directfb/gdkvisual-directfb.c | 2 +-
gdk/directfb/gdkwindow-directfb.c | 6 +++---
gdk/quartz/gdkcolor-quartz.c | 2 +-
gdk/quartz/gdkdnd-quartz.c | 2 +-
gdk/quartz/gdkdrawable-quartz.c | 2 +-
gdk/quartz/gdkgc-quartz.c | 2 +-
gdk/quartz/gdkimage-quartz.c | 2 +-
gdk/quartz/gdkinput-old.c | 2 +-
gdk/quartz/gdkinput.c | 2 +-
gdk/quartz/gdkpixmap-quartz.c | 2 +-
gdk/quartz/gdkvisual-quartz.c | 2 +-
gdk/win32/gdkcolor-win32.c | 2 +-
gdk/win32/gdkgc-win32.c | 2 +-
gdk/win32/gdkimage-win32.c | 2 +-
gdk/win32/gdkinput.c | 2 +-
gdk/win32/gdkpixmap-win32.c | 2 +-
gdk/win32/gdkvisual-win32.c | 2 +-
gdk/win32/gdkwindow-win32.c | 2 +-
gdk/x11/gdkinput.c | 2 +-
gdk/x11/gdkkeys-x11.c | 2 +-
gdk/x11/gdkvisual-x11.c | 2 +-
gtk/gtkactiongroup.c | 2 +-
gtk/gtkcontainer.c | 2 +-
gtk/gtkiconview.c | 14 +++++++-------
gtk/gtktext.c | 2 +-
gtk/gtktoolbutton.c | 2 +-
modules/engines/ms-windows/msw_rc_style.c | 2 +-
modules/engines/ms-windows/msw_style.c | 2 +-
modules/engines/pixbuf/pixbuf-draw.c | 2 +-
modules/engines/pixbuf/pixbuf-rc-style.c | 2 +-
modules/input/gtkimcontextime.c | 2 +-
modules/input/gtkimcontextmultipress.c | 2 +-
modules/input/gtkimcontextthai.c | 2 +-
modules/input/gtkimcontextxim.c | 2 +-
modules/input/imam-et.c | 2 +-
modules/input/imcedilla.c | 2 +-
modules/input/imcyrillic-translit.c | 2 +-
modules/input/iminuktitut.c | 2 +-
modules/input/imipa.c | 2 +-
modules/input/imti-er.c | 2 +-
modules/input/imti-et.c | 2 +-
modules/input/imviqr.c | 2 +-
modules/other/gail/libgail-util/gailtextutil.c | 2 +-
modules/printbackends/cups/gtkprintbackendcups.c | 2 +-
modules/printbackends/cups/gtkprintercups.c | 2 +-
modules/printbackends/file/gtkprintbackendfile.c | 2 +-
modules/printbackends/lpr/gtkprintbackendlpr.c | 2 +-
modules/printbackends/papi/gtkprintbackendpapi.c | 2 +-
modules/printbackends/papi/gtkprinterpapi.c | 2 +-
modules/printbackends/test/gtkprintbackendtest.c | 2 +-
tests/testtreecolumns.c | 8 ++++----
tests/testtreeview.c | 4 ++--
66 files changed, 83 insertions(+), 83 deletions(-)
diff --git a/docs/tutorial/gtk-tut.sgml b/docs/tutorial/gtk-tut.sgml
index f45f697..9a7c9f1 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 385ed42..4abc184 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 34c7b2f..3385b1f 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 b3a236c..fc19b68 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 14cd034..7281b6d 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 580b057..391e928 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 6bd31c3..e3ecdd2 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 1b8d245..4483552 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 2691279..fdc988f 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 e10f6b1..7e948a8 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 ef83e85..7348312 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 7f73ca3..797909f 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 4c780a1..3f44ec0 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 b83755a..393544a 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 43ecb83..7ae0831 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 30ec834..eab3f8d 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 7806244..3dbc186 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 948b4dd..bb70b71 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 b4b1e03..2f03f2e 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 c4da893..66a4e75 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 40b1205..c8e37bc 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 ad636ca..3ed0609 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 657d435..7cb9b35 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 a743480..5818d7c 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 a1d62d1..b6dace5 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 546c91a..60a8464 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 c4e234f..62f7929 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 4359183..5292f20 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 ddf1d91..87862f1 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 d231cbd..1ee3f1e 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 cd26acd..440f6ce 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 e472b91..860e29b 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 25f93dc..4cd2406 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 002341b..bcd3258 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 593e3ba..6d827c9 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 2794c58..2fd87e0 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 6563af9..8b721d0 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 7bfbaa5..ef82ef8 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -8763,25 +8763,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,
@@ -9706,7 +9706,7 @@ gtk_icon_view_accessible_get_type (void)
if (!type)
{
- static GTypeInfo tinfo =
+ GTypeInfo tinfo =
{
0, /* class size */
(GBaseInitFunc) NULL, /* base init */
@@ -9719,13 +9719,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 44e7e0f..b853eab 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 6db8358..b9f5b7b 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 b80f713..62c29ad 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 a21494b..27f8594 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 dec14e5..38f2761 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 af6490a..a3367c4 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 5322b34..84fd1e0 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 9472098..7c2a228 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 640c013..5592a1e 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 a9e584c..cefbf60 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 6e910a9..f989ca4 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 98db8e8..59c4498 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 aac8d40..ef4c7de 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 38a0398..d727da7 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 900dc0b..b526d8f 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 ea1da49..ad62344 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 7834803..663c7e2 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 0c007ff..5994894 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 ae6234f..5ef7f69 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 7fd3984..4b378cb 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 ddf4d1d..09818c3 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 fc2046c..2d86bd5 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 72d9c33..f2de97d 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 7dba533..d349010 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 387bc30..979c428 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 c4a4e23..44912c0 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 213836e..b8358f5 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 8ee688a..f4552d8 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,
--
1.6.5.2
--MP_/K9ID+SMHflL9cewWSWeM_ab--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]