all repos — tint2 @ f70415d7dbace56d3f69afbe835802a96d837b3e

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

taskbar: fix GLib-CRITICAL: g_hash_table_foreach: assertion version == hash_table->version failed

git-svn-id: http://tint2.googlecode.com/svn/trunk@656 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
commit

f70415d7dbace56d3f69afbe835802a96d837b3e

parent

45a2156c12bbb4087d2ad957fca442e2c45b27a6

1 files changed, 11 insertions(+), 1 deletions(-)

jump to
M src/taskbar/taskbar.csrc/taskbar/taskbar.c

@@ -64,7 +64,17 @@ Taskbar *tskbar;

int i, j, k; cleanup_taskbarname(); - if (win_to_task_table) g_hash_table_foreach(win_to_task_table, taskbar_remove_task, 0); + if (win_to_task_table) { + while (g_hash_table_size(win_to_task_table)) { + GHashTableIter iter; + gpointer key, value; + + g_hash_table_iter_init (&iter, win_to_task_table); + if (g_hash_table_iter_next (&iter, &key, &value)) { + taskbar_remove_task(key, 0, 0); + } + } + } for (i=0 ; i < nb_panel ; i++) { panel = &panel1[i]; for (j=0 ; j < panel->nb_desktop ; j++) {