X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Flauncher%2Flauncher.h;h=3023546e90fb3f23bb7d833e2ef3702f63cebe9d;hb=7f435e3a3592613e718eac626917d9ae32e37bcf;hp=1a3f011f1fc019d23faa18dbca4d9e64b91ad99e;hpb=90a65490dff94bf80d13accae4f61b0431960dba;p=chaz%2Ftint2 diff --git a/src/launcher/launcher.h b/src/launcher/launcher.h index 1a3f011..3023546 100644 --- a/src/launcher/launcher.h +++ b/src/launcher/launcher.h @@ -13,16 +13,21 @@ 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_theme_names; // List of char*, each is a theme name (oxygen, Tango...) + 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 { @@ -52,8 +58,6 @@ typedef struct 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(); @@ -68,5 +72,6 @@ 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