]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkstyle.c
Intern some more strings.
[~andy/gtk] / gtk / gtkstyle.c
index 85b08f09890ce0ef23e8b76907246e8140b074ec..d5cddc7f33293f9b5ae1ecb5e8ac3e3921ba30a2 100644 (file)
@@ -37,6 +37,7 @@
 #include "gtkthemes.h"
 #include "gtkiconfactory.h"
 #include "gtksettings.h"       /* _gtk_settings_parse_convert() */
+#include "gtkintl.h"
 #include "gtkalias.h"
 
 #define LIGHTNESS_MULT  1.3
@@ -376,7 +377,7 @@ gtk_style_get_type (void)
         (GInstanceInitFunc) gtk_style_init,
       };
       
-      style_type = g_type_register_static (G_TYPE_OBJECT, g_intern_static_string ("GtkStyle"),
+      style_type = g_type_register_static (G_TYPE_OBJECT, I_("GtkStyle"),
                                           &style_info, 0);
     }
   
@@ -545,7 +546,7 @@ gtk_style_class_init (GtkStyleClass *klass)
    *
    * Since: 2.4
    */
-  realize_signal = g_signal_new ("realize",
+  realize_signal = g_signal_new (I_("realize"),
                                 G_TYPE_FROM_CLASS (object_class),
                                 G_SIGNAL_RUN_FIRST,
                                 G_STRUCT_OFFSET (GtkStyleClass, realize),
@@ -563,7 +564,7 @@ gtk_style_class_init (GtkStyleClass *klass)
    *
    * Since: 2.4
    */
-  unrealize_signal = g_signal_new ("unrealize",
+  unrealize_signal = g_signal_new (I_("unrealize"),
                                   G_TYPE_FROM_CLASS (object_class),
                                   G_SIGNAL_RUN_FIRST,
                                   G_STRUCT_OFFSET (GtkStyleClass, unrealize),
@@ -6402,7 +6403,7 @@ gtk_border_get_type (void)
   static GType our_type = 0;
   
   if (our_type == 0)
-    our_type = g_boxed_type_register_static (g_intern_static_string ("GtkBorder"),
+    our_type = g_boxed_type_register_static (I_("GtkBorder"),
                                             (GBoxedCopyFunc) gtk_border_copy,
                                             (GBoxedFreeFunc) gtk_border_free);
 
@@ -6541,7 +6542,7 @@ style_unrealize_cursor_gcs (GtkStyle *style)
        gtk_gc_release (cursor_info->secondary_gc);
       
       g_free (cursor_info);
-      g_object_set_data (G_OBJECT (style), g_intern_static_string ("gtk-style-cursor-info"), NULL);
+      g_object_set_data (G_OBJECT (style), I_("gtk-style-cursor-info"), NULL);
     }
 }
 
@@ -6579,7 +6580,7 @@ get_insertion_cursor_gc (GtkWidget *widget,
   if (!cursor_info)
     {
       cursor_info = g_new (CursorInfo, 1);
-      g_object_set_data (G_OBJECT (widget->style), g_intern_static_string ("gtk-style-cursor-info"), cursor_info);
+      g_object_set_data (G_OBJECT (widget->style), I_("gtk-style-cursor-info"), cursor_info);
       cursor_info->primary_gc = NULL;
       cursor_info->secondary_gc = NULL;
       cursor_info->for_type = G_TYPE_INVALID;