1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
4
* cong-service-node-property-page.c
6
* Copyright (C) 2005 David Malcolm
8
* Conglomerate is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License as
10
* published by the Free Software Foundation; either version 2 of the
11
* License, or (at your option) any later version.
13
* Conglomerate is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
* Authors: David Malcolm <david@davemalcolm.demon.co.uk>
26
#include "cong-service-node-property-page.h"
28
struct CongServiceNodePropertyPagePrivate
30
CongCustomPropertyPageFactoryMethod factory_method;
34
CONG_DEFINE_CLASS (CongServiceNodePropertyPage, cong_service_node_property_page, CONG_SERVICE_NODE_PROPERTY_PAGE, CongService, CONG_SERVICE_TYPE)
37
* cong_service_node_property_page_construct:
38
* @node_property_page:
48
CongServiceNodePropertyPage*
49
cong_service_node_property_page_construct (CongServiceNodePropertyPage* node_property_page,
51
const gchar *description,
52
const gchar *service_id,
53
CongCustomPropertyPageFactoryMethod factory_method,
56
g_return_val_if_fail (IS_CONG_SERVICE_NODE_PROPERTY_PAGE (node_property_page), NULL);
57
g_return_val_if_fail (name, NULL);
58
g_return_val_if_fail (description, NULL);
59
g_return_val_if_fail (service_id, NULL);
61
cong_service_construct (CONG_SERVICE (node_property_page),
65
PRIVATE (node_property_page)->factory_method = factory_method;
66
PRIVATE (node_property_page)->user_data = user_data;
68
return node_property_page;
72
* cong_custom_property_page_make:
73
* @custom_property_page:
81
cong_custom_property_page_make (CongServiceNodePropertyPage *node_property_page,
84
g_return_val_if_fail (IS_CONG_SERVICE_NODE_PROPERTY_PAGE (node_property_page), NULL);
85
g_return_val_if_fail (doc, NULL);
87
g_assert (PRIVATE (node_property_page)->factory_method);
89
return PRIVATE (node_property_page)->factory_method (node_property_page,