Add sections' names.
authorSalvatore Iovene <salvatore@iovene.com>
Wed, 9 Dec 2009 19:29:41 +0000 (21:29 +0200)
committerSalvatore Iovene <salvatore@iovene.com>
Wed, 9 Dec 2009 19:29:41 +0000 (21:29 +0200)
libmaemo-tweaks-section/maemo-tweaks-section.h
maemo-tweaks.c
modules/maemo-tweaks-desktop.c
modules/maemo-tweaks-mce.c

index d1c05b3..1fe1509 100644 (file)
@@ -36,6 +36,7 @@ struct _MaemoTweaksSection
 
     /* The widget that the section populates (usually a vbox */
     GtkWidget *widget;
+    const gchar *name;
 };
 
 struct _MaemoTweaksSectionClass
index 5cd5b40..aa0568b 100644 (file)
@@ -65,6 +65,9 @@ osso_return_t execute (osso_context_t *osso, gpointer data,
 
         sections = g_list_prepend (sections, section);
         gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
+                            gtk_label_new (section->name),
+                            TRUE, TRUE, 0);
+        gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
                             maemo_tweaks_section_get_widget (section),
                             TRUE, TRUE, 0);
 
index f934b7e..4dab65c 100644 (file)
@@ -200,6 +200,7 @@ maemo_tweaks_desktop_section_init (MaemoTweaksDesktopSection *section)
 
 
     iface = MAEMO_TWEAKS_SECTION (section);
+    iface->name = "Desktop";
     iface->widget = gtk_vbox_new (FALSE, 0);
     gtk_box_pack_start (GTK_BOX (iface->widget), section->snap_button,
                         TRUE, TRUE, 0);
index 47b70b1..4435b4b 100644 (file)
@@ -328,6 +328,7 @@ maemo_tweaks_mce_section_init (MaemoTweaksMceSection *section)
     section->value_changed = FALSE;
 
     iface = MAEMO_TWEAKS_SECTION (section);
+    iface->name = "Mce";
     iface->widget = gtk_vbox_new (FALSE, 0);
     gtk_box_pack_start (GTK_BOX (iface->widget), section->short_power_key,
                         TRUE, TRUE, 0);