diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2010-04-21 18:13:55 +0200 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2010-04-21 18:13:55 +0200 |
commit | c632dfda11b0ad6a144704dc473e4ff6bbac0990 (patch) | |
tree | 6065155419ae993b72a32027a0ef3d15fc376270 /lwlib | |
parent | c5cbeb128e3d3fc20d6e481308f154526c96e6cf (diff) | |
download | emacs-c632dfda11b0ad6a144704dc473e4ff6bbac0990.tar.gz |
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).
Diffstat (limited to 'lwlib')
-rw-r--r-- | lwlib/ChangeLog | 5 | ||||
-rw-r--r-- | lwlib/lwlib-Xaw.c | 4 | ||||
-rw-r--r-- | lwlib/xlwmenu.c | 2 |
3 files changed, 8 insertions, 3 deletions
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 <jan.h.d@swipnet.se> + + * xlwmenu.c (expose_cb): + * lwlib-Xaw.c (fill_xft_data): Declarations before code. + 2010-04-17 Jan Djärv <jan.h.d@swipnet.se> * 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) |