Use frames.
authorSalvatore Iovene <salvatore@iovene.com>
Thu, 10 Dec 2009 18:06:42 +0000 (20:06 +0200)
committerSalvatore Iovene <salvatore@iovene.com>
Thu, 10 Dec 2009 18:06:42 +0000 (20:06 +0200)
maemo-tweaks.c

index d79bb6f..4253087 100644 (file)
@@ -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);
     }