[gimp] app: fix marking file dialogs as transient if opened from context menu
- From: Nils Philippsen <nphilipp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix marking file dialogs as transient if opened from context menu
- Date: Wed, 14 Nov 2012 15:46:15 +0000 (UTC)
commit 1a4087bd5f1c79859fbfc417eff58f8e7783f335
Author: Nils Philippsen <nils redhat com>
Date: Wed Nov 14 16:42:05 2012 +0100
app: fix marking file dialogs as transient if opened from context menu
GimpDisplayShell isn't a GtkWindow (anymore), therefore use
gtk_widget_get_toplevel() to find the actual toplevel window.
app/actions/file-commands.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/actions/file-commands.c b/app/actions/file-commands.c
index cbf82de..fb7a86e 100644
--- a/app/actions/file-commands.c
+++ b/app/actions/file-commands.c
@@ -555,7 +555,7 @@ file_save_dialog_show (Gimp *gimp,
if (dialog)
{
gtk_window_set_transient_for (GTK_WINDOW (dialog),
- GTK_WINDOW (parent));
+ GTK_WINDOW (gtk_widget_get_toplevel (parent)));
g_object_set_data_full (G_OBJECT (image),
"gimp-file-save-dialog", dialog,
@@ -606,7 +606,7 @@ file_export_dialog_show (Gimp *gimp,
if (dialog)
{
gtk_window_set_transient_for (GTK_WINDOW (dialog),
- GTK_WINDOW (parent));
+ GTK_WINDOW (gtk_widget_get_toplevel (parent)));
g_object_set_data_full (G_OBJECT (image),
"gimp-file-export-dialog", dialog,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]