void dlg_run_done (WDialog * h) { top_dlg = g_list_remove (top_dlg, h); if (h->state == DLG_CLOSED) { send_message (h, h->current->data, MSG_END, 0, NULL); if (!h->modal) dialog_switch_remove (h); } }
void dlg_run_done (WDialog * h) { top_dlg = g_list_remove (top_dlg, h); if (widget_get_state (WIDGET (h), WST_CLOSED)) { send_message (h, h->current == NULL ? NULL : WIDGET (h->current->data), MSG_END, 0, NULL); if (!widget_get_state (WIDGET (h), WST_MODAL)) dialog_switch_remove (h); } }
void dlg_run_done (Dlg_head * h) { top_dlg = g_list_remove (top_dlg, h); if (h->state == DLG_CLOSED) { h->callback (h, (Widget *) h->current->data, DLG_END, 0, NULL); if (!h->modal) dialog_switch_remove (h); } }