mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-15 18:20:20 +00:00
Change preferences sub-dialogs to be modal
This solves the issue where the parent dialog is closed and then the child dialog is used. This is however only a partial fix: - Many other dialogs throughout the codebase do not currently have parent windows and need to be refactored. - Not all window managers respect modal so users can still trigger bugs. We can be more defensive against this but it requires more refactoring. Closes #2686
This commit is contained in:
@@ -282,7 +282,7 @@ pevent_save_cb (GtkWidget * wid, void *data)
|
||||
{
|
||||
if (data)
|
||||
{
|
||||
gtkutil_file_req (_("Print Texts File"), pevent_save_req_cb, NULL,
|
||||
gtkutil_file_req (NULL, _("Print Texts File"), pevent_save_req_cb, NULL,
|
||||
NULL, NULL, FRF_WRITE);
|
||||
return;
|
||||
}
|
||||
@@ -304,7 +304,7 @@ pevent_load_req_cb (void *arg1, char *file)
|
||||
static void
|
||||
pevent_load_cb (GtkWidget * wid, void *data)
|
||||
{
|
||||
gtkutil_file_req (_("Print Texts File"), pevent_load_req_cb, NULL, NULL, NULL, 0);
|
||||
gtkutil_file_req (NULL, _("Print Texts File"), pevent_load_req_cb, NULL, NULL, NULL, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user