From c632dfda11b0ad6a144704dc473e4ff6bbac0990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Dj=C3=A4rv?= Date: Wed, 21 Apr 2010 18:13:55 +0200 Subject: Declarations before code (Bug#5993). * data.c (make_blv): Declarations before code (Bug#5993). * xlwmenu.c (expose_cb): * lwlib-Xaw.c (fill_xft_data): Declarations before code (Bug#5993). --- lwlib/ChangeLog | 5 +++++ lwlib/lwlib-Xaw.c | 4 ++-- lwlib/xlwmenu.c | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'lwlib') diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index 35cb646fbcb..52728552eac 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog @@ -1,3 +1,8 @@ +2010-04-21 Jan Djärv + + * xlwmenu.c (expose_cb): + * lwlib-Xaw.c (fill_xft_data): Declarations before code. + 2010-04-17 Jan Djärv * xlwmenu.c: Include Shell.h, remove duplicate declaration of diff --git a/lwlib/lwlib-Xaw.c b/lwlib/lwlib-Xaw.c index c6bbae7e3c9..d31b4602147 100644 --- a/lwlib/lwlib-Xaw.c +++ b/lwlib/lwlib-Xaw.c @@ -150,12 +150,12 @@ xaw_update_scrollbar (instance, widget, val) static void fill_xft_data (struct widget_xft_data *data, Widget widget, XftFont *font) { - data->widget = widget; - data->xft_font = font; Pixel bg, fg; XColor colors[2]; int screen = XScreenNumberOfScreen (XtScreen (widget)); + data->widget = widget; + data->xft_font = font; XtVaGetValues (widget, XtNbackground, &bg, XtNforeground, &fg, diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index d396aa651e9..52a89de2204 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -1304,10 +1304,10 @@ expose_cb (Widget widget, XEvent* event, Boolean* continue_to_dispatch) { - *continue_to_dispatch = False; XlwMenuWidget mw = (XlwMenuWidget) closure; int i; + *continue_to_dispatch = False; for (i = 0; i < mw->menu.windows_length; ++i) if (mw->menu.windows [i].w == widget) break; if (i < mw->menu.windows_length && i < mw->menu.old_depth) -- cgit v1.2.1