1
/***************************************************************************
2
* brasero-layout-object.c
4
* dim oct 15 17:15:58 2006
5
* Copyright 2006 Philippe Rouquier
6
* bonfire-app@wanadoo.fr
7
***************************************************************************/
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
#include "brasero-layout-object.h"
27
static void brasero_layout_object_base_init (gpointer g_class);
30
brasero_layout_object_get_type()
32
static GType type = 0;
35
static const GTypeInfo our_info = {
36
sizeof (BraseroLayoutObjectIFace),
37
brasero_layout_object_base_init,
47
type = g_type_register_static (G_TYPE_INTERFACE,
48
"BraseroLayoutObject",
52
g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
59
brasero_layout_object_base_init (gpointer g_class)
61
static gboolean initialized = FALSE;
70
brasero_layout_object_get_proportion (BraseroLayoutObject *self,
75
BraseroLayoutObjectIFace *iface;
77
g_return_if_fail (BRASERO_IS_LAYOUT_OBJECT (self));
78
g_return_if_fail (header != NULL && center != NULL && footer != NULL);
80
iface = BRASERO_LAYOUT_OBJECT_GET_IFACE (self);
81
if (iface->get_proportion)
82
(* iface->get_proportion) (self,