2
* Copyright (C) 2009 Nick Schermer <nick@xfce.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
#ifndef __WRAPPER_MODULE_H__
20
#define __WRAPPER_MODULE_H__
23
#include <libxfce4panel/xfce-panel-plugin-provider.h>
27
typedef struct _WrapperModuleClass WrapperModuleClass;
28
typedef struct _WrapperModule WrapperModule;
30
#define WRAPPER_TYPE_MODULE (wrapper_module_get_type ())
31
#define WRAPPER_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WRAPPER_TYPE_MODULE, WrapperModule))
32
#define WRAPPER_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), WRAPPER_TYPE_MODULE, WrapperModuleClass))
33
#define WRAPPER_IS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WRAPPER_TYPE_MODULE))
34
#define WRAPPER_IS_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WRAPPER_TYPE_MODULE))
35
#define WRAPPER_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), WRAPPER_TYPE_MODULE, WrapperModuleClass))
37
GType wrapper_module_get_type (void) G_GNUC_CONST;
39
WrapperModule *wrapper_module_new (GModule *library) G_GNUC_MALLOC;
41
GtkWidget *wrapper_module_new_provider (WrapperModule *module,
45
const gchar *display_name,
47
gchar **arguments) G_GNUC_MALLOC;
51
#endif /* !__WRAPPER_MODULE_H__ */