all repos — tint2 @ affac4cfa6b1f1393070f60ad3173cd1da1e6ed0

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

src/launcher/launcher.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**************************************************************************
 * Copyright (C) 2010       (mrovi@interfete-web-club.com)
 *
 *
 **************************************************************************/

#ifndef LAUNCHER_H
#define LAUNCHER_H

#include "common.h"
#include "area.h"
#include "xsettings-client.h"
#include "icon-theme-common.h"

extern IconThemeWrapper *icon_theme_wrapper;
void load_icon_themes();
void free_icon_themes();

typedef struct Launcher {
    // always start with area
    Area area;
    GSList *list_apps;  // List of char*, each is a path to a app.desktop file
    GSList *list_icons; // List of LauncherIcon*
    int icon_size;
} Launcher;

typedef struct LauncherIcon {
    // always start with area
    Area area;
    char *config_path;
    Imlib_Image image;
    Imlib_Image image_hover;
    Imlib_Image image_pressed;
    char *cmd;
    char *cwd;
    char *icon_name;
    char *icon_path;
    char *icon_tooltip;
    int icon_size;
    int x, y;
} LauncherIcon;

extern gboolean launcher_enabled;
extern int launcher_max_icon_size;
extern int launcher_tooltip_enabled;
extern int launcher_alpha;
extern int launcher_saturation;
extern int launcher_brightness;
extern char *icon_theme_name_xsettings; // theme name
extern char *icon_theme_name_config;
extern int launcher_icon_theme_override;
extern int startup_notifications;
extern Background *launcher_icon_bg;
extern GList *launcher_icon_gradients;

// default global data
void default_launcher();

// initialize launcher : y position, precision, ...
void init_launcher();
void init_launcher_panel(void *panel);
void cleanup_launcher();
void cleanup_launcher_theme(Launcher *launcher);

gboolean resize_launcher(void *obj);
void draw_launcher(void *obj, cairo_t *c);
void launcher_default_icon_theme_changed();

// 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