little cleanup

git-svn-id: http://tint2.googlecode.com/svn/trunk@440 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-04-23 14:37:39 +00:00
parent 885377a234
commit b99b5c6b8a
5 changed files with 16 additions and 18 deletions

View File

@@ -39,6 +39,9 @@
*/
GHashTable* win_to_task_table;
Task *task_active;
Task *task_drag;
guint win_hash(gconstpointer key) { return (guint)*((Window*)key); }
gboolean win_compare(gconstpointer a, gconstpointer b) { return (*((Window*)a) == *((Window*)b)); }
void free_ptr_array(gpointer data) { g_ptr_array_free(data, 1); }
@@ -51,6 +54,9 @@ void init_taskbar()
if (win_to_task_table == 0)
win_to_task_table = g_hash_table_new_full(win_hash, win_compare, free, free_ptr_array);
task_active = 0;
task_drag = 0;
for (i=0 ; i < nb_panel ; i++) {
panel = &panel1[i];