Project

General

Profile

Bug #2498 » 0001-gtk4-x-Leave-closing-a-gui_dialog-window-to-its-resp.patch

Sweet Tea Dorminy, 11/22/2026 04:28 AM

View differences:

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;
}
/**********************************************************************//**
(2-2/2)