summaryrefslogtreecommitdiff
path: root/gtk/gtkstyle.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-08-31 16:53:43 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-08-31 16:53:43 +0000
commitc09cc89317d222e54e98d4e2e9f2792de13897ec (patch)
tree8bcdfca4dea1360d040d0174af4c2c0ccc1e2fe6 /gtk/gtkstyle.c
parentf55cffb074cea973d53c338770af179cca1856ad (diff)
downloadgtk+-c09cc89317d222e54e98d4e2e9f2792de13897ec.tar.gz
Intern type names in code generated by glib-mkenums, too.
2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r--gtk/gtkstyle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 54ec010152..3cf0094bce 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -376,7 +376,7 @@ gtk_style_get_type (void)
(GInstanceInitFunc) gtk_style_init,
};
- style_type = g_type_register_static (G_TYPE_OBJECT, "GtkStyle",
+ style_type = g_type_register_static (G_TYPE_OBJECT, g_intern_static_string ("GtkStyle"),
&style_info, 0);
}
@@ -6402,7 +6402,7 @@ gtk_border_get_type (void)
static GType our_type = 0;
if (our_type == 0)
- our_type = g_boxed_type_register_static ("GtkBorder",
+ our_type = g_boxed_type_register_static (g_intern_static_string ("GtkBorder"),
(GBoxedCopyFunc) gtk_border_copy,
(GBoxedFreeFunc) gtk_border_free);