From: Thierry Lorthiois Date: Fri, 23 Apr 2010 14:37:39 +0000 (+0000) Subject: little cleanup X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ea2b169f10d49d8f304c9b972022f9dd5b5b6df7;p=chaz%2Ftint2 little cleanup --- diff --git a/src/panel.c b/src/panel.c index 0cf5818..6c6a462 100644 --- a/src/panel.c +++ b/src/panel.c @@ -59,8 +59,6 @@ int panel_autohide_hide_timeout; int panel_autohide_height; int panel_strut_policy; -Task *task_active; -Task *task_drag; int max_tick_urgent; // panel's initial config @@ -83,8 +81,6 @@ void default_panel() panel1 = 0; nb_panel = 0; default_icon = NULL; - task_active = 0; - task_drag = 0; task_dragged = 0; panel_horizontal = 1; panel_position = CENTER; @@ -125,7 +121,8 @@ void cleanup_panel() } if (panel1) free(panel1); - if (backgrounds) g_array_free(backgrounds, 1); + if (backgrounds) + g_array_free(backgrounds, 1); if (panel_config.g_task.font_desc) pango_font_description_free(panel_config.g_task.font_desc); } diff --git a/src/panel.h b/src/panel.h index 257563a..765b5f1 100644 --- a/src/panel.h +++ b/src/panel.h @@ -59,8 +59,6 @@ extern int panel_autohide_hide_timeout; extern int panel_autohide_height; // for vertical panels this is of course the width extern int panel_strut_policy; -extern Task *task_active; -extern Task *task_drag; extern int max_tick_urgent; extern GArray* backgrounds; diff --git a/src/server.c b/src/server.c index 20e8095..d30b109 100644 --- a/src/server.c +++ b/src/server.c @@ -104,7 +104,8 @@ void cleanup_server() if (server.monitor) { int i; for (i=0; i