Added .desktop file parsing (but not for UTF8...) and skeleton for loading icons (work in progress)

git-svn-id: http://tint2.googlecode.com/svn/trunk@530 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000
2010-08-08 22:38:43 +00:00
committed by mrovi@interfete-web-club.com
parent 2af46648fc
commit e081f1f312
2 changed files with 255 additions and 2 deletions

View File

@@ -25,9 +25,35 @@ typedef struct LauncherIcon {
int width, height;
} LauncherIcon;
typedef struct DesktopEntry {
char *name;
char *exec;
char *icon;
} DesktopEntry;
#define ICON_DIR_TYPE_SCALABLE 0
#define ICON_DIR_TYPE_FIXED 1
#define ICON_DIR_TYPE_THRESHOLD 2
typedef struct IconThemeDir {
char *name;
int size;
int type;
int max_size;
int min_size;
int threshold;
} IconThemeDir;
typedef struct IconTheme {
char *name;
GSList *list_inherits; // each item is a char* (theme name)
GSList *list_directories; // each item is an IconThemeDir*
} IconTheme;
extern int launcher_enabled;
extern int launcher_max_icon_size;
extern GSList *icon_themes; // each item is an IconTheme*
// default global data
void default_launcher();
@@ -41,4 +67,6 @@ void draw_launcher (void *obj, cairo_t *c);
void launcher_action(LauncherIcon *icon);
void test_launcher_read_desktop_file();
#endif