1 /**************************************************************************
2 * Copyright (C) 2010 (mrovi@interfete-web-club.com)
5 **************************************************************************/
12 #include "xsettings-client.h"
14 typedef struct Launcher
{
15 // always start with area
17 GSList
*list_apps
; // List of char*, each is a path to a app.desktop file
18 GSList
*list_icons
; // List of LauncherIcon*
19 GSList
*icon_themes
; // List of IconTheme*
22 typedef struct LauncherIcon
{
23 Imlib_Image icon_scaled
;
24 Imlib_Image icon_original
;
33 typedef struct DesktopEntry
{
39 #define ICON_DIR_TYPE_SCALABLE 0
40 #define ICON_DIR_TYPE_FIXED 1
41 #define ICON_DIR_TYPE_THRESHOLD 2
42 typedef struct IconThemeDir
{
52 typedef struct IconTheme
{
54 GSList
*list_inherits
; // each item is a char* (theme name)
55 GSList
*list_directories
; // each item is an IconThemeDir*
58 extern int launcher_enabled
;
59 extern int launcher_max_icon_size
;
60 extern char *icon_theme_name
; // theme name
61 extern XSettingsClient
*xsettings_client
;
63 // default global data
64 void default_launcher();
66 // initialize launcher : y position, precision, ...
68 void init_launcher_panel(void *panel
);
69 void cleanup_launcher();
71 int resize_launcher(void *obj
);
72 void draw_launcher (void *obj
, cairo_t
*c
);
74 void launcher_action(LauncherIcon
*icon
);
76 void test_launcher_read_desktop_file();
77 void test_launcher_read_theme_file();