Adding upstream version 0.9.0.
[debian/lxpanel.git] / src / space.h
1 /*
2 * Copyright (C) 2014-2016 Andriy Grytsenko <andrej@rep.kiev.ua>
3 *
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.
8 *
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.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19 #ifndef __SPACE_H__
20 #define __SPACE_H__ 1
21
22 #include "plugin.h"
23
24 #define PANEL_TYPE_SPACE (panel_space_get_type())
25 #define PANEL_SPACE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
26 PANEL_TYPE_SPACE, PanelSpace))
27 #define PANEL_IS_SPACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
28 PANEL_TYPE_SPACE))
29
30 extern GType panel_space_get_type (void) G_GNUC_CONST;
31
32 typedef struct _PanelSpace PanelSpace;
33 typedef struct _PanelSpaceClass PanelSpaceClass;
34
35 GtkWidget *_panel_space_new(LXPanel *panel, config_setting_t *settings);
36 void _panel_space_resize(GtkWidget *spacer, gint size);
37 gint _panel_space_get_size(GtkWidget *spacer);
38
39 extern LXPanelPluginInit _lxpanel_static_plugin_space;
40
41 #endif