\f/* Menu callbacks */
static void
-pre_hook (Widget w, XtPointer client_data, XtPointer call_data)
+pre_hook (w, client_data, call_data)
+ Widget w;
+ XtPointer client_data;
+ XtPointer call_data;
{
widget_instance* instance = (widget_instance*)client_data;
widget_value* val;
}
static void
-pick_hook (Widget w, XtPointer client_data, XtPointer call_data)
+pick_hook (w, client_data, call_data)
+ Widget w;
+ XtPointer client_data;
+ XtPointer call_data;
{
widget_instance* instance = (widget_instance*)client_data;
widget_value* contents_val = (widget_value*)call_data;
\f/* creation functions */
static Widget
-xlw_create_menubar (widget_instance* instance)
+xlw_create_menubar (instance)
+ widget_instance* instance;
{
Widget widget =
XtVaCreateWidget (instance->info->name, xlwMenuWidgetClass,
}
static Widget
-xlw_create_popup_menu (widget_instance* instance)
+xlw_create_popup_menu (instance)
+ widget_instance* instance;
{
Widget popup_shell =
XtCreatePopupShell (instance->info->name, overrideShellWidgetClass,
};
Boolean
-lw_lucid_widget_p (Widget widget)
+lw_lucid_widget_p (widget)
+ Widget widget;
{
WidgetClass the_class = XtClass (widget);
if (the_class == xlwMenuWidgetClass)
}
void
-xlw_update_one_widget (widget_instance* instance, Widget widget,
- widget_value* val, Boolean deep_p)
+xlw_update_one_widget (instance, widget, val, deep_p)
+ widget_instance* instance;
+ Widget widget;
+ widget_value* val;
+ Boolean deep_p;
{
XlwMenuWidget mw;
}
void
-xlw_update_one_value (widget_instance* instance, Widget widget,
- widget_value* val)
+xlw_update_one_value (instance, widget, val)
+ widget_instance* instance;
+ Widget widget;
+ widget_value* val;
{
return;
}
void
-xlw_pop_instance (widget_instance* instance, Boolean up)
+xlw_pop_instance (instance, up)
+ widget_instance* instance;
+ Boolean up;
{
}
void
-xlw_popup_menu (Widget widget)
+xlw_popup_menu (widget)
+ Widget widget;
{
XButtonPressedEvent dummy;
XlwMenuWidget mw;
\f/* Destruction of instances */
void
-xlw_destroy_instance (widget_instance* instance)
+xlw_destroy_instance (instance)
+ widget_instance* instance;
{
if (instance->widget)
XtDestroyWidget (instance->widget);
/* Redisplay the contents of the widget, without first clearing it. */
void
-XtNoClearRefreshWidget (Widget widget)
+XtNoClearRefreshWidget (widget)
+ Widget widget;
{
XEvent event;
* Apply a function to all the subwidgets of a given widget recursively.
*/
void
-XtApplyToWidgets (Widget w, XtApplyToWidgetsProc proc, XtPointer arg)
+XtApplyToWidgets (w, proc, arg)
+ Widget w;
+ XtApplyToWidgetsProc proc;
+ XtPointer arg;
{
if (XtIsComposite (w))
{
* Stop as soon as the function returns non NULL and returns this as a value.
*/
void *
-XtApplyUntilToWidgets (Widget w, XtApplyUntilToWidgetsProc proc, XtPointer arg)
+XtApplyUntilToWidgets (w, proc, arg)
+ Widget w;
+ XtApplyUntilToWidgetsProc proc;
+ XtPointer arg;
{
void* result;
if (XtIsComposite (w))
* Returns a copy of the list of all children of a composite widget
*/
Widget *
-XtCompositeChildren (Widget widget, unsigned int* number)
+XtCompositeChildren (widget, number)
+ Widget widget;
+ unsigned int* number;
{
CompositeWidget cw = (CompositeWidget)widget;
Widget* result;
}
Boolean
-XtWidgetBeingDestroyedP (Widget widget)
+XtWidgetBeingDestroyedP (widget)
+ Widget widget;
{
return widget->core.being_destroyed;
}
void
-XtSafelyDestroyWidget (Widget widget)
+XtSafelyDestroyWidget (widget)
+ Widget widget;
{
#if 0
}
static void
-char_to_pixel_size (EmacsFrame ew, int char_width, int char_height,
- Dimension* pixel_width, Dimension* pixel_height)
+char_to_pixel_size (ew, char_width, char_height, pixel_width, pixel_height)
+ EmacsFrame ew;
+ int char_width;
+ int char_height;
+ Dimension* pixel_width;
+ Dimension* pixel_height;
{
struct frame* f = ew->emacs_frame.frame;
*pixel_width = CHAR_TO_PIXEL_WIDTH (f, char_width);
}
static void
-round_size_to_char (EmacsFrame ew,
- Dimension in_width, Dimension in_height,
- Dimension* out_width, Dimension* out_height)
+round_size_to_char (ew, in_width, in_height, out_width, out_height)
+ EmacsFrame ew;
+ Dimension in_width;
+ Dimension in_height;
+ Dimension* out_width;
+ Dimension* out_height;
{
int char_width;
int char_height;
}
static Widget
-get_wm_shell (Widget w)
+get_wm_shell (w)
+ Widget w;
{
Widget wmshell;
}
static void
-mark_shell_size_user_specified (Widget wmshell)
+mark_shell_size_user_specified (wmshell)
+ Widget wmshell;
{
if (! XtIsWMShell (wmshell)) abort ();
/* This is kind of sleazy, but I can't see how else to tell it to make it
static Boolean first_frame_p = True;
static void
-set_frame_size (EmacsFrame ew)
+set_frame_size (ew)
+ EmacsFrame ew;
{
/* The widget hierarchy is
static void
-update_wm_hints (EmacsFrame ew)
+update_wm_hints (ew)
+ EmacsFrame ew;
{
Widget wmshell = get_wm_shell ((Widget)ew);
int cw;
}
static void
-create_frame_gcs (EmacsFrame ew)
+create_frame_gcs (ew)
+ EmacsFrame ew;
{
struct frame* s = ew->emacs_frame.frame;
}
static void
-setup_frame_gcs (EmacsFrame ew)
+setup_frame_gcs (ew)
+ EmacsFrame ew;
{
XGCValues gc_values;
struct frame* s = ew->emacs_frame.frame;
}
static void
-update_various_frame_slots (EmacsFrame ew)
+update_various_frame_slots (ew)
+ EmacsFrame ew;
{
struct x_display* x = ew->emacs_frame.frame->display.x;
x->pixel_height = ew->core.height;
}
static void
-update_from_various_frame_slots (EmacsFrame ew)
+update_from_various_frame_slots (ew)
+ EmacsFrame ew;
{
struct x_display* x = ew->emacs_frame.frame->display.x;
ew->core.height = x->pixel_height;
}
static void
-EmacsFrameInitialize (Widget request, Widget new,
- ArgList dum1, Cardinal *dum2)
+EmacsFrameInitialize (request, new, dum1, dum2)
+ Widget request;
+ Widget new;
+ ArgList dum1;
+ Cardinal *dum2;
{
EmacsFrame ew = (EmacsFrame)new;
static void
-EmacsFrameRealize (Widget widget, XtValueMask *mask,
- XSetWindowAttributes *attrs)
+EmacsFrameRealize (widget, mask, attrs)
+ Widget widget;
+ XtValueMask *mask;
+ XSetWindowAttributes *attrs;
{
EmacsFrame ew = (EmacsFrame)widget;
update_wm_hints (ew);
}
-extern void free_frame_faces (struct frame *);
+extern void free_frame_faces (/* struct frame * */);
static void
-EmacsFrameDestroy (Widget widget)
+EmacsFrameDestroy (widget)
+ Widget widget;
{
EmacsFrame ew = (EmacsFrame) widget;
struct frame* s = ew->emacs_frame.frame;
}
void
-EmacsFrameResize (Widget widget)
+EmacsFrameResize (widget)
+ Widget widget;
{
EmacsFrame ew = (EmacsFrame)widget;
struct frame *f = ew->emacs_frame.frame;
}
static Boolean
-EmacsFrameSetValues (Widget cur_widget, Widget req_widget, Widget new_widget,
- ArgList dum1, Cardinal *dum2)
+EmacsFrameSetValues (cur_widget, req_widget, new_widget, dum1, dum2)
+ Widget cur_widget;
+ Widget req_widget;
+ Widget new_widget;
+ ArgList dum1;
+ Cardinal *dum2;
{
EmacsFrame cur = (EmacsFrame)cur_widget;
EmacsFrame new = (EmacsFrame)new_widget;
}
static XtGeometryResult
-EmacsFrameQueryGeometry (Widget widget, XtWidgetGeometry* request,
- XtWidgetGeometry* result)
+EmacsFrameQueryGeometry (widget, request, result)
+ Widget widget;
+ XtWidgetGeometry* request;
+ XtWidgetGeometry* result;
{
EmacsFrame ew = (EmacsFrame)widget;
it to make the focus handlers work??
*/
static void
-key_press (Widget w, XEvent* event, String *params, Cardinal *n_params)
+key_press (w, event, params, n_params)
+ Widget w;
+ XEvent* event;
+ String *params;
+ Cardinal *n_params;
{
}
static void
-emacs_frame_focus_handler (Widget w, XEvent *event, String *params,
- Cardinal *n_params)
+emacs_frame_focus_handler (w, event, params, n_params)
+ Widget w;
+ XEvent *event;
+ String *params;
+ Cardinal *n_params;
{
emacs_Xt_focus_event_handler (event, 0);
}
/* Special entrypoints */
void
-EmacsFrameSetCharSize (Widget widget, int columns, int rows)
+EmacsFrameSetCharSize (widget, columns, rows)
+ Widget widget;
+ int columns;
+ int rows;
{
EmacsFrame ew = (EmacsFrame) widget;
Dimension pixel_width, pixel_height, granted_width, granted_height;