]> Dogcows Code - chaz/tint2/blobdiff - src/launcher/launcher.h
Added .desktop file parsing (but not for UTF8...) and skeleton for loading icons...
[chaz/tint2] / src / launcher / launcher.h
index de86835ed3f8a09d32d02b1ed7f51c9b1c309172..1a3f011f1fc019d23faa18dbca4d9e64b91ad99e 100644 (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
This page took 0.022719 seconds and 4 git commands to generate.