Add a _get_widget function to the section interface.
authorSalvatore Iovene <salvatore@iovene.com>
Sun, 6 Dec 2009 11:09:33 +0000 (13:09 +0200)
committerSalvatore Iovene <salvatore@iovene.com>
Sun, 6 Dec 2009 11:09:33 +0000 (13:09 +0200)
libmaemo-tweaks-section/maemo-tweaks-section.c
libmaemo-tweaks-section/maemo-tweaks-section.h

index fc1a1e8..1f87b2c 100644 (file)
@@ -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)
 {
index 052d233..5652e6e 100644 (file)
@@ -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