2
* panel-applet-shell.c: the panel's interface to the applet.
4
* Copyright (C) 2001 Sun Microsystems, Inc.
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Library General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Library General Public License for more details.
16
* You should have received a copy of the GNU Library General Public
17
* License along with this library; if not, write to the
18
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
22
* Mark McLoughlin <mark@skynet.ie>
27
#include "panel-applet-shell.h"
28
#include "panel-applet.h"
29
#include "panel-applet-private.h"
31
struct _PanelAppletShellPrivate {
35
static GObjectClass *parent_class = NULL;
38
impl_PanelAppletShell_popup_menu (PortableServer_Servant servant,
41
CORBA_Environment *ev)
43
PanelAppletShell *applet_shell;
45
applet_shell = PANEL_APPLET_SHELL (bonobo_object (servant));
47
_panel_applet_popup_menu (applet_shell->priv->applet, button, time);
51
panel_applet_shell_finalize (GObject *object)
53
PanelAppletShell *shell = PANEL_APPLET_SHELL (object);
60
parent_class->finalize (object);
64
panel_applet_shell_class_init (PanelAppletShellClass *klass)
66
GObjectClass *object_class = G_OBJECT_CLASS (klass);
68
klass->epv.popup_menu = impl_PanelAppletShell_popup_menu;
70
object_class->finalize = panel_applet_shell_finalize;
72
parent_class = g_type_class_peek_parent (klass);
76
panel_applet_shell_init (PanelAppletShell *shell)
78
shell->priv = g_new0 (PanelAppletShellPrivate, 1);
80
shell->priv->applet = NULL;
83
BONOBO_TYPE_FUNC_FULL (PanelAppletShell,
84
GNOME_Vertigo_PanelAppletShell,
89
panel_applet_shell_construct (PanelAppletShell *shell,
92
shell->priv->applet = applet;
96
panel_applet_shell_new (PanelApplet *applet)
98
PanelAppletShell *shell;
100
shell = g_object_new (PANEL_APPLET_SHELL_TYPE, NULL);
102
panel_applet_shell_construct (shell, applet);