Desktop
/* $Id: spacer.c,v 1.1 2011/08/22 23:35:02 khorben Exp $ */
/* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS Desktop Panel */
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "Panel.h"
/* spacer */
/* private */
/* prototypes */
/* plug-in */
static GtkWidget * _spacer_init(PanelApplet * applet);
static void _spacer_destroy(PanelApplet * applet);
/* public */
/* variables */
PanelApplet applet =
{
NULL,
"Spacer",
NULL,
_spacer_init,
_spacer_destroy,
NULL,
TRUE,
TRUE,
NULL
};
/* private */
/* functions */
static GtkWidget * _spacer_init(PanelApplet * applet)
{
GtkWidget * widget;
widget = gtk_label_new(NULL);
applet->priv = widget;
gtk_widget_show(widget);
return widget;
}
/* spacer_destroy */
static void _spacer_destroy(PanelApplet * applet)
{
GtkWidget * widget = applet->priv;
gtk_widget_destroy(widget);
}