summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <jpu@src.gnome.org>2007-11-09 20:18:38 +0000
committerJuan Pablo Ugarte <jpu@src.gnome.org>2007-11-09 20:18:38 +0000
commit3c7eee45bd1c624828c54c7a553f24e298447d68 (patch)
tree40eced93f94a38e92b48c378676fdc9f8169401b /plugins
parent13b9c6314f046c30cb42780827086e333b54f997 (diff)
downloadglade-3c7eee45bd1c624828c54c7a553f24e298447d68.tar.gz
commited J. Ali Harlow <ali@avrc.city.ac.uk> patch. (fixes #495057) o
* plugins/gtk+/glade-gtk.c: commited J. Ali Harlow <ali@avrc.city.ac.uk> patch. (fixes #495057) o glade_gtk_assistant_set_child_property() return if the current page is the same as position. svn path=/trunk/; revision=1642
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtk+/glade-gtk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 6d4e5682..d081035c 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -6656,7 +6656,9 @@ glade_gtk_assistant_set_child_property (GladeWidgetAdaptor *adaptor,
gint pos, size;
gboolean set_current;
- if ((pos = g_value_get_int (value)) < 0);
+ if ((pos = g_value_get_int (value)) < 0) return;
+ if (pos == glade_gtk_assistant_get_page (assistant, widget))
+ return;
set_current = gtk_assistant_get_current_page (assistant) ==
glade_gtk_assistant_get_page (assistant, widget);