2
* Copyright (C) 2006-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.
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_WINDOW_H_
21
#define _VIVI_WINDOW_H_
23
#include <vivified/dock/vivified-dock.h>
24
#include <vivified/core/vivified-core.h>
26
#include <swfdec/swfdec_movie.h>
30
typedef struct _ViviWindow ViviWindow;
31
typedef struct _ViviWindowClass ViviWindowClass;
33
#define VIVI_TYPE_WINDOW (vivi_window_get_type())
34
#define VIVI_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIVI_TYPE_WINDOW))
35
#define VIVI_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIVI_TYPE_WINDOW))
36
#define VIVI_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIVI_TYPE_WINDOW, ViviWindow))
37
#define VIVI_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIVI_TYPE_WINDOW, ViviWindowClass))
43
ViviApplication * app; /* application we are displaying */
45
SwfdecMovie * movie; /* the currently active movie or NULL if none */
48
struct _ViviWindowClass
50
GtkWindowClass window_class;
53
GType vivi_window_get_type (void);
55
GtkWidget * vivi_window_new (ViviApplication * app);
57
ViviApplication * vivi_window_get_application (ViviWindow * window);
58
void vivi_window_set_movie (ViviWindow * window,
60
SwfdecMovie * vivi_window_get_movie (ViviWindow * window);