From 37becd0fa7e6be20505136f71d3c224547ed43b7 Mon Sep 17 00:00:00 2001 From: Salvatore Iovene Date: Thu, 10 Dec 2009 20:06:42 +0200 Subject: [PATCH] Use frames. --- maemo-tweaks.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/maemo-tweaks.c b/maemo-tweaks.c index d79bb6f..4253087 100644 --- a/maemo-tweaks.c +++ b/maemo-tweaks.c @@ -69,17 +69,19 @@ osso_return_t execute (osso_context_t *osso, gpointer data, { MaemoTweaksSection *section; MaemoTweaksSectionClass *klass; + GtkWidget *frame; klass = g_type_class_ref (section_types[i]); section = maemo_tweaks_section_new (section_types[i]); sections = g_list_prepend (sections, section); + frame = gtk_frame_new (section->name); + gtk_box_pack_start (GTK_BOX (box), - gtk_label_new (section->name), - FALSE, FALSE, 0); - gtk_box_pack_start (GTK_BOX (box), - maemo_tweaks_section_get_widget (section), + frame, FALSE, FALSE, 0); + gtk_container_add (GTK_CONTAINER (frame), + maemo_tweaks_section_get_widget (section)); g_type_class_unref (klass); } -- 1.7.9.5