-
Notifications
You must be signed in to change notification settings - Fork 9
/
deskmenu-wnck.h
57 lines (52 loc) · 1.95 KB
/
deskmenu-wnck.h
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
#define WNCK_I_KNOW_THIS_IS_UNSTABLE 1
#include <libwnck/libwnck.h>
typedef struct DeskmenuWindowlist
{
WnckScreen *screen;
GtkWidget *menu;
gboolean images; //toggles use of icons
gboolean this_viewport;
gboolean iconified_only;
} DeskmenuWindowlist;
typedef struct DeskmenuDplist
{
WnckScreen *screen;
gboolean images;
gboolean file;
gchar *icon;
GtkWidget *menu;
} DeskmenuDplist;
typedef struct DeskmenuVplist
{
WnckScreen *screen;
WnckWorkspace *workspace;
GtkWidget *menu;
GtkWidget *go_left;
GtkWidget *go_right;
GtkWidget *go_up;
GtkWidget *go_down;
gboolean wrap;
gboolean images; //toggles use of icons
gboolean file; // whether the icon of choice is from theme or not
/* store some calculations */
guint hsize; /* 1-indexed horizontal viewport count */
guint vsize;
guint x; /* current viewport x position (in pixels) */
guint y;
guint xmax; /* leftmost coordinate of rightmost viewport */
guint ymax;
guint screen_width; /* store screen_get_width (screen) */
guint screen_height;
guint workspace_width; /* store workspace_get_width (workspace) */
guint workspace_height;
gchar *icon; /* stores viewport icon of choice */
} DeskmenuVplist;
void refresh_desktoplist_item (GtkWidget *item, gpointer data);
void refresh_viewportlist_item (GtkWidget *item, gpointer data);
void refresh_windowlist_item (GtkWidget *item, gpointer data);
void deskmenu_windowlist_new (DeskmenuWindowlist *windowlist);
void deskmenu_vplist_new (DeskmenuVplist *vplist);
void deskmenu_dplist_new (DeskmenuDplist *dplist);
DeskmenuVplist* deskmenu_vplist_initialize (gboolean toggle_wrap, gboolean toggle_images, gboolean toggle_file, gchar *viewport_icon);
DeskmenuDplist* deskmenu_dplist_initialize (gboolean toggle_images, gboolean toggle_file, gchar *desktop_icon);
DeskmenuWindowlist* deskmenu_windowlist_initialize (gboolean images, gboolean this_viewport, gboolean iconified_only);