]> git.eshelyaron.com Git - emacs.git/commitdiff
src/gtkutil.c (xg_update_scrollbar_pos): Avoid C99 mid-block variable declaration.
authorJuanma Barranquero <lekktu@gmail.com>
Thu, 24 Jun 2010 16:08:22 +0000 (18:08 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 24 Jun 2010 16:08:22 +0000 (18:08 +0200)
src/ChangeLog
src/gtkutil.c

index b52d6c1dffea9a8755edc697f1d49c9b2ee5291c..9777ab2202b8e8188d246705294698c8dfda539c 100644 (file)
@@ -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.
index 51b1c64c108051ed5ef3a0a2c71d3c4a725943c1..5774332c67669462793e064748340b3ee4a7f4a3 100644 (file)
@@ -3213,6 +3213,7 @@ xg_update_scrollbar_pos (f, scrollbar_id, top, left, width, height)
       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 @@ xg_update_scrollbar_pos (f, scrollbar_id, top, left, width, height)
 
       /* 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)
         {