From 8c079ebbd2bfd2d08b8ddd2c44565bc639efa496 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Thu, 24 Jun 2010 18:08:22 +0200 Subject: [PATCH] src/gtkutil.c (xg_update_scrollbar_pos): Avoid C99 mid-block variable declaration. --- src/ChangeLog | 5 +++++ src/gtkutil.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * gtkutil.c (xg_update_scrollbar_pos): + Avoid C99 mid-block variable declaration. + 2010-06-22 Jan Djärv * 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) { -- 2.39.2