Commit 6ff309a9 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Get rid of an unnecessary static variable.

2006-04-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmain.c: Get rid of an unnecessary static variable.
parent 8de7c8b7
2006-04-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmain.c: Get rid of an unnecessary static variable.
* gtk/gtktextlayout.c: Fix a warning.
* gtk/gtktextsegment.h:
* gtk/gtktextsegment.c:
* gtk/gtktextchild.c:
* gtk/gtktextbtree.c:
* gtk/gtktextmark.c:
* gtk/gtktexttypes.h: Make the segment class pointers const.
......
2006-04-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmain.c: Get rid of an unnecessary static variable.
* gtk/gtktextlayout.c: Fix a warning.
* gtk/gtktextsegment.h:
* gtk/gtktextsegment.c:
* gtk/gtktextchild.c:
* gtk/gtktextbtree.c:
* gtk/gtktextmark.c:
* gtk/gtktexttypes.h: Make the segment class pointers const.
......
......@@ -161,9 +161,6 @@ static const GDebugKey gtk_debug_keys[] = {
{"geometry", GTK_DEBUG_GEOMETRY},
{"icontheme", GTK_DEBUG_ICONTHEME}
};
static const guint gtk_ndebug_keys = sizeof (gtk_debug_keys) / sizeof (GDebugKey);
#endif /* G_ENABLE_DEBUG */
/**
......@@ -370,7 +367,7 @@ gtk_arg_debug_cb (const char *key, const char *value, gpointer user_data)
{
gtk_debug_flags |= g_parse_debug_string (value,
gtk_debug_keys,
gtk_ndebug_keys);
G_N_ELEMENTS (gtk_debug_keys));
return TRUE;
}
......@@ -380,7 +377,7 @@ gtk_arg_no_debug_cb (const char *key, const char *value, gpointer user_data)
{
gtk_debug_flags &= ~g_parse_debug_string (value,
gtk_debug_keys,
gtk_ndebug_keys);
G_N_ELEMENTS (gtk_debug_keys));
return TRUE;
}
......@@ -447,7 +444,7 @@ do_pre_parse_initialization (int *argc,
{
gtk_debug_flags = g_parse_debug_string (env_string,
gtk_debug_keys,
gtk_ndebug_keys);
G_N_ELEMENTS (gtk_debug_keys));
env_string = NULL;
}
#endif /* G_ENABLE_DEBUG */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment