diff options
author | Akira TAGOH <akira@tagoh.org> | 2006-06-14 17:23:48 +0000 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2006-06-14 17:23:48 +0000 |
commit | 94a82f36a5c9aafccb97695d7bcc5aab019ad593 (patch) | |
tree | 0512f5a05470bd0655826f717c272d8ae0aa8436 /src | |
parent | f06aa99b6e440e4e9c4c079b72f8a8fca26dca18 (diff) |
(hg_memory_visualizer_set_chunk_state): update a pixmap only when
changes happened on current pool.
Diffstat (limited to 'src')
-rw-r--r-- | src/visualizer.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/visualizer.c b/src/visualizer.c index 10175a7..86178c1 100644 --- a/src/visualizer.c +++ b/src/visualizer.c @@ -432,6 +432,7 @@ _hg_memory_visualizer_idle_handler_cb(gpointer data) HgMemoryVisualizer *visual; visual = HG_MEMORY_VISUALIZER (data); + _hg_memory_visualizer_redraw_in_pixmap(visual); G_LOCK (visualizer); @@ -738,8 +739,10 @@ hg_memory_visualizer_set_chunk_state(HgMemoryVisualizer *visual, } g_hash_table_insert(visual->pool2used_size, g_strdup(name), GSIZE_TO_POINTER (used_size)); - visual->need_update = TRUE; - _hg_memory_visualizer_add_idle(visual); + if (strcmp(name, visual->current_pool_name) == 0) { + visual->need_update = TRUE; + _hg_memory_visualizer_add_idle(visual); + } G_UNLOCK (visualizer); } |