1 | /* |
---|
2 | * This program is free software; you can redistribute it and/or modify |
---|
3 | * it under the terms of the GNU General Public License as published by |
---|
4 | * the Free Software Foundation; either version 2 of the License, or |
---|
5 | * (at your option) any later version. |
---|
6 | * |
---|
7 | * This program is distributed in the hope that it will be useful, |
---|
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
10 | * GNU Library General Public License for more details. |
---|
11 | * |
---|
12 | * You should have received a copy of the GNU General Public License |
---|
13 | * along with this program; if not, write to the Free Software |
---|
14 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
15 | */ |
---|
16 | |
---|
17 | #ifndef __GSWITCHIT_APPLET_H__ |
---|
18 | #define __GSWITCHIT_APPLET_H__ |
---|
19 | |
---|
20 | #include <panel-applet.h> |
---|
21 | |
---|
22 | #include "libgswitchit/gswitchit_applet_config.h" |
---|
23 | #include "libgswitchit/gswitchit_plugin_manager.h" |
---|
24 | |
---|
25 | typedef struct _GSwitchItApplet { |
---|
26 | GSwitchItPluginContainer pluginContainer; |
---|
27 | |
---|
28 | GSwitchItAppletConfig appletConfig; |
---|
29 | GSwitchItXkbConfig xkbConfig; |
---|
30 | GSwitchItPluginManager pluginManager; |
---|
31 | |
---|
32 | GtkWidget *applet; |
---|
33 | GtkWidget *notebook; |
---|
34 | GtkWidget *ebox; |
---|
35 | GtkWidget *aboutDialog; |
---|
36 | GtkWidget *propsDialog; |
---|
37 | |
---|
38 | GroupDescriptionsBuffer groupNames; |
---|
39 | } GSwitchItApplet; |
---|
40 | |
---|
41 | extern void GSwitchItAppletRevalidate (GSwitchItApplet * sia); |
---|
42 | extern void GSwitchItAppletRevalidateGroup (GSwitchItApplet * sia, |
---|
43 | int group); |
---|
44 | |
---|
45 | extern void GSwitchItAppletReinitUi (GSwitchItApplet * sia); |
---|
46 | |
---|
47 | extern GdkFilterReturn GSwitchItAppletFilterXEvt (GdkXEvent * xevent, |
---|
48 | GdkEvent * event, |
---|
49 | GSwitchItApplet * sia); |
---|
50 | |
---|
51 | extern void GSwitchItAppletPropsCreate (GSwitchItApplet * sia); |
---|
52 | |
---|
53 | extern gboolean GSwitchItAppletNew (PanelApplet * applet); |
---|
54 | |
---|
55 | |
---|
56 | #endif |
---|