[glade/glade-3-14] Updated GtkAssistant support Fixed bug #664276 "Can't add widgets to a GtkAssistant" Make assistant
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-14] Updated GtkAssistant support Fixed bug #664276 "Can't add widgets to a GtkAssistant" Make assistant
- Date: Mon, 17 Sep 2012 23:40:58 +0000 (UTC)
commit 00f152c541cc9af29c98095441e4d6085168fa65
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 f008af2..517979a 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -8045,10 +8045,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"),
@@ -8161,7 +8159,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 ceb5a59..1d9ccf5 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -2003,7 +2003,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]