mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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.
This commit is contained in:
parent
8de7c8b761
commit
6ff309a95c
@ -1,9 +1,13 @@
|
||||
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.
|
||||
|
||||
|
@ -1,9 +1,13 @@
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user