X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=maemo-tweaks.c;h=45a92237dcf06add97adaee708fc3e29a0923b4c;hb=44dca74a0655343e84fb69e4fcaadbc8921bbe21;hp=aa0568b9daadfebe2a0b35f3057da2c499935cdf;hpb=6e7e53cd25c81532e9b6d0e588b9a84ee3e414d3;p=tweakr diff --git a/maemo-tweaks.c b/maemo-tweaks.c index aa0568b..45a9223 100644 --- a/maemo-tweaks.c +++ b/maemo-tweaks.c @@ -5,6 +5,7 @@ #include #include #include +#include #include "maemo-tweaks-types.h" #include "libmaemo-tweaks-section/maemo-tweaks-section.h" @@ -38,6 +39,8 @@ osso_return_t execute (osso_context_t *osso, gpointer data, gboolean user_activated) { GtkWidget *dialog; + GtkWidget *panarea; + GtkWidget *box; gint response; MaemoTweaksModuleManager *manager; @@ -54,6 +57,12 @@ osso_return_t execute (osso_context_t *osso, gpointer data, section_types = g_type_children (MAEMO_TWEAKS_TYPE_SECTION, &n_sections); dialog = create_dialog (GTK_WINDOW (data)); + panarea = hildon_pannable_area_new (); + box = gtk_vbox_new (FALSE, 0); + + hildon_pannable_area_add_with_viewport (HILDON_PANNABLE_AREA (panarea), + box); + g_object_set (G_OBJECT (panarea), "height-request", 350, NULL); for (i = 0; i < n_sections; i++) { @@ -64,16 +73,18 @@ osso_return_t execute (osso_context_t *osso, gpointer data, section = maemo_tweaks_section_new (section_types[i]); sections = g_list_prepend (sections, section); - gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), + gtk_box_pack_start (GTK_BOX (box), gtk_label_new (section->name), - TRUE, TRUE, 0); - gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), + FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (box), maemo_tweaks_section_get_widget (section), - TRUE, TRUE, 0); + FALSE, FALSE, 0); g_type_class_unref (klass); } + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), panarea, + FALSE, FALSE, 0); gtk_widget_show_all (GTK_DIALOG (dialog)->vbox); for (;;)