Commit d9816500 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte

fixed bug in glade_gtk_assistant_verify_property() new value should be >=

* plugins/gtk+/glade-gtk.c: fixed bug in glade_gtk_assistant_verify_property()
  new value should be >= that current

* plugins/gtk+/gtk+.xml.in: renamed virtual property GtkAssistant::size to n-pages

svn path=/trunk/; revision=1988
parent 58a16f54
2008-10-22 Juan Pablo Ugarte <juanpablougarte@gmail.com>
* plugins/gtk+/glade-gtk.c: fixed bug in glade_gtk_assistant_verify_property()
new value should be >= that current
* plugins/gtk+/gtk+.xml.in: renamed virtual property GtkAssistant::size to n-pages
2008-10-22 Tristan Van Berkom <tvb@gnome.org>
* plugins/gtk+/Makefile.am, plugins/gtk+/glade-icon-sources.[ch]:
......@@ -5,7 +12,7 @@
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added load/save/set_property/string_from_value
support for icon sources in icon factories.
2008-10-21 Tristan Van Berkom <tvb@gnome.org>
* src/glade-window.c, gladeui/glade-editor.c, gladeui/glade-editor-property.[ch],
......
......@@ -8016,7 +8016,7 @@ glade_gtk_assistant_parse_finished (GladeProject *project,
gtk_assistant_set_current_page (assistant, 0);
glade_widget_property_set (glade_widget_get_from_gobject (object),
"size", pages);
"n-pages", pages);
}
}
......@@ -8052,7 +8052,7 @@ glade_gtk_assistant_post_create (GladeWidgetAdaptor *adaptor,
gtk_assistant_set_current_page (GTK_ASSISTANT (object), 0);
glade_widget_property_set (parent, "size", 3);
glade_widget_property_set (parent, "n-pages", 3);
}
}
......@@ -8076,7 +8076,7 @@ glade_gtk_assistant_remove_child (GladeWidgetAdaptor *adaptor,
GladeWidget *gassistant = glade_widget_get_from_gobject (container);
gtk_container_remove (GTK_CONTAINER (container), GTK_WIDGET (child));
glade_widget_property_set (gassistant, "size",
glade_widget_property_set (gassistant, "n-pages",
gtk_assistant_get_n_pages (assistant));
}
......@@ -8105,8 +8105,8 @@ glade_gtk_assistant_verify_property (GladeWidgetAdaptor *adaptor,
const gchar *property_name,
const GValue *value)
{
if (strcmp (property_name, "size") == 0)
return g_value_get_int (value) >
if (strcmp (property_name, "n-pages") == 0)
return g_value_get_int (value) >=
gtk_assistant_get_n_pages (GTK_ASSISTANT (object));
/* Chain Up */
......@@ -8124,7 +8124,7 @@ glade_gtk_assistant_set_property (GladeWidgetAdaptor *adaptor,
const gchar *property_name,
const GValue *value)
{
if (strcmp (property_name, "size") == 0)
if (strcmp (property_name, "n-pages") == 0)
{
GtkAssistant *assistant = GTK_ASSISTANT (object);
gint size, i;
......@@ -8151,7 +8151,7 @@ glade_gtk_assistant_get_property (GladeWidgetAdaptor *adaptor,
const gchar *property_name,
GValue *value)
{
if (strcmp (property_name, "size") == 0)
if (strcmp (property_name, "n-pages") == 0)
{
g_value_set_int (value,
gtk_assistant_get_n_pages (GTK_ASSISTANT (object)));
......
......@@ -1632,7 +1632,7 @@ embedded in another object</_tooltip>
<child-set-property-function>glade_gtk_assistant_set_child_property</child-set-property-function>
<child-get-property-function>glade_gtk_assistant_get_child_property</child-get-property-function>
<properties>
<property save="False" id="size" _name="Size">
<property save="False" id="n-pages" _name="N° pages">
<_tooltip>Number of pages</_tooltip>
<spec>glade_standard_int_spec</spec>
</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment