]> Dogcows Code - chaz/tint2/blobdiff - src/launcher/launcher.h
Changed launcher to use Areas for each icon; this allows showing tooltips
[chaz/tint2] / src / launcher / launcher.h
index ddbc6e82017c833f82323807ae69fbc2499f082a..3a6abcf87f7c496408b16ad151cab14ef66bae35 100644 (file)
@@ -16,15 +16,18 @@ typedef struct Launcher {
        Area area;
        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*
+       GSList *list_themes;            // List of IconTheme*
 } Launcher;
 
 typedef struct LauncherIcon {
+       // 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;
@@ -67,10 +70,15 @@ void default_launcher();
 void init_launcher();
 void init_launcher_panel(void *panel);
 void cleanup_launcher();
+void cleanup_launcher_theme(Launcher *launcher);
 
 int  resize_launcher(void *obj);
 void draw_launcher (void *obj, cairo_t *c);
 
+// 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);
 
 void test_launcher_read_desktop_file();
This page took 0.02265 seconds and 4 git commands to generate.