2
* panel-applet-frame.h: panel side container for applets
4
* Copyright (C) 2001 - 2003 Sun Microsystems, Inc.
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License as
8
* published by the Free Software Foundation; either version 2 of the
9
* License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22
* Mark McLoughlin <mark@skynet.ie>
25
#ifndef __PANEL_APPLET_FRAME_H__
26
#define __PANEL_APPLET_FRAME_H__
30
#include "panel-widget.h"
35
#define PANEL_TYPE_APPLET_FRAME (panel_applet_frame_get_type ())
36
#define PANEL_APPLET_FRAME(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PANEL_TYPE_APPLET_FRAME, PanelAppletFrame))
37
#define PANEL_APPLET_FRAME_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), PANEL_TYPE_APPLET_FRAME, PanelAppletFrameClass))
38
#define PANEL_IS_APPLET_FRAME(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PANEL_TYPE_APPLET_FRAME))
39
#define PANEL_IS_APPLET_FRAME_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PANEL_TYPE_APPLET_FRAME))
40
#define PANEL_APPLET_FRAME_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PANEL_TYPE_APPLET_FRAME, PanelAppletFrameClass))
42
typedef struct _PanelAppletFrame PanelAppletFrame;
43
typedef struct _PanelAppletFrameClass PanelAppletFrameClass;
44
typedef struct _PanelAppletFramePrivate PanelAppletFramePrivate;
46
struct _PanelAppletFrameClass {
47
GtkEventBoxClass parent_class;
49
void (*init_properties) (PanelAppletFrame *frame);
51
void (*sync_menu_state) (PanelAppletFrame *frame,
56
gboolean locked_down);
58
void (*popup_menu) (PanelAppletFrame *frame,
62
void (*change_orientation) (PanelAppletFrame *frame,
63
PanelOrientation orientation);
65
void (*change_size) (PanelAppletFrame *frame,
68
void (*change_background) (PanelAppletFrame *frame,
69
PanelBackgroundType type);
72
struct _PanelAppletFrame {
75
PanelAppletFramePrivate *priv;
78
GType panel_applet_frame_get_type (void) G_GNUC_CONST;
80
void panel_applet_frame_create (PanelToplevel *toplevel,
84
void panel_applet_frame_load_from_gconf (PanelWidget *panel_widget,
89
void panel_applet_frame_sync_menu_state (PanelAppletFrame *frame);
91
void panel_applet_frame_change_orientation (PanelAppletFrame *frame,
92
PanelOrientation orientation);
94
void panel_applet_frame_change_size (PanelAppletFrame *frame,
97
void panel_applet_frame_change_background (PanelAppletFrame *frame,
98
PanelBackgroundType type);
100
void panel_applet_frame_set_panel (PanelAppletFrame *frame,
104
/* For module implementations only */
106
typedef struct _PanelAppletFrameActivating PanelAppletFrameActivating;
108
PanelOrientation panel_applet_frame_activating_get_orientation (PanelAppletFrameActivating *frame_act);
109
guint32 panel_applet_frame_activating_get_size (PanelAppletFrameActivating *frame_act);
110
gboolean panel_applet_frame_activating_get_locked (PanelAppletFrameActivating *frame_act);
111
gboolean panel_applet_frame_activating_get_locked_down (PanelAppletFrameActivating *frame_act);
112
gchar *panel_applet_frame_activating_get_conf_path (PanelAppletFrameActivating *frame_act);
114
void _panel_applet_frame_set_iid (PanelAppletFrame *frame,
117
void _panel_applet_frame_activated (PanelAppletFrame *frame,
118
PanelAppletFrameActivating *frame_act,
121
void _panel_applet_frame_update_flags (PanelAppletFrame *frame,
124
gboolean has_handle);
126
void _panel_applet_frame_update_size_hints (PanelAppletFrame *frame,
130
char *_panel_applet_frame_get_background_string (PanelAppletFrame *frame,
132
PanelBackgroundType type);
134
void _panel_applet_frame_applet_broken (PanelAppletFrame *frame);
136
void _panel_applet_frame_applet_remove (PanelAppletFrame *frame);
137
void _panel_applet_frame_applet_move (PanelAppletFrame *frame);
138
void _panel_applet_frame_applet_lock (PanelAppletFrame *frame,
141
const gchar * panel_applet_frame_get_iid (PanelAppletFrame * frame);
145
#endif /* __PANEL_APPLET_FRAME_H__ */