/* $Id: Panel.h,v 1.2 2009/09/03 11:19:08 khorben Exp $ */ /* Copyright (c) 2009 Pierre Pronchery */ /* 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 . */ #ifndef PANEL_PANEL_H # define PANEL_PANEL_H # include /* PanelApplet */ /* types */ typedef struct _PanelApplet PanelApplet; typedef struct _PanelAppletHelper { GtkIconSize icon_size; int (*error)(void * priv, char const * message, int ret); int (*logout_dialog)(void); void (*position_menu)(GtkMenu * menu, gint * x, gint * y, gboolean * push_in, gpointer data); int (*shutdown_dialog)(void); void * priv; } PanelAppletHelper; typedef GtkWidget * (*PanelAppletInitFunc)(PanelApplet * applet); typedef void (*PanelAppletDestroyFunc)(PanelApplet * applet); typedef enum _PanelAppletPosition { PANEL_APPLET_POSITION_START = 0, PANEL_APPLET_POSITION_END, PANEL_APPLET_POSITION_FIRST, PANEL_APPLET_POSITION_LAST } PanelAppletPosition; struct _PanelApplet { PanelAppletHelper * helper; PanelAppletInitFunc init; PanelAppletDestroyFunc destroy; PanelAppletPosition position; gboolean expand; gboolean fill; void * priv; }; #endif /* !PANEL_PANEL_H */