2 * vim:ts=4:sw=4:et:cindent:cino=(0
8 #include "maemo-tweaks-section.h"
11 G_DEFINE_TYPE (MaemoTweaksSection, maemo_tweaks_section, G_TYPE_OBJECT);
15 maemo_tweaks_section_class_init (MaemoTweaksSectionClass *class)
20 maemo_tweaks_section_init (MaemoTweaksSection *section)
25 maemo_tweaks_section_new (GType type)
27 g_return_val_if_fail (g_type_is_a (type, MAEMO_TWEAKS_TYPE_SECTION),
30 return g_object_new (type, NULL);
34 maemo_tweaks_section_get_widget (MaemoTweaksSection *section)
36 g_return_val_if_fail (MAEMO_TWEAKS_IS_SECTION (section), NULL);
38 return section->widget;
42 maemo_tweaks_section_save (MaemoTweaksSection *section)
44 g_return_if_fail (MAEMO_TWEAKS_IS_SECTION (section));
46 if (MAEMO_TWEAKS_SECTION_GET_CLASS (section)->save)
47 MAEMO_TWEAKS_SECTION_GET_CLASS (section)->save (section);
49 g_warning ("%s: section class %s doesn't implement "
50 "MaemoTweaksSection::filter ()\n",
51 G_STRFUNC, g_type_name (G_TYPE_FROM_INSTANCE (section)));