X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=libmaemo-tweaks-section%2Fmaemo-tweaks-section.c;h=ef730b1e81493b3d63845c5075ec0ac85cd4d5ef;hb=e3e9818a2a6ebee77a1433abfe06c07a66e3f272;hp=fc1a1e8dafa6e9f235023482539228b61f3909b8;hpb=ae89308e146d36ccb706f4aa89846e5658598a91;p=tweakr diff --git a/libmaemo-tweaks-section/maemo-tweaks-section.c b/libmaemo-tweaks-section/maemo-tweaks-section.c index fc1a1e8..ef730b1 100644 --- a/libmaemo-tweaks-section/maemo-tweaks-section.c +++ b/libmaemo-tweaks-section/maemo-tweaks-section.c @@ -30,16 +30,28 @@ maemo_tweaks_section_new (GType type) return g_object_new (type, NULL); } -void -maemo_tweaks_section_save (MaemoTweaksSection *section) +GtkWidget * +maemo_tweaks_section_get_widget (MaemoTweaksSection *section) { - g_return_if_fail (MAEMO_TWEAKS_IS_SECTION (section)); + g_return_val_if_fail (MAEMO_TWEAKS_IS_SECTION (section), NULL); + + return section->widget; +} + +gboolean +maemo_tweaks_section_save (MaemoTweaksSection *section, + gboolean *requires_restart) +{ + g_return_val_if_fail (MAEMO_TWEAKS_IS_SECTION (section), TRUE); if (MAEMO_TWEAKS_SECTION_GET_CLASS (section)->save) - MAEMO_TWEAKS_SECTION_GET_CLASS (section)->save (section); + return MAEMO_TWEAKS_SECTION_GET_CLASS (section)->save + (section, requires_restart); else g_warning ("%s: section class %s doesn't implement " "MaemoTweaksSection::filter ()\n", G_STRFUNC, g_type_name (G_TYPE_FROM_INSTANCE (section))); + + return TRUE; }