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_PLUGINS_H__ |
---|
18 | #define __GSWITCHIT_PLUGINS_H__ |
---|
19 | |
---|
20 | #include "gtk/gtk.h" |
---|
21 | #include "libgswitchit/gswitchit_applet_config.h" |
---|
22 | #include "libgswitchit/gswitchit_plugin_manager.h" |
---|
23 | #include "libgswitchit/gswitchit_util.h" |
---|
24 | |
---|
25 | typedef struct _GSwitchItPluginsCapplet { |
---|
26 | GSwitchItPluginContainer pluginContainer; |
---|
27 | GtkWidget *capplet; |
---|
28 | GSwitchItAppletConfig appletConfig; |
---|
29 | GSwitchItXkbConfig xkbConfig; |
---|
30 | GSwitchItPluginManager pluginManager; |
---|
31 | } GSwitchItPluginsCapplet; |
---|
32 | |
---|
33 | #define NAME_COLUMN 0 |
---|
34 | #define FULLPATH_COLUMN 1 |
---|
35 | |
---|
36 | #define CappletGetGladeWidget( gswic, name ) \ |
---|
37 | glade_xml_get_widget( \ |
---|
38 | GLADE_XML( g_object_get_data( G_OBJECT( (gswic)->capplet ), \ |
---|
39 | "gladeData" ) ), \ |
---|
40 | name ) |
---|
41 | |
---|
42 | extern void CappletFillActivePluginList (GSwitchItPluginsCapplet * gswic); |
---|
43 | |
---|
44 | extern char *CappletGetSelectedPluginPath (GtkTreeView * pluginsList, |
---|
45 | GSwitchItPluginsCapplet * |
---|
46 | gswic); |
---|
47 | |
---|
48 | extern void CappletEnablePlugin (GtkWidget * btnAdd, |
---|
49 | GSwitchItPluginsCapplet * gswic); |
---|
50 | |
---|
51 | #endif |
---|