Make _save a gboolean and mce has a confirmation note if all disabled.
[tweakr] / libmaemo-tweaks-section / maemo-tweaks-section.h
index 052d233..d1c05b3 100644 (file)
@@ -44,7 +44,8 @@ struct _MaemoTweaksSectionClass
 
     const gchar *name;
 
-    void (*save) (MaemoTweaksSection *section);
+    gboolean (*save) (MaemoTweaksSection *section,
+                      gboolean *requires_restart);
 };
 
 
@@ -52,7 +53,9 @@ GType maemo_tweaks_section_get_type (void) G_GNUC_CONST;
 
 MaemoTweaksSection * maemo_tweaks_section_new (GType type);
 
-void maemo_tweaks_section_save (MaemoTweaksSection *section);
+GtkWidget * maemo_tweaks_section_get_widget (MaemoTweaksSection *section);
+gboolean maemo_tweaks_section_save (MaemoTweaksSection *section,
+                                    gboolean *requires_restart);
 
 G_END_DECLS