]> Dogcows Code - chaz/tint2/blobdiff - src/launcher/launcher.c
Disable mouse hover events when the launcher tooltip is disabled
[chaz/tint2] / src / launcher / launcher.c
index b62c597e00c223fd275fdfadd4713c30570f4966..cb4aa9ba1aa93ba180666f25f9646a1388d7805e 100644 (file)
@@ -104,6 +104,7 @@ void init_launcher_panel(void *p)
 void cleanup_launcher()
 {
        int i;
+       GSList *l;
 
        if (xsettings_client)
                xsettings_client_destroy(xsettings_client);
@@ -111,14 +112,12 @@ void cleanup_launcher()
                Panel *panel = &panel1[i];
                Launcher *launcher = &panel->launcher;          
                cleanup_launcher_theme(launcher);
-               
-               GSList *l;
-               for (l = launcher->list_apps; l ; l = l->next) {
-                       free(l->data);
-               }
-               g_slist_free(launcher->list_apps);
-               launcher->list_apps = NULL;
        }
+       for (l = panel_config.launcher.list_apps; l ; l = l->next) {
+               free(l->data);
+       }
+       g_slist_free(panel_config.launcher.list_apps);
+       panel_config.launcher.list_apps = NULL;
        free(icon_theme_name);
        icon_theme_name = 0;
        launcher_enabled = 0;
This page took 0.023868 seconds and 4 git commands to generate.