83b6d1ac72
git-svn-id: http://tint2.googlecode.com/svn/trunk@733 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
68 lines
1.8 KiB
C
68 lines
1.8 KiB
C
/**************************************************************************
|
|
* 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"
|
|
|
|
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*
|
|
IconThemeWrapper *list_themes;
|
|
} 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;
|
|
} LauncherIcon;
|
|
|
|
extern int 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 XSettingsClient *xsettings_client;
|
|
|
|
// 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);
|
|
|
|
int resize_launcher(void *obj);
|
|
void draw_launcher (void *obj, cairo_t *c);
|
|
|
|
// Populates the list_icons list
|
|
void launcher_load_icons(Launcher *launcher);
|
|
// Populates the list_themes list
|
|
void launcher_load_themes(Launcher *launcher);
|
|
void launcher_action(LauncherIcon *icon, XEvent* e);
|
|
|
|
void test_launcher_read_desktop_file();
|
|
void test_launcher_read_theme_file();
|
|
|
|
#endif
|