forked from AuroraMiddleware/gtk
Intern type names before registering the type to avoid unnecessary copies.
2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_type): * gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_impl_x11_get_type): * gdk/x11/gdkkeys-x11.c (gdk_keymap_x11_get_type): * gdk/x11/gdkinput.c (gdk_device_get_type): * gdk/x11/gdkimage-x11.c (gdk_image_get_type): * gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_type): * gdk/x11/gdkdrawable-x11.c (_gdk_drawable_impl_x11_get_type): * gdk/x11/gdkdnd-x11.c (gdk_drag_context_get_type): * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type): * gdk/x11/gdkcolor-x11.c (gdk_colormap_get_type): * gdk/gdkwindow.c (gdk_window_object_get_type): * gdk/gdkscreen.c (gdk_screen_get_type): * gdk/gdkrectangle.c (gdk_rectangle_get_type): * gdk/gdkpixmap.c (gdk_pixmap_get_type): * gdk/gdkkeys.c (gdk_keymap_get_type): * gdk/gdkfont.c (gdk_font_get_type): * gdk/gdkevents.c (gdk_event_get_type): * gdk/gdkdraw.c (gdk_drawable_get_type): * gdk/gdkdisplaymanager.c (gdk_display_manager_get_type): * gdk/gdkdisplay.c (gdk_display_get_type): * gdk/gdkcursor.c (gdk_cursor_get_type): * gdk/gdkcolor.c (gdk_color_get_type): Intern type names before registering the type to avoid unnecessary copies.
This commit is contained in:
parent
0483aa6340
commit
476e138db0
29
ChangeLog
29
ChangeLog
@ -1,3 +1,32 @@
|
||||
2005-08-31 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_type):
|
||||
* gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type):
|
||||
* gdk/x11/gdkpixmap-x11.c (gdk_pixmap_impl_x11_get_type):
|
||||
* gdk/x11/gdkkeys-x11.c (gdk_keymap_x11_get_type):
|
||||
* gdk/x11/gdkinput.c (gdk_device_get_type):
|
||||
* gdk/x11/gdkimage-x11.c (gdk_image_get_type):
|
||||
* gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_type):
|
||||
* gdk/x11/gdkdrawable-x11.c (_gdk_drawable_impl_x11_get_type):
|
||||
* gdk/x11/gdkdnd-x11.c (gdk_drag_context_get_type):
|
||||
* gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type):
|
||||
* gdk/x11/gdkcolor-x11.c (gdk_colormap_get_type):
|
||||
* gdk/gdkwindow.c (gdk_window_object_get_type):
|
||||
* gdk/gdkscreen.c (gdk_screen_get_type):
|
||||
* gdk/gdkrectangle.c (gdk_rectangle_get_type):
|
||||
* gdk/gdkpixmap.c (gdk_pixmap_get_type):
|
||||
* gdk/gdkkeys.c (gdk_keymap_get_type):
|
||||
* gdk/gdkfont.c (gdk_font_get_type):
|
||||
* gdk/gdkevents.c (gdk_event_get_type):
|
||||
* gdk/gdkdraw.c (gdk_drawable_get_type):
|
||||
* gdk/gdkdisplaymanager.c (gdk_display_manager_get_type):
|
||||
* gdk/gdkdisplay.c (gdk_display_get_type):
|
||||
* gdk/gdkcursor.c (gdk_cursor_get_type):
|
||||
* gdk/gdkcolor.c (gdk_color_get_type): Intern type names before
|
||||
registering the type to avoid unnecessary copies.
|
||||
|
||||
* configure.in: Require GLib 2.9.0
|
||||
|
||||
2005-08-31 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
|
||||
|
@ -1,3 +1,32 @@
|
||||
2005-08-31 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_type):
|
||||
* gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type):
|
||||
* gdk/x11/gdkpixmap-x11.c (gdk_pixmap_impl_x11_get_type):
|
||||
* gdk/x11/gdkkeys-x11.c (gdk_keymap_x11_get_type):
|
||||
* gdk/x11/gdkinput.c (gdk_device_get_type):
|
||||
* gdk/x11/gdkimage-x11.c (gdk_image_get_type):
|
||||
* gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_type):
|
||||
* gdk/x11/gdkdrawable-x11.c (_gdk_drawable_impl_x11_get_type):
|
||||
* gdk/x11/gdkdnd-x11.c (gdk_drag_context_get_type):
|
||||
* gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type):
|
||||
* gdk/x11/gdkcolor-x11.c (gdk_colormap_get_type):
|
||||
* gdk/gdkwindow.c (gdk_window_object_get_type):
|
||||
* gdk/gdkscreen.c (gdk_screen_get_type):
|
||||
* gdk/gdkrectangle.c (gdk_rectangle_get_type):
|
||||
* gdk/gdkpixmap.c (gdk_pixmap_get_type):
|
||||
* gdk/gdkkeys.c (gdk_keymap_get_type):
|
||||
* gdk/gdkfont.c (gdk_font_get_type):
|
||||
* gdk/gdkevents.c (gdk_event_get_type):
|
||||
* gdk/gdkdraw.c (gdk_drawable_get_type):
|
||||
* gdk/gdkdisplaymanager.c (gdk_display_manager_get_type):
|
||||
* gdk/gdkdisplay.c (gdk_display_get_type):
|
||||
* gdk/gdkcursor.c (gdk_cursor_get_type):
|
||||
* gdk/gdkcolor.c (gdk_color_get_type): Intern type names before
|
||||
registering the type to avoid unnecessary copies.
|
||||
|
||||
* configure.in: Require GLib 2.9.0
|
||||
|
||||
2005-08-31 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
|
||||
|
@ -314,7 +314,7 @@ gdk_color_get_type (void)
|
||||
static GType our_type = 0;
|
||||
|
||||
if (our_type == 0)
|
||||
our_type = g_boxed_type_register_static ("GdkColor",
|
||||
our_type = g_boxed_type_register_static (g_intern_static_string ("GdkColor"),
|
||||
(GBoxedCopyFunc)gdk_color_copy,
|
||||
(GBoxedFreeFunc)gdk_color_free);
|
||||
return our_type;
|
||||
|
@ -36,7 +36,7 @@ gdk_cursor_get_type (void)
|
||||
static GType our_type = 0;
|
||||
|
||||
if (our_type == 0)
|
||||
our_type = g_boxed_type_register_static ("GdkCursor",
|
||||
our_type = g_boxed_type_register_static (g_intern_static_string ("GdkCursor"),
|
||||
(GBoxedCopyFunc)gdk_cursor_ref,
|
||||
(GBoxedFreeFunc)gdk_cursor_unref);
|
||||
return our_type;
|
||||
|
@ -107,7 +107,7 @@ gdk_display_get_type (void)
|
||||
(GInstanceInitFunc) gdk_display_init
|
||||
};
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkDisplay", &object_info, 0);
|
||||
g_intern_static_string ("GdkDisplay"), &object_info, 0);
|
||||
}
|
||||
|
||||
return object_type;
|
||||
|
@ -88,7 +88,7 @@ gdk_display_manager_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkDisplayManager",
|
||||
g_intern_static_string ("GdkDisplayManager"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ gdk_drawable_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkDrawable",
|
||||
g_intern_static_string ("GdkDrawable"),
|
||||
&object_info,
|
||||
G_TYPE_FLAG_ABSTRACT);
|
||||
}
|
||||
|
@ -1200,7 +1200,7 @@ gdk_event_get_type (void)
|
||||
static GType our_type = 0;
|
||||
|
||||
if (our_type == 0)
|
||||
our_type = g_boxed_type_register_static ("GdkEvent",
|
||||
our_type = g_boxed_type_register_static (g_intern_static_string ("GdkEvent"),
|
||||
(GBoxedCopyFunc)gdk_event_copy,
|
||||
(GBoxedFreeFunc)gdk_event_free);
|
||||
return our_type;
|
||||
|
@ -38,7 +38,7 @@ gdk_font_get_type (void)
|
||||
static GType our_type = 0;
|
||||
|
||||
if (our_type == 0)
|
||||
our_type = g_boxed_type_register_static ("GdkFont",
|
||||
our_type = g_boxed_type_register_static (g_intern_static_string ("GdkFont"),
|
||||
(GBoxedCopyFunc)gdk_font_ref,
|
||||
(GBoxedFreeFunc)gdk_font_unref);
|
||||
return our_type;
|
||||
|
@ -61,7 +61,7 @@ gdk_keymap_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkKeymap",
|
||||
g_intern_static_string ("GdkKeymap"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ gdk_pixmap_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_DRAWABLE,
|
||||
"GdkPixmap",
|
||||
g_intern_static_string ("GdkPixmap"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ gdk_rectangle_get_type (void)
|
||||
static GType our_type = 0;
|
||||
|
||||
if (our_type == 0)
|
||||
our_type = g_boxed_type_register_static ("GdkRectangle",
|
||||
our_type = g_boxed_type_register_static (g_intern_static_string ("GdkRectangle"),
|
||||
(GBoxedCopyFunc)gdk_rectangle_copy,
|
||||
(GBoxedFreeFunc)g_free);
|
||||
return our_type;
|
||||
|
@ -80,7 +80,7 @@ gdk_screen_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkScreen", &object_info, 0);
|
||||
g_intern_static_string ("GdkScreen"), &object_info, 0);
|
||||
}
|
||||
|
||||
return object_type;
|
||||
|
@ -215,7 +215,7 @@ gdk_window_object_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_DRAWABLE,
|
||||
"GdkWindow",
|
||||
g_intern_static_string ("GdkWindow"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ gdk_colormap_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkColormap",
|
||||
g_intern_static_string ("GdkColormap"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ _gdk_display_x11_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_DISPLAY,
|
||||
"GdkDisplayX11",
|
||||
g_intern_static_string ("GdkDisplayX11"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@ gdk_drag_context_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkDragContext",
|
||||
g_intern_static_string ("GdkDragContext"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ _gdk_drawable_impl_x11_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_DRAWABLE,
|
||||
"GdkDrawableImplX11",
|
||||
g_intern_static_string ("GdkDrawableImplX11"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ _gdk_gc_x11_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_GC,
|
||||
"GdkGCX11",
|
||||
g_intern_static_string ("GdkGCX11"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ gdk_image_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkImage",
|
||||
g_intern_static_string ("GdkImage"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -84,7 +84,7 @@ gdk_device_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkDevice",
|
||||
g_intern_static_string ("GdkDevice"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,7 @@ gdk_keymap_x11_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_KEYMAP,
|
||||
"GdkKeymapX11",
|
||||
g_intern_static_string ("GdkKeymapX11"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ gdk_pixmap_impl_x11_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_DRAWABLE_IMPL_X11,
|
||||
"GdkPixmapImplX11",
|
||||
g_intern_static_string ("GdkPixmapImplX11"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ _gdk_screen_x11_get_type (void)
|
||||
(GInstanceInitFunc) NULL,
|
||||
};
|
||||
object_type = g_type_register_static (GDK_TYPE_SCREEN,
|
||||
"GdkScreenX11",
|
||||
g_intern_static_string ("GdkScreenX11"),
|
||||
&object_info, 0);
|
||||
}
|
||||
return object_type;
|
||||
|
@ -97,7 +97,7 @@ gdk_visual_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkVisual",
|
||||
g_intern_static_string ("GdkVisual"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -136,7 +136,7 @@ gdk_window_impl_x11_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_DRAWABLE_IMPL_X11,
|
||||
"GdkWindowImplX11",
|
||||
g_intern_static_string ("GdkWindowImplX11"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user