summaryrefslogtreecommitdiff
path: root/gtk/gtkscale.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-09-01 05:11:46 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-09-01 05:11:46 +0000
commit94eec042676a8e18cebc9af8f27cd251355f4ba4 (patch)
tree51b9ff698258fc9799413f62fb82589c8d525f0e /gtk/gtkscale.c
parentf4bbe8f0deb8d1c36829acfc791d632d27805f30 (diff)
downloadgdk-pixbuf-94eec042676a8e18cebc9af8f27cd251355f4ba4.tar.gz
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().
Diffstat (limited to 'gtk/gtkscale.c')
-rw-r--r--gtk/gtkscale.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 9454cbebd..85f745460 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -105,7 +105,7 @@ gtk_scale_get_type (void)
NULL, /* value_table */
};
- scale_type = g_type_register_static (GTK_TYPE_RANGE, g_intern_static_string ("GtkScale"),
+ scale_type = g_type_register_static (GTK_TYPE_RANGE, I_("GtkScale"),
&scale_info, G_TYPE_FLAG_ABSTRACT);
}
@@ -129,9 +129,9 @@ single_string_accumulator (GSignalInvocationHint *ihint,
}
-#define add_slider_binding(binding_set, keyval, mask, scroll) \
- gtk_binding_entry_add_signal (binding_set, keyval, mask, \
- "move_slider", 1, \
+#define add_slider_binding(binding_set, keyval, mask, scroll) \
+ gtk_binding_entry_add_signal (binding_set, keyval, mask, \
+ I_("move_slider"), 1, \
GTK_TYPE_SCROLL_TYPE, scroll)
static void
@@ -158,7 +158,7 @@ gtk_scale_class_init (GtkScaleClass *class)
range_class->get_range_border = gtk_scale_get_range_border;
signals[FORMAT_VALUE] =
- g_signal_new ("format_value",
+ g_signal_new (I_("format_value"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkScaleClass, format_value),