28
28
#define PANEL_MINIMUM_WIDTH 12
30
#define PANEL_APPLET_ASSOC_PANEL_KEY "panel_applet_assoc_panel_key"
31
#define PANEL_APPLET_FORBIDDEN_PANELS "panel_applet_forbidden_panels"
32
30
#define PANEL_APPLET_DATA "panel_applet_data"
34
32
#ifndef TYPEDEF_PANEL_WIDGET
60
58
GtkWidget * applet;
60
PanelObjectPackType pack_type;
63
/* constrained position from the left, after taking other objects into
66
int drag_off; /* offset on the applet where drag
69
int no_die; /* if >0 never send the about to die
70
signal, an int and not a bool for
73
69
/* Valid size ranges for expanded applets */
75
71
int size_hints_len;
96
90
AppletData *currently_dragged_applet;
100
95
PanelBackground background;
102
GtkWidget *master_widget;
104
97
GtkWidget *drop_widget; /* widget that the panel checks for
105
98
* the cursor on drops usually the
106
99
* panel widget itself
135
128
GtkDirectionType dir);
136
129
void (* switch_move) (PanelWidget *panel,
137
130
GtkDirectionType dir);
138
void (* free_move) (PanelWidget *panel,
139
GtkDirectionType dir);
140
131
void (* tab_move) (PanelWidget *panel,
142
133
void (* end_move) (PanelWidget *panel);
149
140
GtkOrientation orient,
151
/*add an applet to the panel, preferably at position pos, if insert_at_pos
152
is on, we REALLY want to insert at the pos given by pos*/
153
int panel_widget_add (PanelWidget *panel,
157
gboolean insert_at_pos);
159
/*needs to be called for drawers after add*/
160
void panel_widget_add_forbidden (PanelWidget *panel);
142
/* add an applet to the panel; if use_pack_index is FALSE, pack_index is ignored
143
* and the applet is appended at the end of the pack list for pack_style */
144
void panel_widget_add (PanelWidget *panel,
146
PanelObjectPackType pack_style,
148
gboolean use_pack_index);
162
150
/*move applet to a different panel*/
163
int panel_widget_reparent (PanelWidget *old_panel,
164
PanelWidget *new_panel,
168
/* use these for drag_off for special cases */
169
#define PW_DRAG_OFF_CURSOR -1
170
#define PW_DRAG_OFF_CENTER -2
151
int panel_widget_reparent (PanelWidget *old_panel,
152
PanelWidget *new_panel,
154
PanelObjectPackType pack_type,
173
158
gboolean panel_applet_is_in_drag (void);
174
159
void panel_widget_applet_drag_start (PanelWidget *panel,
175
160
GtkWidget *applet,
178
162
void panel_widget_applet_drag_end (PanelWidget *panel);
192
176
ButtonWidget *applet);
195
/*tells us if an applet is "stuck" on the right side*/
196
int panel_widget_is_applet_stuck (PanelWidget *panel,
198
179
/*get pos of the cursor location in panel coordinates*/
199
180
int panel_widget_get_cursorloc (PanelWidget *panel);
181
/* get pack type & index for insertion at the cursor location in panel */
182
void panel_widget_get_insert_at_cursor (PanelWidget *widget,
183
PanelObjectPackType *pack_type,
185
/* get pack type for insertion at the cursor location in panel */
186
PanelObjectPackType panel_widget_get_insert_pack_type_at_cursor (PanelWidget *panel);
187
/* get index for insertion with pack type */
188
int panel_widget_get_new_pack_index (PanelWidget *panel,
189
PanelObjectPackType pack_type);
201
191
/*needed for other panel types*/
202
192
gboolean panel_widget_is_cursor (PanelWidget *panel,
220
210
int size_hints_len);
222
void panel_widget_set_applet_locked (PanelWidget *panel,
225
gboolean panel_widget_get_applet_locked (PanelWidget *panel,
227
gboolean panel_widget_toggle_applet_locked (PanelWidget *panel,
230
212
void panel_widget_register_open_dialog (PanelWidget *panel,
231
213
GtkWidget *dialog);