You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
4.2 KiB
99 lines
4.2 KiB
/* $Id$ */
|
|
/*
|
|
* Copyright (C) 2008 Nick Schermer <nick@xfce.org>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef __XFCE_PANEL_PLUGIN_PROVIDER_H__
|
|
#define __XFCE_PANEL_PLUGIN_PROVIDER_H__
|
|
|
|
#include <gtk/gtk.h>
|
|
#include <libxfce4panel/libxfce4panel.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _XfcePanelPluginProviderIface XfcePanelPluginProviderIface;
|
|
typedef struct _XfcePanelPluginProvider XfcePanelPluginProvider;
|
|
typedef enum _XfcePanelPluginMessage XfcePanelPluginMessage;
|
|
|
|
typedef XfcePanelPluginProvider *(*PluginConstructFunc) (const gchar *name,
|
|
const gchar *id,
|
|
const gchar *display_name,
|
|
gchar **arguments,
|
|
GdkScreen *screen);
|
|
|
|
typedef void (*PluginRegisterTypesFunc) (XfcePanelModule *module);
|
|
|
|
enum _XfcePanelPluginMessage
|
|
{
|
|
MESSAGE_EXPAND_CHANGED,
|
|
MESSAGE_MOVE_ITEM,
|
|
MESSAGE_ADD_NEW_ITEMS,
|
|
MESSAGE_PANEL_PREFERENCES,
|
|
MESSAGE_SET_SIZE,
|
|
MESSAGE_SET_ORIENTATION,
|
|
MESSAGE_SET_SCREEN_POSITION,
|
|
MESSAGE_SET_PLUG_ID,
|
|
MESSAGE_SET_SENSITIVE,
|
|
MESSAGE_SET_BACKGROUND_ALPHA,
|
|
MESSAGE_SET_ACTIVE_PANEL,
|
|
MESSAGE_SAVE,
|
|
MESSAGE_REMOVE,
|
|
MESSAGE_QUIT
|
|
};
|
|
|
|
#define XFCE_TYPE_PANEL_PLUGIN_PROVIDER (xfce_panel_plugin_provider_get_type ())
|
|
#define XFCE_PANEL_PLUGIN_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFCE_TYPE_PANEL_PLUGIN_PROVIDER, XfcePanelPluginProvider))
|
|
#define XFCE_IS_PANEL_PLUGIN_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFCE_TYPE_PANEL_PLUGIN_PROVIDER))
|
|
#define XFCE_PANEL_PLUGIN_PROVIDER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), XFCE_TYPE_PANEL_PLUGIN_PROVIDER, XfcePanelPluginProviderIface))
|
|
|
|
struct _XfcePanelPluginProviderIface
|
|
{
|
|
/*< private >*/
|
|
GTypeInterface __parent__;
|
|
|
|
/*< public >*/
|
|
const gchar *(*get_name) (XfcePanelPluginProvider *provider);
|
|
const gchar *(*get_id) (XfcePanelPluginProvider *provider);
|
|
void (*set_size) (XfcePanelPluginProvider *provider,
|
|
gint size);
|
|
void (*set_orientation) (XfcePanelPluginProvider *provider,
|
|
GtkOrientation orientation);
|
|
void (*set_screen_position) (XfcePanelPluginProvider *provider,
|
|
XfceScreenPosition screen_position);
|
|
void (*save) (XfcePanelPluginProvider *provider);
|
|
};
|
|
|
|
GType xfce_panel_plugin_provider_get_type (void) G_GNUC_CONST;
|
|
|
|
const gchar *xfce_panel_plugin_provider_get_name (XfcePanelPluginProvider *provider);
|
|
|
|
const gchar *xfce_panel_plugin_provider_get_id (XfcePanelPluginProvider *provider);
|
|
|
|
void xfce_panel_plugin_provider_set_size (XfcePanelPluginProvider *provider,
|
|
gint size);
|
|
|
|
void xfce_panel_plugin_provider_set_orientation (XfcePanelPluginProvider *provider,
|
|
GtkOrientation orientation);
|
|
|
|
void xfce_panel_plugin_provider_set_screen_position (XfcePanelPluginProvider *provider,
|
|
XfceScreenPosition screen_position);
|
|
|
|
void xfce_panel_plugin_provider_save (XfcePanelPluginProvider *provider);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* !__XFCE_PANEL_PLUGIN_PROVIDER_H__ */
|
|
|