* layout.c: Fix remaining callback calls.
* widget.c: Likewise.
Этот коммит содержится в:
родитель
13a02ef978
Коммит
86c2a91184
@ -1,5 +1,8 @@
|
||||
2003-09-07 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* layout.c: Fix remaining callback calls.
|
||||
* widget.c: Likewise.
|
||||
|
||||
* dlg.h: Use new types for dialog callbacks.
|
||||
(dlg_cb_fn): Swap msg and parm arguments for consistency with
|
||||
widget callbacks. Adjust all dependencies.
|
||||
|
@ -782,8 +782,8 @@ change_screen_size (void)
|
||||
setup_panels ();
|
||||
|
||||
/* Inform currently running dialog */
|
||||
(*current_dlg->callback) (current_dlg, current_dlg->current->dlg_id,
|
||||
DLG_RESIZE);
|
||||
(*current_dlg->callback) (current_dlg, DLG_RESIZE,
|
||||
current_dlg->current->dlg_id);
|
||||
|
||||
#ifdef RESIZABLE_MENUBAR
|
||||
menubar_arrange (the_menubar);
|
||||
|
12
src/widget.c
12
src/widget.c
@ -152,7 +152,7 @@ button_event (Gpm_Event *event, WButton *b)
|
||||
dlg_select_widget (h, b);
|
||||
if (event->type & GPM_UP){
|
||||
button_callback (b, WIDGET_KEY, ' ');
|
||||
(*h->callback) (h, ' ', DLG_POST_KEY);
|
||||
(*h->callback) (h, DLG_POST_KEY, ' ');
|
||||
return MOU_NORMAL;
|
||||
}
|
||||
}
|
||||
@ -273,7 +273,7 @@ radio_callback (WRadio *r, int Msg, int Par)
|
||||
switch (Par){
|
||||
case ' ':
|
||||
r->sel = r->pos;
|
||||
(*h->callback) (h, h->current->dlg_id, DLG_ACTION);
|
||||
(*h->callback) (h, DLG_ACTION, h->current->dlg_id);
|
||||
radio_callback (r, WIDGET_FOCUS, ' ');
|
||||
return 1;
|
||||
|
||||
@ -295,7 +295,7 @@ radio_callback (WRadio *r, int Msg, int Par)
|
||||
return 0;
|
||||
|
||||
case WIDGET_CURSOR:
|
||||
(*h->callback) (h, h->current->dlg_id, DLG_ACTION);
|
||||
(*h->callback) (h, DLG_ACTION, h->current->dlg_id);
|
||||
radio_callback (r, WIDGET_FOCUS, ' ');
|
||||
widget_move (&r->widget, r->pos, 1);
|
||||
break;
|
||||
@ -339,7 +339,7 @@ radio_event (Gpm_Event *event, WRadio *r)
|
||||
if (event->type & GPM_UP){
|
||||
radio_callback (r, WIDGET_KEY, ' ');
|
||||
radio_callback (r, WIDGET_FOCUS, 0);
|
||||
(*h->callback) (h, ' ', DLG_POST_KEY);
|
||||
(*h->callback) (h, DLG_POST_KEY, ' ');
|
||||
return MOU_NORMAL;
|
||||
}
|
||||
}
|
||||
@ -400,7 +400,7 @@ check_callback (WCheck *c, int Msg, int Par)
|
||||
break;
|
||||
c->state ^= C_BOOL;
|
||||
c->state ^= C_CHANGE;
|
||||
(*h->callback) (h, h->current->dlg_id, DLG_ACTION);
|
||||
(*h->callback) (h, DLG_ACTION, h->current->dlg_id);
|
||||
check_callback (c, WIDGET_FOCUS, ' ');
|
||||
return 1;
|
||||
|
||||
@ -435,7 +435,7 @@ check_event (Gpm_Event *event, WCheck *c)
|
||||
if (event->type & GPM_UP){
|
||||
check_callback (c, WIDGET_KEY, ' ');
|
||||
check_callback (c, WIDGET_FOCUS, 0);
|
||||
(*h->callback) (h, ' ', DLG_POST_KEY);
|
||||
(*h->callback) (h, DLG_POST_KEY, ' ');
|
||||
return MOU_NORMAL;
|
||||
}
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user