]> Dogcows Code - chaz/tint2/blobdiff - src/taskbar/taskbar.c
moved initial values in function default_xxx
[chaz/tint2] / src / taskbar / taskbar.c
index 38d1f09d29ab2dd4ca731adf6d6e36c21b048d3f..34f49b0a52accebe6e2230d33376c04b930c4ea3 100644 (file)
@@ -37,7 +37,7 @@
    element. However for omnipresent windows (windows which are visible in every taskbar) the array
    contains to every Task* on each panel a pointer (i.e. GPtrArray.len == server.nb_desktop)
 */
-GHashTable* win_to_task_table = 0;
+GHashTable* win_to_task_table;
 
 guint win_hash(gconstpointer key) { return (guint)*((Window*)key); }
 gboolean win_compare(gconstpointer a, gconstpointer b) { return (*((Window*)a) == *((Window*)b)); }
@@ -171,6 +171,13 @@ void taskbar_remove_task(gpointer key, gpointer value, gpointer user_data)
        remove_task(task_get_task(*(Window*)key));
 }
 
+void default_taskbar()
+{
+       win_to_task_table = 0;
+       urgent_timeout = 0;
+       urgent_list = 0;
+}
+
 void cleanup_taskbar()
 {
        Panel *panel;
This page took 0.022801 seconds and 4 git commands to generate.