Intern some more strings.
2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
This commit is contained in:
committed by
Matthias Clasen
parent
f4bbe8f0de
commit
94eec04267
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user