mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Move winch_pending member from WDialog to WGroup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
e4e0070db5
commit
d575c7058b
@ -119,7 +119,7 @@ dialog_switch_resize (WDialog * d)
|
|||||||
if (widget_get_state (WIDGET (d), WST_ACTIVE))
|
if (widget_get_state (WIDGET (d), WST_ACTIVE))
|
||||||
send_message (d, NULL, MSG_RESIZE, 0, NULL);
|
send_message (d, NULL, MSG_RESIZE, 0, NULL);
|
||||||
else
|
else
|
||||||
d->winch_pending = TRUE;
|
GROUP (d)->winch_pending = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
@ -293,7 +293,7 @@ dialog_switch_got_winch (void)
|
|||||||
|
|
||||||
for (dlg = mc_dialogs; dlg != NULL; dlg = g_list_next (dlg))
|
for (dlg = mc_dialogs; dlg != NULL; dlg = g_list_next (dlg))
|
||||||
if (dlg != mc_current)
|
if (dlg != mc_current)
|
||||||
DIALOG (dlg->data)->winch_pending = TRUE;
|
GROUP (dlg->data)->winch_pending = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
@ -1068,12 +1068,14 @@ update_cursor (WDialog * h)
|
|||||||
void
|
void
|
||||||
dlg_draw (WDialog * h)
|
dlg_draw (WDialog * h)
|
||||||
{
|
{
|
||||||
|
WGroup *g = GROUP (h);
|
||||||
|
|
||||||
if (!widget_get_state (WIDGET (h), WST_ACTIVE))
|
if (!widget_get_state (WIDGET (h), WST_ACTIVE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (h->winch_pending)
|
if (g->winch_pending)
|
||||||
{
|
{
|
||||||
h->winch_pending = FALSE;
|
g->winch_pending = FALSE;
|
||||||
send_message (h, NULL, MSG_RESIZE, 0, NULL);
|
send_message (h, NULL, MSG_RESIZE, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,6 @@ struct WDialog
|
|||||||
int ret_value; /* Result of dlg_run() */
|
int ret_value; /* Result of dlg_run() */
|
||||||
|
|
||||||
/* Internal flags */
|
/* Internal flags */
|
||||||
gboolean winch_pending; /* SIGWINCH signal has been got. Resize dialog after rise */
|
|
||||||
int mouse_status; /* For the autorepeat status of the mouse */
|
int mouse_status; /* For the autorepeat status of the mouse */
|
||||||
|
|
||||||
/* Internal variables */
|
/* Internal variables */
|
||||||
|
@ -29,6 +29,8 @@ struct WGroup
|
|||||||
/* Group members */
|
/* Group members */
|
||||||
GList *widgets; /* widgets list */
|
GList *widgets; /* widgets list */
|
||||||
GList *current; /* Currently active widget */
|
GList *current; /* Currently active widget */
|
||||||
|
|
||||||
|
gboolean winch_pending; /* SIGWINCH signal has been got. Resize group after rise */
|
||||||
};
|
};
|
||||||
|
|
||||||
/*** global variables defined in .c file *********************************************************/
|
/*** global variables defined in .c file *********************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user