Bug #2498 » 0001-gtk4-x-Leave-closing-a-gui_dialog-window-to-its-resp.patch
| client/gui-gtk-4.0/gui_stuff.c | ||
|---|---|---|
|
{
|
||
|
struct gui_dialog *dlg = data;
|
||
|
/* emit response signal. */
|
||
|
/* Emit response signal. */
|
||
|
gui_dialog_response(dlg, GTK_RESPONSE_DELETE_EVENT);
|
||
|
/* do the destroy by default. */
|
||
|
return FALSE;
|
||
|
/* Never let gtk destroy the window. As with a tab, the response
|
||
|
* callback decides, and destroys the dialog with gui_dialog_destroy()
|
||
|
* so the owner's pointer is cleared. */
|
||
|
return TRUE;
|
||
|
}
|
||
|
/**********************************************************************//**
|
||
| client/gui-gtk-5.0/gui_stuff.c | ||
|---|---|---|
|
{
|
||
|
struct gui_dialog *dlg = data;
|
||
|
/* emit response signal. */
|
||
|
/* Emit response signal. */
|
||
|
gui_dialog_response(dlg, GTK_RESPONSE_DELETE_EVENT);
|
||
|
/* do the destroy by default. */
|
||
|
return FALSE;
|
||
|
/* Never let gtk destroy the window. As with a tab, the response
|
||
|
* callback decides, and destroys the dialog with gui_dialog_destroy()
|
||
|
* so the owner's pointer is cleared. */
|
||
|
return TRUE;
|
||
|
}
|
||
|
/**********************************************************************//**
|
||
- « Previous
- 1
- 2
- Next »