Remove global variables from header files
git-svn-id: http://tint2.googlecode.com/svn/trunk@671 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
committed by
mrovi9000@gmail.com
parent
1a3ba21245
commit
d584d04691
11
src/config.c
11
src/config.c
@@ -35,6 +35,10 @@
|
||||
#include <pango/pangoxft.h>
|
||||
#include <Imlib2.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifndef TINT2CONF
|
||||
|
||||
#include "common.h"
|
||||
#include "server.h"
|
||||
#include "panel.h"
|
||||
@@ -44,7 +48,6 @@
|
||||
#include "systraybar.h"
|
||||
#include "launcher.h"
|
||||
#include "clock.h"
|
||||
#include "config.h"
|
||||
#include "window.h"
|
||||
#include "tooltip.h"
|
||||
#include "timer.h"
|
||||
@@ -53,10 +56,14 @@
|
||||
#include "battery.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// global path
|
||||
char *config_path;
|
||||
char *snapshot_path;
|
||||
|
||||
#ifndef TINT2CONF
|
||||
|
||||
// --------------------------------------------------
|
||||
// backward compatibility
|
||||
// detect if it's an old config file (==1)
|
||||
@@ -780,5 +787,5 @@ int config_read_file (const char *path)
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user