From 873cedbc95777e7b74960a66883c48945fcecd4c Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 5 Jan 2016 17:38:52 +0300 Subject: rename mate-panel-*.{c|h} -> panel-*.{c|h} for consistency (libmate-panel-applet files are left alone since there are public header files used by all panel applets) --- .../panel-applet-container.h | 119 +++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 mate-panel/libmate-panel-applet-private/panel-applet-container.h (limited to 'mate-panel/libmate-panel-applet-private/panel-applet-container.h') diff --git a/mate-panel/libmate-panel-applet-private/panel-applet-container.h b/mate-panel/libmate-panel-applet-private/panel-applet-container.h new file mode 100644 index 00000000..108a38c9 --- /dev/null +++ b/mate-panel/libmate-panel-applet-private/panel-applet-container.h @@ -0,0 +1,119 @@ +/* + * panel-applet-container.h: a container for applets. + * + * Copyright (C) 2010 Carlos Garcia Campos + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 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 + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. + * + */ + +#ifndef __PANEL_APPLET_CONTAINER_H__ +#define __PANEL_APPLET_CONTAINER_H__ + +#include +#include +#include "panel.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define PANEL_TYPE_APPLET_CONTAINER (mate_panel_applet_container_get_type ()) +#define MATE_PANEL_APPLET_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANEL_TYPE_APPLET_CONTAINER, MatePanelAppletContainer)) +#define MATE_PANEL_APPLET_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PANEL_TYPE_APPLET_CONTAINER, MatePanelAppletContainerClass)) +#define PANEL_IS_APPLET_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANEL_TYPE_APPLET_CONTAINER)) +#define PANEL_IS_APPLET_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANEL_TYPE_APPLET_CONTAINER)) +#define MATE_PANEL_APPLET_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANEL_TYPE_APPLET_CONTAINER, MatePanelAppletContainerClass)) + +#define MATE_PANEL_APPLET_CONTAINER_ERROR (mate_panel_applet_container_error_quark()) + +typedef enum { + MATE_PANEL_APPLET_CONTAINER_INVALID_APPLET, + MATE_PANEL_APPLET_CONTAINER_INVALID_CHILD_PROPERTY +} MatePanelAppletContainerError; + +typedef struct _MatePanelAppletContainer MatePanelAppletContainer; +typedef struct _MatePanelAppletContainerClass MatePanelAppletContainerClass; +typedef struct _MatePanelAppletContainerPrivate MatePanelAppletContainerPrivate; + +struct _MatePanelAppletContainer { + GtkEventBox parent; + + MatePanelAppletContainerPrivate *priv; +}; + +struct _MatePanelAppletContainerClass { + GtkEventBoxClass parent_class; + + /* Signals */ + void (*applet_broken) (MatePanelAppletContainer *container); + void (*applet_move) (MatePanelAppletContainer *container); + void (*applet_remove) (MatePanelAppletContainer *container); + void (*applet_lock) (MatePanelAppletContainer *container, + gboolean locked); + void (*child_property_changed) (MatePanelAppletContainer *container, + const gchar *property_name, + GVariant *value); +}; + +GType mate_panel_applet_container_get_type (void) G_GNUC_CONST; +GQuark mate_panel_applet_container_error_quark (void) G_GNUC_CONST; +GtkWidget *mate_panel_applet_container_new (void); + + +void mate_panel_applet_container_add (MatePanelAppletContainer *container, + GdkScreen *screen, + const gchar *iid, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data, + GVariant *properties); +gboolean mate_panel_applet_container_add_finish (MatePanelAppletContainer *container, + GAsyncResult *result, + GError **error); +void mate_panel_applet_container_child_popup_menu (MatePanelAppletContainer *container, + guint button, + guint32 timestamp, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean mate_panel_applet_container_child_popup_menu_finish (MatePanelAppletContainer *container, + GAsyncResult *result, + GError **error); + +void mate_panel_applet_container_child_set (MatePanelAppletContainer *container, + const gchar *property_name, + const GVariant *value, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean mate_panel_applet_container_child_set_finish (MatePanelAppletContainer *container, + GAsyncResult *result, + GError **error); +void mate_panel_applet_container_child_get (MatePanelAppletContainer *container, + const gchar *property_name, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GVariant *mate_panel_applet_container_child_get_finish (MatePanelAppletContainer *container, + GAsyncResult *result, + GError **error); + +#ifdef __cplusplus +} +#endif + +#endif /* __PANEL_APPLET_CONTAINER_H__ */ -- cgit v1.2.1