Remove the _build virtual function and add a _save one.
[tweakr] / libmaemo-tweaks-section / maemo-tweaks-section.c
1 /*
2  * vim:ts=4:sw=4:et:cindent:cino=(0
3  */ 
4
5 #include <config.h>
6 #include <gtk/gtk.h>
7
8 #include "maemo-tweaks-section.h"
9
10
11 G_DEFINE_TYPE (MaemoTweaksSection, maemo_tweaks_section, G_TYPE_OBJECT);
12
13
14 static void
15 maemo_tweaks_section_class_init (MaemoTweaksSectionClass *class)
16 {
17 }
18
19 static void
20 maemo_tweaks_section_init (MaemoTweaksSection *section)
21 {
22 }
23
24 MaemoTweaksSection *
25 maemo_tweaks_section_new (GType type)
26 {
27     g_return_val_if_fail (g_type_is_a (type, MAEMO_TWEAKS_TYPE_SECTION),
28                           NULL);
29
30     return g_object_new (type, NULL);
31 }
32
33 void
34 maemo_tweaks_section_save (MaemoTweaksSection *section)
35 {
36     g_return_if_fail (MAEMO_TWEAKS_IS_SECTION (section));
37
38     if (MAEMO_TWEAKS_SECTION_GET_CLASS (section)->save)
39         MAEMO_TWEAKS_SECTION_GET_CLASS (section)->save (section);
40     else
41         g_warning ("%s: section class %s doesn't implement "
42                    "MaemoTweaksSection::filter ()\n",
43                    G_STRFUNC, g_type_name (G_TYPE_FROM_INSTANCE (section)));
44 }
45