summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2010-06-24 18:08:22 +0200
committerJuanma Barranquero <lekktu@gmail.com>2010-06-24 18:08:22 +0200
commit8c079ebbd2bfd2d08b8ddd2c44565bc639efa496 (patch)
tree10b21cebd1c1c4f124a1625b735667fa6e4a3f72 /src
parent04c23739823fecd98cbc06ad627b36e5bd8e482e (diff)
downloademacs-8c079ebbd2bfd2d08b8ddd2c44565bc639efa496.tar.gz
src/gtkutil.c (xg_update_scrollbar_pos): Avoid C99 mid-block variable declaration.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/gtkutil.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b52d6c1dffe..9777ab2202b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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.
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 51b1c64c108..5774332c676 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -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)
{