make XMLSockets stored in the player, not in object qdata
[swfdec.git] / vivified / ui / vivi_vivi_docklet.h
blob8142ae142a01d5ebabb9456e01a1f4168e884ea9
1 /* Vivified
2 * Copyright (C) 2007 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifndef _VIVI_VIVI_DOCKLET_H_
21 #define _VIVI_VIVI_DOCKLET_H_
23 #include <vivified/core/vivified-core.h>
24 #include <vivified/dock/vivified-dock.h>
26 G_BEGIN_DECLS
29 typedef struct _ViviViviDocklet ViviViviDocklet;
30 typedef struct _ViviViviDockletClass ViviViviDockletClass;
32 #define VIVI_TYPE_VIVI_DOCKLET (vivi_vivi_docklet_get_type())
33 #define VIVI_IS_VIVI_DOCKLET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIVI_TYPE_VIVI_DOCKLET))
34 #define VIVI_IS_VIVI_DOCKLET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIVI_TYPE_VIVI_DOCKLET))
35 #define VIVI_VIVI_DOCKLET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIVI_TYPE_VIVI_DOCKLET, ViviViviDocklet))
36 #define VIVI_VIVI_DOCKLET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIVI_TYPE_VIVI_DOCKLET, ViviViviDockletClass))
37 #define VIVI_VIVI_DOCKLET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIVI_TYPE_VIVI_DOCKLET, ViviViviDockletClass))
39 struct _ViviViviDocklet {
40 ViviDocklet docklet;
42 ViviApplication * app; /* the application we connect to */
45 struct _ViviViviDockletClass
47 ViviDockletClass docklet_class;
49 void (* application_set) (ViviViviDocklet * docklet,
50 ViviApplication * app);
51 void (* application_unset) (ViviViviDocklet * docklet,
52 ViviApplication * app);
55 GType vivi_vivi_docklet_get_type (void);
57 GtkWidget * vivi_vivi_docklet_find_widget_by_type
58 (ViviViviDocklet * docklet,
59 GType type);
61 G_END_DECLS
62 #endif