diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-12-05 21:28:32 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-12-05 21:28:32 +0000 |
commit | 7dc70fba99b832c9c2f3aef590f0b3427078a5fb (patch) | |
tree | 3d544d4d7f665c0017aec664a87fb53e5b99e5f9 /gtk/gtkgc.c | |
parent | 40894e9a49bb7d177d31b388b0e12a877bd491e4 (diff) | |
download | gtk+-7dc70fba99b832c9c2f3aef590f0b3427078a5fb.tar.gz |
Use g_slice instead of mem chunks.
2005-12-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.c:
* gtk/gtkuimanager.c:
* gtk/gtktreedatalist.c:
* gtk/gtktext.c:
* gtk/gtkmain.c:
* gtk/gtkitemfactory.c:
* gtk/gtkseparator.[hc]:
* gtk/gtkclist.[hc]:
* gtk/gtkctree.c:
* gtk/gtkgc.c: Use g_slice instead of mem chunks.
Diffstat (limited to 'gtk/gtkgc.c')
-rw-r--r-- | gtk/gtkgc.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk/gtkgc.c b/gtk/gtkgc.c index 4073ed384a..a2cf6e4c05 100644 --- a/gtk/gtkgc.c +++ b/gtk/gtkgc.c @@ -65,8 +65,6 @@ static gint gtk_gc_drawable_equal (GtkGCDrawable *a, static gint initialize = TRUE; static GCache *gc_cache = NULL; -static GMemChunk *key_mem_chunk = NULL; - GdkGC* gtk_gc_get (gint depth, @@ -143,11 +141,7 @@ gtk_gc_key_dup (GtkGCKey *key) { GtkGCKey *new_key; - if (!key_mem_chunk) - key_mem_chunk = g_mem_chunk_new ("key mem chunk", sizeof (GtkGCKey), - 1024, G_ALLOC_AND_FREE); - - new_key = g_chunk_new (GtkGCKey, key_mem_chunk); + new_key = g_slice_new (GtkGCKey); *new_key = *key; @@ -157,7 +151,7 @@ gtk_gc_key_dup (GtkGCKey *key) static void gtk_gc_key_destroy (GtkGCKey *key) { - g_mem_chunk_free (key_mem_chunk, key); + g_slice_free (GtkGCKey, key); } static gpointer |