]> Dogcows Code - chaz/tint2/blobdiff - src/launcher/launcher.h
launcher : limit launcher_icon_theme to 1 theme. Add XSETTINGS client and read launch...
[chaz/tint2] / src / launcher / launcher.h
index 1a3f011f1fc019d23faa18dbca4d9e64b91ad99e..ddbc6e82017c833f82323807ae69fbc2499f082a 100644 (file)
@@ -9,20 +9,25 @@
 
 #include "common.h"
 #include "area.h"
+#include "xsettings-client.h"
 
 typedef struct Launcher {
        // always start with area
        Area area;
-       GSList *list_icon_paths;
-       GSList *list_cmds;
-       GSList *list_icons;
+       GSList *list_apps;                      // List of char*, each is a path to a app.desktop file
+       GSList *list_icons;             // List of LauncherIcon*
+       GSList *icon_themes;            // List of IconTheme*
 } Launcher;
 
 typedef struct LauncherIcon {
-       Imlib_Image icon;
+       Imlib_Image icon_scaled;
+       Imlib_Image icon_original;
        char *cmd;
+       char *icon_name;
+       char *icon_path;
+       int icon_size;
+       int is_app_desktop;
        int x, y;
-       int width, height;
 } LauncherIcon;
 
 typedef struct DesktopEntry {
@@ -41,6 +46,7 @@ typedef struct IconThemeDir {
        int max_size;
        int min_size;
        int threshold;
+       char *context;
 } IconThemeDir;
 
 typedef struct IconTheme {
@@ -51,8 +57,8 @@ typedef struct IconTheme {
 
 extern int launcher_enabled;
 extern int launcher_max_icon_size;
-
-extern GSList *icon_themes; // each item is an IconTheme*
+extern char *icon_theme_name;  // theme name
+extern XSettingsClient *xsettings_client;
 
 // default global data
 void default_launcher();
@@ -62,11 +68,12 @@ void init_launcher();
 void init_launcher_panel(void *panel);
 void cleanup_launcher();
 
-void resize_launcher(void *obj);
+int  resize_launcher(void *obj);
 void draw_launcher (void *obj, cairo_t *c);
 
 void launcher_action(LauncherIcon *icon);
 
 void test_launcher_read_desktop_file();
+void test_launcher_read_theme_file();
 
 #endif
This page took 0.02612 seconds and 4 git commands to generate.