X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Flauncher%2Flauncher.h;h=f60aceee8e207c4d8d6e1ac5614338ca34bd6fa9;hb=d753ad772192bbcaa656c172b0405f7be2de7b24;hp=1a3f011f1fc019d23faa18dbca4d9e64b91ad99e;hpb=31800fd92d7d89945a41efae3c9e7584da50995d;p=chaz%2Ftint2 diff --git a/src/launcher/launcher.h b/src/launcher/launcher.h index 1a3f011..f60acee 100644 --- a/src/launcher/launcher.h +++ b/src/launcher/launcher.h @@ -9,20 +9,28 @@ #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 *list_themes; // List of IconTheme* } Launcher; typedef struct LauncherIcon { - Imlib_Image icon; + // always start with area + Area area; + Imlib_Image icon_scaled; + Imlib_Image icon_original; char *cmd; + char *icon_name; + char *icon_path; + char *icon_tooltip; + int icon_size; + int is_app_desktop; int x, y; - int width, height; } LauncherIcon; typedef struct DesktopEntry { @@ -41,6 +49,7 @@ typedef struct IconThemeDir { int max_size; int min_size; int threshold; + char *context; } IconThemeDir; typedef struct IconTheme { @@ -51,8 +60,12 @@ typedef struct IconTheme { extern int launcher_enabled; extern int launcher_max_icon_size; - -extern GSList *icon_themes; // each item is an IconTheme* +extern int launcher_tooltip_enabled; +extern int launcher_alpha; +extern int launcher_saturation; +extern int launcher_brightness; +extern char *icon_theme_name; // theme name +extern XSettingsClient *xsettings_client; // default global data void default_launcher(); @@ -61,12 +74,18 @@ void default_launcher(); void init_launcher(); void init_launcher_panel(void *panel); void cleanup_launcher(); +void cleanup_launcher_theme(Launcher *launcher); -void resize_launcher(void *obj); +int resize_launcher(void *obj); void draw_launcher (void *obj, cairo_t *c); -void launcher_action(LauncherIcon *icon); +// Populates the list_themes list +void launcher_load_themes(Launcher *launcher); +// Populates the list_icons list +void launcher_load_icons(Launcher *launcher); +void launcher_action(LauncherIcon *icon, XEvent* e); void test_launcher_read_desktop_file(); +void test_launcher_read_theme_file(); #endif