Feature #2275 » 0070-gtk4-x-Drop-unused-meswin_dialog_popdown.patch
| client/gui-gtk-4.0/messagewin.c | ||
|---|---|---|
|
gui_dialog_show_all(pdialog->shell);
|
||
|
}
|
||
|
/************************************************************************//**
|
||
|
Closes a message window dialog.
|
||
|
****************************************************************************/
|
||
|
static void meswin_dialog_free(struct meswin_dialog *pdialog)
|
||
|
{
|
||
|
fc_assert_ret(NULL != pdialog);
|
||
|
gui_dialog_destroy(pdialog->shell);
|
||
|
fc_assert(NULL == pdialog->shell);
|
||
|
memset(pdialog, 0, sizeof(*pdialog));
|
||
|
}
|
||
|
/************************************************************************//**
|
||
|
Popup the dialog inside the main-window, and optionally raise it.
|
||
|
****************************************************************************/
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
/************************************************************************//**
|
||
|
Closes the message window dialog.
|
||
|
****************************************************************************/
|
||
|
void meswin_dialog_popdown(void)
|
||
|
{
|
||
|
if (NULL != meswin.shell) {
|
||
|
meswin_dialog_free(&meswin);
|
||
|
fc_assert(NULL == meswin.shell);
|
||
|
}
|
||
|
}
|
||
|
/************************************************************************//**
|
||
|
Return TRUE iff the message window is open.
|
||
|
****************************************************************************/
|
||
| client/gui-gtk-4.0/messagewin.h | ||
|---|---|---|
|
/* client */
|
||
|
#include "messagewin_g.h"
|
||
|
void meswin_dialog_popdown(void);
|
||
|
#endif /* FC__MESSAGEWIN_H */
|
||
|
#endif /* FC__MESSAGEWIN_H */
|
||
| client/gui-gtk-5.0/messagewin.c | ||
|---|---|---|
|
gui_dialog_show_all(pdialog->shell);
|
||
|
}
|
||
|
/************************************************************************//**
|
||
|
Closes a message window dialog.
|
||
|
****************************************************************************/
|
||
|
static void meswin_dialog_free(struct meswin_dialog *pdialog)
|
||
|
{
|
||
|
fc_assert_ret(NULL != pdialog);
|
||
|
gui_dialog_destroy(pdialog->shell);
|
||
|
fc_assert(NULL == pdialog->shell);
|
||
|
memset(pdialog, 0, sizeof(*pdialog));
|
||
|
}
|
||
|
/************************************************************************//**
|
||
|
Popup the dialog inside the main-window, and optionally raise it.
|
||
|
****************************************************************************/
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
/************************************************************************//**
|
||
|
Closes the message window dialog.
|
||
|
****************************************************************************/
|
||
|
void meswin_dialog_popdown(void)
|
||
|
{
|
||
|
if (NULL != meswin.shell) {
|
||
|
meswin_dialog_free(&meswin);
|
||
|
fc_assert(NULL == meswin.shell);
|
||
|
}
|
||
|
}
|
||
|
/************************************************************************//**
|
||
|
Return TRUE iff the message window is open.
|
||
|
****************************************************************************/
|
||
| client/gui-gtk-5.0/messagewin.h | ||
|---|---|---|
|
/* client */
|
||
|
#include "messagewin_g.h"
|
||
|
void meswin_dialog_popdown(void);
|
||
|
#endif /* FC__MESSAGEWIN_H */
|
||
|
#endif /* FC__MESSAGEWIN_H */
|
||