changeset 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 3cf8b3dca100
children 3465b68cf225
files src/ChangeLog src/gtkutil.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Jun 22 12:57:20 2010 -0400
+++ b/src/ChangeLog	Thu Jun 24 18:08:22 2010 +0200
@@ -1,3 +1,8 @@
+2010-06-24  Juanma Barranquero  <lekktu@gmail.com>
+
+	* gtkutil.c (xg_update_scrollbar_pos):
+	Avoid C99 mid-block variable declaration.
+
 2010-06-22  Jan Djärv  <jan.h.d@swipnet.se>
 
 	* xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
--- 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)
         {