diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-09-01 05:11:46 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-09-01 05:11:46 +0000 |
commit | 94eec042676a8e18cebc9af8f27cd251355f4ba4 (patch) | |
tree | 51b9ff698258fc9799413f62fb82589c8d525f0e /gtk/gtkctree.c | |
parent | f4bbe8f0deb8d1c36829acfc791d632d27805f30 (diff) | |
download | gtk+-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/gtkctree.c')
-rw-r--r-- | gtk/gtkctree.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gtk/gtkctree.c b/gtk/gtkctree.c index c96dbd3b64..72376fd96e 100644 --- a/gtk/gtkctree.c +++ b/gtk/gtkctree.c @@ -38,6 +38,7 @@ #include "gtkmain.h" #include "gtkmarshalers.h" #include "gtkdnd.h" +#include "gtkintl.h" #include <gdk/gdkkeysyms.h> #include "gtkalias.h" @@ -342,7 +343,7 @@ gtk_ctree_get_type (void) (GtkClassInitFunc) NULL, }; - g_intern_static_string ("GtkCTree"); + I_("GtkCTree"); ctree_type = gtk_type_unique (GTK_TYPE_CLIST, &ctree_info); } @@ -435,7 +436,7 @@ gtk_ctree_class_init (GtkCTreeClass *klass) ARG_EXPANDER_STYLE); ctree_signals[TREE_SELECT_ROW] = - gtk_signal_new ("tree_select_row", + gtk_signal_new (I_("tree_select_row"), GTK_RUN_FIRST, GTK_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (GtkCTreeClass, tree_select_row), @@ -444,7 +445,7 @@ gtk_ctree_class_init (GtkCTreeClass *klass) GTK_TYPE_CTREE_NODE, GTK_TYPE_INT); ctree_signals[TREE_UNSELECT_ROW] = - gtk_signal_new ("tree_unselect_row", + gtk_signal_new (I_("tree_unselect_row"), GTK_RUN_FIRST, GTK_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (GtkCTreeClass, tree_unselect_row), @@ -453,7 +454,7 @@ gtk_ctree_class_init (GtkCTreeClass *klass) GTK_TYPE_CTREE_NODE, GTK_TYPE_INT); ctree_signals[TREE_EXPAND] = - gtk_signal_new ("tree_expand", + gtk_signal_new (I_("tree_expand"), GTK_RUN_LAST, GTK_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (GtkCTreeClass, tree_expand), @@ -461,7 +462,7 @@ gtk_ctree_class_init (GtkCTreeClass *klass) GTK_TYPE_NONE, 1, GTK_TYPE_CTREE_NODE); ctree_signals[TREE_COLLAPSE] = - gtk_signal_new ("tree_collapse", + gtk_signal_new (I_("tree_collapse"), GTK_RUN_LAST, GTK_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (GtkCTreeClass, tree_collapse), @@ -469,7 +470,7 @@ gtk_ctree_class_init (GtkCTreeClass *klass) GTK_TYPE_NONE, 1, GTK_TYPE_CTREE_NODE); ctree_signals[TREE_MOVE] = - gtk_signal_new ("tree_move", + gtk_signal_new (I_("tree_move"), GTK_RUN_LAST, GTK_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (GtkCTreeClass, tree_move), @@ -479,7 +480,7 @@ gtk_ctree_class_init (GtkCTreeClass *klass) GTK_TYPE_CTREE_NODE, GTK_TYPE_CTREE_NODE); ctree_signals[CHANGE_FOCUS_ROW_EXPANSION] = - gtk_signal_new ("change_focus_row_expansion", + gtk_signal_new (I_("change_focus_row_expansion"), GTK_RUN_LAST | GTK_RUN_ACTION, GTK_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (GtkCTreeClass, |