/* The widget that the section populates (usually a vbox */
GtkWidget *widget;
+ const gchar *name;
};
struct _MaemoTweaksSectionClass
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);
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);
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);