Remove the _build virtual function and add a _save one.
authorSalvatore Iovene <salvatore@iovene.com>
Sun, 6 Dec 2009 11:06:16 +0000 (13:06 +0200)
committerSalvatore Iovene <salvatore@iovene.com>
Sun, 6 Dec 2009 11:06:16 +0000 (13:06 +0200)
libmaemo-tweaks-section/maemo-tweaks-section.c
libmaemo-tweaks-section/maemo-tweaks-section.h
modules/maemo-tweaks-desktop.c

index 9d0a360..fc1a1e8 100644 (file)
@@ -31,12 +31,12 @@ maemo_tweaks_section_new (GType type)
 }
 
 void
-maemo_tweaks_section_build (MaemoTweaksSection *section)
+maemo_tweaks_section_save (MaemoTweaksSection *section)
 {
     g_return_if_fail (MAEMO_TWEAKS_IS_SECTION (section));
 
-    if (MAEMO_TWEAKS_SECTION_GET_CLASS (section)->build)
-        MAEMO_TWEAKS_SECTION_GET_CLASS (section)->build (section);
+    if (MAEMO_TWEAKS_SECTION_GET_CLASS (section)->save)
+        MAEMO_TWEAKS_SECTION_GET_CLASS (section)->save (section);
     else
         g_warning ("%s: section class %s doesn't implement "
                    "MaemoTweaksSection::filter ()\n",
index 3384f07..e36ca51 100644 (file)
@@ -41,7 +41,7 @@ struct _MaemoTweaksSectionClass
 
     const gchar *name;
 
-    void (*build) (MaemoTweaksSection *section);
+    void (*save) (MaemoTweaksSection *section);
 };
 
 
@@ -49,7 +49,7 @@ GType maemo_tweaks_section_get_type (void) G_GNUC_CONST;
 
 MaemoTweaksSection * maemo_tweaks_section_new (GType type);
 
-void maemo_tweaks_section_build (MaemoTweaksSection *section);
+void maemo_tweaks_section_save (MaemoTweaksSection *section);
 
 G_END_DECLS
 
index f274aa1..24ba0d5 100644 (file)
@@ -48,7 +48,7 @@ static void maemo_tweaks_desktop_section_class_init
 static void maemo_tweaks_desktop_section_init
     (MaemoTweaksDesktopSection *section);
 
-static void maemo_tweaks_desktop_section_build (MaemoTweaksSection *section);
+static void _save (MaemoTweaksSection *section);
 
 static GType maemo_tweaks_desktop_section_type = 0;
 static MaemoTweaksSectionClass *
@@ -104,7 +104,7 @@ maemo_tweaks_desktop_section_class_init
         g_type_class_peek_parent (klass);
 
     section_class->name   = "_Desktop";
-    section_class->build = maemo_tweaks_desktop_section_build;
+    section_class->save = _save;
 }
 
 static void
@@ -138,8 +138,7 @@ GtkWidget * _build_snap_to_grid (void)
     return button;
 }
 
-static void
-maemo_tweaks_desktop_section_build (MaemoTweaksSection *section)
+static void _save (MaemoTweaksSection *section)
 {
 }