From 015d20e38fe203d703da0be9bd565fffeb0852f3 Mon Sep 17 00:00:00 2001 From: Salvatore Iovene Date: Sun, 6 Dec 2009 13:09:33 +0200 Subject: [PATCH] Add a _get_widget function to the section interface. --- libmaemo-tweaks-section/maemo-tweaks-section.c | 8 ++++++++ libmaemo-tweaks-section/maemo-tweaks-section.h | 1 + 2 files changed, 9 insertions(+) diff --git a/libmaemo-tweaks-section/maemo-tweaks-section.c b/libmaemo-tweaks-section/maemo-tweaks-section.c index fc1a1e8..1f87b2c 100644 --- a/libmaemo-tweaks-section/maemo-tweaks-section.c +++ b/libmaemo-tweaks-section/maemo-tweaks-section.c @@ -30,6 +30,14 @@ maemo_tweaks_section_new (GType type) return g_object_new (type, NULL); } +GtkWidget * +maemo_tweaks_section_get_widget (MaemoTweaksSection *section) +{ + g_return_val_if_fail (MAEMO_TWEAKS_IS_SECTION (section), NULL); + + return section->widget; +} + void maemo_tweaks_section_save (MaemoTweaksSection *section) { diff --git a/libmaemo-tweaks-section/maemo-tweaks-section.h b/libmaemo-tweaks-section/maemo-tweaks-section.h index 052d233..5652e6e 100644 --- a/libmaemo-tweaks-section/maemo-tweaks-section.h +++ b/libmaemo-tweaks-section/maemo-tweaks-section.h @@ -52,6 +52,7 @@ GType maemo_tweaks_section_get_type (void) G_GNUC_CONST; MaemoTweaksSection * maemo_tweaks_section_new (GType type); +GtkWidget * maemo_tweaks_section_get_widget (MaemoTweaksSection *section); void maemo_tweaks_section_save (MaemoTweaksSection *section); G_END_DECLS -- 1.7.9.5