mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
WCheck, WRadio: send MSG_MOTIFY without parameter.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
4e74d7d255
commit
e0c02c9c77
@ -75,7 +75,7 @@ check_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d
|
|||||||
return MSG_NOT_HANDLED;
|
return MSG_NOT_HANDLED;
|
||||||
c->state = !c->state;
|
c->state = !c->state;
|
||||||
widget_redraw (w);
|
widget_redraw (w);
|
||||||
send_message (w->owner, w, MSG_NOTIFY, (int) MSG_KEY, NULL);
|
send_message (w->owner, w, MSG_NOTIFY, 0, NULL);
|
||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
|
|
||||||
case MSG_CURSOR:
|
case MSG_CURSOR:
|
||||||
|
@ -84,7 +84,7 @@ radio_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d
|
|||||||
case ' ':
|
case ' ':
|
||||||
r->sel = r->pos;
|
r->sel = r->pos;
|
||||||
widget_set_state (w, WST_FOCUSED, TRUE); /* Also draws the widget. */
|
widget_set_state (w, WST_FOCUSED, TRUE); /* Also draws the widget. */
|
||||||
send_message (w->owner, w, MSG_NOTIFY, (int) MSG_KEY, NULL);
|
send_message (w->owner, w, MSG_NOTIFY, 0, NULL);
|
||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
|
|
||||||
case KEY_UP:
|
case KEY_UP:
|
||||||
|
@ -130,7 +130,7 @@ configure_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, voi
|
|||||||
{
|
{
|
||||||
case MSG_NOTIFY:
|
case MSG_NOTIFY:
|
||||||
/* message from "Single press" checkbutton */
|
/* message from "Single press" checkbutton */
|
||||||
if (sender != NULL && sender->id == configure_old_esc_mode_id && parm == (int) MSG_KEY)
|
if (sender != NULL && sender->id == configure_old_esc_mode_id)
|
||||||
{
|
{
|
||||||
const gboolean not_single = !CHECK (sender)->state;
|
const gboolean not_single = !CHECK (sender)->state;
|
||||||
Widget *ww;
|
Widget *ww;
|
||||||
@ -279,7 +279,7 @@ panel_listing_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm,
|
|||||||
switch (msg)
|
switch (msg)
|
||||||
{
|
{
|
||||||
case MSG_NOTIFY:
|
case MSG_NOTIFY:
|
||||||
if (sender != NULL && sender->id == panel_listing_types_id && parm == (int) MSG_KEY)
|
if (sender != NULL && sender->id == panel_listing_types_id)
|
||||||
{
|
{
|
||||||
WCheck *ch;
|
WCheck *ch;
|
||||||
WInput *in1, *in2, *in3;
|
WInput *in1, *in2, *in3;
|
||||||
@ -299,7 +299,7 @@ panel_listing_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm,
|
|||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sender != NULL && sender->id == mini_user_status_id && parm == (int) MSG_KEY)
|
if (sender != NULL && sender->id == mini_user_status_id)
|
||||||
{
|
{
|
||||||
WInput *in;
|
WInput *in;
|
||||||
|
|
||||||
@ -401,7 +401,7 @@ confvfs_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void
|
|||||||
{
|
{
|
||||||
case MSG_NOTIFY:
|
case MSG_NOTIFY:
|
||||||
/* message from "Always use ftp proxy" checkbutton */
|
/* message from "Always use ftp proxy" checkbutton */
|
||||||
if (sender != NULL && sender->id == ftpfs_always_use_proxy_id && parm == (int) MSG_KEY)
|
if (sender != NULL && sender->id == ftpfs_always_use_proxy_id)
|
||||||
{
|
{
|
||||||
const gboolean not_use = !CHECK (sender)->state;
|
const gboolean not_use = !CHECK (sender)->state;
|
||||||
Widget *wi;
|
Widget *wi;
|
||||||
|
@ -230,7 +230,7 @@ chmod_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d
|
|||||||
if (sender == WIDGET (check_perm[i].check))
|
if (sender == WIDGET (check_perm[i].check))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (i < check_perm_num && parm == (int) MSG_KEY)
|
if (i < check_perm_num)
|
||||||
{
|
{
|
||||||
char buffer[BUF_TINY];
|
char buffer[BUF_TINY];
|
||||||
|
|
||||||
|
@ -370,7 +370,7 @@ layout_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *
|
|||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
|
|
||||||
case MSG_NOTIFY:
|
case MSG_NOTIFY:
|
||||||
if (sender == WIDGET (radio_widget) && parm == (int) MSG_KEY)
|
if (sender == WIDGET (radio_widget))
|
||||||
{
|
{
|
||||||
if (panels_layout.horizontal_split != radio_widget->sel)
|
if (panels_layout.horizontal_split != radio_widget->sel)
|
||||||
{
|
{
|
||||||
@ -404,7 +404,7 @@ layout_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *
|
|||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sender == WIDGET (check_options[0].widget) && parm == (int) MSG_KEY)
|
if (sender == WIDGET (check_options[0].widget))
|
||||||
{
|
{
|
||||||
int eq;
|
int eq;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user