[gdl] Fix warning when setting GdlDockNotebook page with -1



commit 191bc7c79db9baaba920defe5d6c57523e79a1a4
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Mon Jul 30 19:42:52 2012 +0200

    Fix warning when setting GdlDockNotebook page with -1

 gdl/gdl-dock-notebook.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdl/gdl-dock-notebook.c b/gdl/gdl-dock-notebook.c
index 35568d8..51867ef 100644
--- a/gdl/gdl-dock-notebook.c
+++ b/gdl/gdl-dock-notebook.c
@@ -148,8 +148,8 @@ gdl_dock_notebook_class_init (GdlDockNotebookClass *klass)
         g_object_class, PROP_PAGE,
         g_param_spec_int ("page", _("Page"),
                           _("The index of the current page"),
-                          0, G_MAXINT,
-                          0,
+                          -1, G_MAXINT,
+                          -1,
                           G_PARAM_READWRITE |
                           GDL_DOCK_PARAM_EXPORT | GDL_DOCK_PARAM_AFTER));
 



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