diff options
| author | Joakim Verona | 2013-07-02 22:46:17 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-07-02 22:46:17 +0200 |
| commit | 3718127221fbbc31f8ebd027ab7c95403dbe9118 (patch) | |
| tree | ef422898f3344c8f94f6ecf63eb583122bbf2bd8 /lwlib | |
| parent | 1ce45b902c67b8a0dda8d71bd2812de29a9988a6 (diff) | |
| parent | a3b49114c186d84404226af75ae7905bd1cd018f (diff) | |
| download | emacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.tar.gz emacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.zip | |
Merge branch 'trunk' into xwidget
Conflicts:
src/window.c
Diffstat (limited to 'lwlib')
| -rw-r--r-- | lwlib/ChangeLog | 16 | ||||
| -rw-r--r-- | lwlib/lwlib-Xaw.h | 7 | ||||
| -rw-r--r-- | lwlib/lwlib-Xlw.h | 7 | ||||
| -rw-r--r-- | lwlib/lwlib.h | 6 |
4 files changed, 26 insertions, 10 deletions
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index 54f7c6088cf..a9e424ac4b3 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-06-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Fix minor problems found by static checking. | ||
| 4 | * lwlib-Xaw.h (xaw_update_one_value, xaw_popup_menu): | ||
| 5 | * lwlib-Xlw.h (xlw_update_one_value, xlw_pop_instance): | ||
| 6 | * lwlib.h (lw_allow_resizing, lw_set_main_areas) [!USE_MOTIF]: | ||
| 7 | Now const. | ||
| 8 | |||
| 1 | 2012-10-06 Ulrich Müller <ulm@gentoo.org> | 9 | 2012-10-06 Ulrich Müller <ulm@gentoo.org> |
| 2 | 10 | ||
| 3 | * Makefile.in (AR, ARFLAGS): Get values from configure. | 11 | * Makefile.in (AR, ARFLAGS): Get values from configure. |
| @@ -248,7 +256,7 @@ | |||
| 248 | (xaw_update_one_widget): Reformat and remove dead code. | 256 | (xaw_update_one_widget): Reformat and remove dead code. |
| 249 | (xaw_scrollbar_scroll, xaw_scrollbar_jump, xaw_create_scrollbar) | 257 | (xaw_scrollbar_scroll, xaw_scrollbar_jump, xaw_create_scrollbar) |
| 250 | (xaw_update_scrollbar): Remove (not used). | 258 | (xaw_update_scrollbar): Remove (not used). |
| 251 | (make_dialog): Change from K&R to prototype. Remove dead code. | 259 | (make_dialog): Change from K&R to prototype. Remove dead code. |
| 252 | (xaw_creation_table): Remove scrollbar entry. | 260 | (xaw_creation_table): Remove scrollbar entry. |
| 253 | 261 | ||
| 254 | 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu> | 262 | 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu> |
| @@ -357,7 +365,7 @@ | |||
| 357 | (display_menu_item): Replace ws->window with ws->pixmap, remove | 365 | (display_menu_item): Replace ws->window with ws->pixmap, remove |
| 358 | call to XftDrawRect. | 366 | call to XftDrawRect. |
| 359 | (display_menu): Remove this and that argument. | 367 | (display_menu): Remove this and that argument. |
| 360 | Remove just_compute_this_one_p. Fill pixmap at start and copy it to | 368 | Remove just_compute_this_one_p. Fill pixmap at start and copy it to |
| 361 | window at end. | 369 | window at end. |
| 362 | (expose_cb): New function. | 370 | (expose_cb): New function. |
| 363 | (make_windows_if_needed): Replace XCreateWindow with XtCreatePopup. | 371 | (make_windows_if_needed): Replace XCreateWindow with XtCreatePopup. |
| @@ -422,7 +430,7 @@ | |||
| 422 | (make_windows_if_needed): Set max_rest_width and xft_draw | 430 | (make_windows_if_needed): Set max_rest_width and xft_draw |
| 423 | in windows[i]. | 431 | in windows[i]. |
| 424 | (openXftFont): New. | 432 | (openXftFont): New. |
| 425 | (XlwMenuInitialize): Call openXftFont if HAVE_XFT. If mw->menu.font | 433 | (XlwMenuInitialize): Call openXftFont if HAVE_XFT. If mw->menu.font |
| 426 | is not set, load font fixed and save it in xlwmenu_default_font. | 434 | is not set, load font fixed and save it in xlwmenu_default_font. |
| 427 | (XlwMenuInitialize): Set max_rest_width and xft_draw in windows[0]. | 435 | (XlwMenuInitialize): Set max_rest_width and xft_draw in windows[0]. |
| 428 | (XlwMenuClassInitialize): Initialize xlwmenu_default_font. | 436 | (XlwMenuClassInitialize): Initialize xlwmenu_default_font. |
| @@ -430,7 +438,7 @@ | |||
| 430 | windows[0].xft_draw if xft_font is set. | 438 | windows[0].xft_draw if xft_font is set. |
| 431 | (XlwMenuDestroy): Destroy all xft_draw and close xft_font. | 439 | (XlwMenuDestroy): Destroy all xft_draw and close xft_font. |
| 432 | (facename_changed): New. | 440 | (facename_changed): New. |
| 433 | (XlwMenuSetValues): Call facename_changed. If face name did change, | 441 | (XlwMenuSetValues): Call facename_changed. If face name did change, |
| 434 | close old fonts and destroy xft_draw:s. Then create new ones. | 442 | close old fonts and destroy xft_draw:s. Then create new ones. |
| 435 | 443 | ||
| 436 | * xlwmenu.h (XtNfaceName, XtCFaceName, XtNdefaultFace, | 444 | * xlwmenu.h (XtNfaceName, XtCFaceName, XtNdefaultFace, |
diff --git a/lwlib/lwlib-Xaw.h b/lwlib/lwlib-Xaw.h index cf231270121..363334b575e 100644 --- a/lwlib/lwlib-Xaw.h +++ b/lwlib/lwlib-Xaw.h | |||
| @@ -15,16 +15,17 @@ void | |||
| 15 | xaw_update_one_widget (widget_instance *, Widget, widget_value *, Boolean); | 15 | xaw_update_one_widget (widget_instance *, Widget, widget_value *, Boolean); |
| 16 | 16 | ||
| 17 | void | 17 | void |
| 18 | xaw_update_one_value (widget_instance *, Widget, widget_value *); | 18 | xaw_update_one_value (widget_instance *, Widget, widget_value *) |
| 19 | ATTRIBUTE_CONST; | ||
| 19 | 20 | ||
| 20 | void | 21 | void |
| 21 | xaw_destroy_instance (widget_instance *); | 22 | xaw_destroy_instance (widget_instance *); |
| 22 | 23 | ||
| 23 | void | 24 | void |
| 24 | xaw_popup_menu (Widget, XEvent *); | 25 | xaw_popup_menu (Widget, XEvent *) |
| 26 | ATTRIBUTE_CONST; | ||
| 25 | 27 | ||
| 26 | void | 28 | void |
| 27 | xaw_pop_instance (widget_instance *, Boolean); | 29 | xaw_pop_instance (widget_instance *, Boolean); |
| 28 | 30 | ||
| 29 | #endif /* LWLIB_XAW_H */ | 31 | #endif /* LWLIB_XAW_H */ |
| 30 | |||
diff --git a/lwlib/lwlib-Xlw.h b/lwlib/lwlib-Xlw.h index 3b2c301c3d3..2d38eb7be66 100644 --- a/lwlib/lwlib-Xlw.h +++ b/lwlib/lwlib-Xlw.h | |||
| @@ -15,16 +15,17 @@ xlw_update_one_widget (widget_instance* instance, Widget widget, | |||
| 15 | 15 | ||
| 16 | void | 16 | void |
| 17 | xlw_update_one_value (widget_instance* instance, Widget widget, | 17 | xlw_update_one_value (widget_instance* instance, Widget widget, |
| 18 | widget_value* val); | 18 | widget_value* val) |
| 19 | ATTRIBUTE_CONST; | ||
| 19 | 20 | ||
| 20 | void | 21 | void |
| 21 | xlw_destroy_instance (widget_instance* instance); | 22 | xlw_destroy_instance (widget_instance* instance); |
| 22 | 23 | ||
| 23 | void | 24 | void |
| 24 | xlw_pop_instance (widget_instance* instance, Boolean up); | 25 | xlw_pop_instance (widget_instance* instance, Boolean up) |
| 26 | ATTRIBUTE_CONST; | ||
| 25 | 27 | ||
| 26 | void | 28 | void |
| 27 | xlw_popup_menu (Widget widget, XEvent * event); | 29 | xlw_popup_menu (Widget widget, XEvent * event); |
| 28 | 30 | ||
| 29 | #endif /* LWLIB_XLW_H */ | 31 | #endif /* LWLIB_XLW_H */ |
| 30 | |||
diff --git a/lwlib/lwlib.h b/lwlib/lwlib.h index 2fccc7a4f42..849930c3d25 100644 --- a/lwlib/lwlib.h +++ b/lwlib/lwlib.h | |||
| @@ -171,9 +171,15 @@ void lw_refigure_widget (Widget w, Boolean doit); | |||
| 171 | Boolean lw_window_is_in_menubar (Window win, Widget menubar_widget); | 171 | Boolean lw_window_is_in_menubar (Window win, Widget menubar_widget); |
| 172 | 172 | ||
| 173 | /* Manage resizing: TRUE permits resizing widget w; FALSE disallows it. */ | 173 | /* Manage resizing: TRUE permits resizing widget w; FALSE disallows it. */ |
| 174 | #ifndef USE_MOTIF | ||
| 175 | ATTRIBUTE_CONST | ||
| 176 | #endif | ||
| 174 | void lw_allow_resizing (Widget w, Boolean flag); | 177 | void lw_allow_resizing (Widget w, Boolean flag); |
| 175 | 178 | ||
| 176 | /* Set up the main window. */ | 179 | /* Set up the main window. */ |
| 180 | #ifndef USE_MOTIF | ||
| 181 | ATTRIBUTE_CONST | ||
| 182 | #endif | ||
| 177 | void lw_set_main_areas (Widget parent, | 183 | void lw_set_main_areas (Widget parent, |
| 178 | Widget menubar, | 184 | Widget menubar, |
| 179 | Widget work_area); | 185 | Widget work_area); |