Commit 8c079ebb authored by Juanma Barranquero's avatar Juanma Barranquero

src/gtkutil.c (xg_update_scrollbar_pos): Avoid C99 mid-block variable declaration.

parent 04c23739
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.
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment