[gthumb] browser: close the dialogs when the window is closed
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] browser: close the dialogs when the window is closed
- Date: Mon, 27 Jan 2020 17:14:28 +0000 (UTC)
commit 6c6a90c4432d1472e71fd668c7cf0cdf5c05bd8f
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Jan 27 11:00:39 2020 +0100
browser: close the dialogs when the window is closed
gthumb/gth-browser.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 876119e5..9afa367f 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -5250,6 +5250,8 @@ gth_browser_set_dialog (GthBrowser *browser,
const char *dialog_name,
GtkWidget *dialog)
{
+ if (dialog != NULL)
+ gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
g_hash_table_insert (browser->priv->named_dialogs, (gpointer) dialog_name, dialog);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]