Launcher: SVG icon support and icon loading improvements
git-svn-id: http://tint2.googlecode.com/svn/trunk@670 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
committed by
mrovi9000@gmail.com
parent
ec80e09b0b
commit
1a3ba21245
@@ -10,13 +10,14 @@
|
||||
#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*
|
||||
GSList *list_themes; // List of IconTheme*
|
||||
IconThemeWrapper *list_themes;
|
||||
} Launcher;
|
||||
|
||||
typedef struct LauncherIcon {
|
||||
@@ -33,31 +34,6 @@ typedef struct LauncherIcon {
|
||||
int x, y;
|
||||
} LauncherIcon;
|
||||
|
||||
typedef struct DesktopEntry {
|
||||
char *name;
|
||||
char *exec;
|
||||
char *icon;
|
||||
} DesktopEntry;
|
||||
|
||||
#define ICON_DIR_TYPE_SCALABLE 0
|
||||
#define ICON_DIR_TYPE_FIXED 1
|
||||
#define ICON_DIR_TYPE_THRESHOLD 2
|
||||
typedef struct IconThemeDir {
|
||||
char *name;
|
||||
int size;
|
||||
int type;
|
||||
int max_size;
|
||||
int min_size;
|
||||
int threshold;
|
||||
char *context;
|
||||
} IconThemeDir;
|
||||
|
||||
typedef struct IconTheme {
|
||||
char *name;
|
||||
GSList *list_inherits; // each item is a char* (theme name)
|
||||
GSList *list_directories; // each item is an IconThemeDir*
|
||||
} IconTheme;
|
||||
|
||||
extern int launcher_enabled;
|
||||
extern int launcher_max_icon_size;
|
||||
extern int launcher_tooltip_enabled;
|
||||
@@ -79,10 +55,10 @@ 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);
|
||||
// Populates the list_themes list
|
||||
void launcher_load_themes(Launcher *launcher);
|
||||
void launcher_action(LauncherIcon *icon, XEvent* e);
|
||||
|
||||
void test_launcher_read_desktop_file();
|
||||
|
||||
Reference in New Issue
Block a user