diff src/gtkutil.c @ 109040:98796fa1a7f8

src/gtkutil.c (xg_update_scrollbar_pos): Avoid C99 mid-block variable declaration.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 24 Jun 2010 18:08:22 +0200
parents 3e9a832a5533
children b5f73bf59a4f
line wrap: on
line diff
--- a/src/gtkutil.c	Tue Jun 22 12:57:20 2010 -0400
+++ b/src/gtkutil.c	Thu Jun 24 18:08:22 2010 +0200
@@ -3213,6 +3213,7 @@
       GtkWidget *wfixed = f->output_data.x->edit_widget;
       GtkWidget *wparent = gtk_widget_get_parent (wscroll);
       GtkFixed *wf = GTK_FIXED (wfixed);
+      gint msl;
 
       /* Clear out old position.  */
       GList *iter;
@@ -3232,7 +3233,6 @@
 
       /* Move and resize to new values.  */
       gtk_fixed_move (GTK_FIXED (wfixed), wparent, left, top);
-      gint msl;
       gtk_widget_style_get (wscroll, "min-slider-length", &msl, NULL);
       if (msl > height)
         {