[glade/glade-3-12] Updated GtkAssistant support Fixed bug #664276 "Can't add widgets to a GtkAssistant" Make assistant



commit 94a309727e5d1f2836497c46fc1c1eb53c28fdc4
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Mon Sep 17 20:08:21 2012 -0300

    Updated GtkAssistant support
    Fixed bug #664276 "Can't add widgets to a GtkAssistant"
    Make assistant update current page when a child is selected in the project.

 plugins/gtk+/glade-gtk.c |    7 ++++---
 plugins/gtk+/gtk+.xml.in |    2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 38a4885..478a4b4 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -7969,10 +7969,8 @@ glade_gtk_assistant_post_create (GladeWidgetAdaptor * adaptor,
       g_signal_connect (project, "parse-finished",
                         G_CALLBACK (glade_gtk_assistant_parse_finished),
                         object);
-      return;
     }
-
-  if (reason == GLADE_CREATE_USER)
+  else if (reason == GLADE_CREATE_USER)
     {
       glade_gtk_assistant_append_new_page (parent, project,
                                            _("Introduction page"),
@@ -8085,7 +8083,10 @@ glade_gtk_assistant_set_property (GladeWidgetAdaptor * adaptor,
 
       for (i = gtk_assistant_get_n_pages (GTK_ASSISTANT (object)),
            size = g_value_get_int (value); i < size; i++)
+	{
+	  g_message ("aaaa %d %d", i,size);
         gtk_assistant_append_page (assistant, glade_placeholder_new ());
+	}
 
       glade_gtk_assistant_update_page_type (assistant);
 
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index a473149..3f405d1 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -1992,7 +1992,7 @@ embedded in another object</_tooltip>
         <property save="False" id="n-pages" _name="Number of Pages">
 	  <parameter-spec>
 	    <type>GParamInt</type>
-	    <min>1</min>
+	    <min>0</min>
 	  </parameter-spec>
 	  <_tooltip>Number of pages in this assistant</_tooltip>
 	</property>



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