swallow.h 741 Bytes
Newer Older
1 2 3
#ifndef SWALLOW_H
#define SWALLOW_H

Mark McLoughlin's avatar
Mark McLoughlin committed
4
#include "panel-widget.h"
5

6
G_BEGIN_DECLS
7 8 9 10 11 12 13

typedef enum {
	SWALLOW_VERTICAL,
	SWALLOW_HORIZONTAL
} SwallowOrient;

typedef struct {
14 15
	int ref_count;

16
	GtkWidget *ebox;
17
	GtkWidget *socket;
jtl's avatar
jtl committed
18
        GtkWidget *handle_box;
19
	GtkWidget *frame;
jtl's avatar
jtl committed
20
        char *title;
21
	char *path;
22 23
	int width;
	int height;
24
	guint32 wid;
25
	gboolean clean_remove;
26 27
} Swallow;

Martin Baulig's avatar
Martin Baulig committed
28
void load_swallow_applet(const char *path, const char *params, int width, int height,
29
			 PanelWidget *panela, int pos, gboolean exactpos);
30 31
void set_swallow_applet_orient(Swallow *swallow, SwallowOrient orient);

32
/*I couldn't resist the naming of this function*/
33
void ask_about_swallowing(PanelWidget *panel, int pos, gboolean exactpos);
34

35
G_END_DECLS
36 37

#endif