[gtk+] Add a filechooser-in-assistant example



commit 43fcae91f19e587c3abb88cc7497cf3cf76d5f2c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 14 21:05:49 2015 -0400

    Add a filechooser-in-assistant example
    
    This is one of the cases where one wants a page without
    any padding.

 tests/testassistant.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/testassistant.c b/tests/testassistant.c
index 0a475c9..01385ff 100644
--- a/tests/testassistant.c
+++ b/tests/testassistant.c
@@ -568,6 +568,12 @@ create_full_featured_assistant (GtkWidget *widget)
       gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), page, "Page 2");
       gtk_assistant_set_page_complete (GTK_ASSISTANT (assistant), page, TRUE);
 
+      page = gtk_file_chooser_widget_new (GTK_FILE_CHOOSER_ACTION_OPEN);
+      gtk_widget_show (page);
+      gtk_assistant_append_page (GTK_ASSISTANT (assistant), page);
+      gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), page, "Filechooser");
+      gtk_assistant_set_page_complete (GTK_ASSISTANT (assistant), page, TRUE);
+
       page = get_test_page ("Page 3");
       gtk_widget_show (page);
       gtk_assistant_append_page (GTK_ASSISTANT (assistant), page);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]