mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-13 16:38:14 +00:00
src/gtkutil.c (xg_update_scrollbar_pos): Avoid C99 mid-block variable declaration.
This commit is contained in:
parent
04c2373982
commit
8c079ebbd2
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user