1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

Fix minor problems found by static checking.

* lwlib/lwlib-Xaw.h (xaw_update_one_value, xaw_popup_menu):
* lwlib/lwlib-Xlw.h (xlw_update_one_value, xlw_pop_instance):
* lwlib/lwlib.h (lw_allow_resizing, lw_set_main_areas) [!USE_MOTIF]:
Now const.
* src/widget.c (resize_cb): Remove unused local.
This commit is contained in:
Paul Eggert 2013-06-30 09:14:22 -07:00
parent 16b6e7f29b
commit 1d71c1d9de
6 changed files with 24 additions and 7 deletions

View File

@ -1,3 +1,11 @@
2013-06-30 Paul Eggert <eggert@cs.ucla.edu>
Fix minor problems found by static checking.
* lwlib-Xaw.h (xaw_update_one_value, xaw_popup_menu):
* lwlib-Xlw.h (xlw_update_one_value, xlw_pop_instance):
* lwlib.h (lw_allow_resizing, lw_set_main_areas) [!USE_MOTIF]:
Now const.
2012-10-06 Ulrich Müller <ulm@gentoo.org>
* Makefile.in (AR, ARFLAGS): Get values from configure.

View File

@ -15,16 +15,17 @@ void
xaw_update_one_widget (widget_instance *, Widget, widget_value *, Boolean);
void
xaw_update_one_value (widget_instance *, Widget, widget_value *);
xaw_update_one_value (widget_instance *, Widget, widget_value *)
ATTRIBUTE_CONST;
void
xaw_destroy_instance (widget_instance *);
void
xaw_popup_menu (Widget, XEvent *);
xaw_popup_menu (Widget, XEvent *)
ATTRIBUTE_CONST;
void
xaw_pop_instance (widget_instance *, Boolean);
#endif /* LWLIB_XAW_H */

View File

@ -15,16 +15,17 @@ xlw_update_one_widget (widget_instance* instance, Widget widget,
void
xlw_update_one_value (widget_instance* instance, Widget widget,
widget_value* val);
widget_value* val)
ATTRIBUTE_CONST;
void
xlw_destroy_instance (widget_instance* instance);
void
xlw_pop_instance (widget_instance* instance, Boolean up);
xlw_pop_instance (widget_instance* instance, Boolean up)
ATTRIBUTE_CONST;
void
xlw_popup_menu (Widget widget, XEvent * event);
#endif /* LWLIB_XLW_H */

View File

@ -171,9 +171,15 @@ void lw_refigure_widget (Widget w, Boolean doit);
Boolean lw_window_is_in_menubar (Window win, Widget menubar_widget);
/* Manage resizing: TRUE permits resizing widget w; FALSE disallows it. */
#ifndef USE_MOTIF
ATTRIBUTE_CONST
#endif
void lw_allow_resizing (Widget w, Boolean flag);
/* Set up the main window. */
#ifndef USE_MOTIF
ATTRIBUTE_CONST
#endif
void lw_set_main_areas (Widget parent,
Widget menubar,
Widget work_area);

View File

@ -1,5 +1,7 @@
2013-06-30 Paul Eggert <eggert@cs.ucla.edu>
* widget.c (resize_cb): Remove unused local.
Do not use GTK 3 if it exists but cannot be compiled.
* xmenu.c (x_menu_wait_for_event) [!USE_GTK]:
* xterm.c (x_error_handler) [!USE_GTK]:

View File

@ -656,7 +656,6 @@ resize_cb (Widget widget,
XEvent* event,
Boolean* continue_to_dispatch)
{
EmacsFrame ew = (EmacsFrame) widget;
EmacsFrameResize (widget);
}