[gtk+] paned: Initialize max_position



commit 43747a6b30f53dbd8d2ed5e86983679110563273
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 24 00:22:31 2016 -0500

    paned: Initialize max_position
    
    As pointed out in
    https://bugzilla.gnome.org/show_bug.cgi?id=608865
    max_position should be set to G_MAXINT.

 gtk/gtkpaned.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 8ea97df..e141eee 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1921,6 +1921,7 @@ gtk_paned_init (GtkPaned *paned)
   priv->in_recursion = FALSE;
   priv->handle_prelit = FALSE;
   priv->original_position = -1;
+  priv->max_position = G_MAXINT;
 
   priv->handle_pos.x = -1;
   priv->handle_pos.y = -1;


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