aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/test-multi-config-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/test-multi-config-dialog.c')
-rw-r--r--widgets/misc/test-multi-config-dialog.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/widgets/misc/test-multi-config-dialog.c b/widgets/misc/test-multi-config-dialog.c
index 8882a627a3..94f830fdb4 100644
--- a/widgets/misc/test-multi-config-dialog.c
+++ b/widgets/misc/test-multi-config-dialog.c
@@ -36,6 +36,7 @@ add_pages (EMultiConfigDialog *multi_config_dialog)
for (i = 0; i < NUM_PAGES; i ++) {
GtkWidget *widget;
+ GtkWidget *page;
char *string;
char *title;
char *description;
@@ -45,8 +46,13 @@ add_pages (EMultiConfigDialog *multi_config_dialog)
title = g_strdup_printf ("Title of page %d", i);
widget = gtk_label_new (string);
+ gtk_widget_show (widget);
- e_multi_config_dialog_add_page (multi_config_dialog, title, description, NULL, widget);
+ page = e_config_page_new ();
+ gtk_container_add (GTK_CONTAINER (page), widget);
+
+ e_multi_config_dialog_add_page (multi_config_dialog, title, description, NULL,
+ E_CONFIG_PAGE (page));
g_free (string);
g_free (title);