2
* Fast User Switch Applet: status-manager.c
4
* Copyright (C) 2008 Canonical, Ltd.
6
* Ted Gould <ted@canonical.com>
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#ifndef APPLET_SIGNALER_H
24
#define APPLET_SIGNALER_H
32
/* Singleton Object to handle the world of applets */
34
#define PANEL_TYPE_APPLET_SIGNALER (panel_applet_signaler_get_type())
35
#define PANEL_APPLET_SIGNALER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANEL_TYPE_APPLET_SIGNALER, PanelAppletSignaler))
36
#define PANEL_IS_APPLET_SIGNALER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANEL_TYPE_APPLET_SIGNALER))
38
#define PANEL_APPLET_SIGNALER_SIGNAL_APPLET_ADDED "applet-added"
39
#define PANEL_APPLET_SIGNALER_SIGNAL_APPLET_REMOVED "applet-removed"
41
typedef struct _PanelAppletSignaler PanelAppletSignaler;
42
typedef void (*PanelAppletSignalerFunc)(PanelAppletSignaler * pas, AppletInfo * info, gpointer data);
44
GType panel_applet_signaler_get_type (void) G_GNUC_CONST;
45
PanelAppletSignaler * panel_applet_signaler_get_default (void);
47
void panel_applet_signaler_add_applet (AppletInfo * applet);
48
void panel_applet_signaler_remove_applet (AppletInfo * applet);
52
#endif /* APPLET_SIGNALER_H */