[gimp/gtk3-port: 393/454] app: use the passed parent's toplevel in gimp_color_dialog_new()



commit 8750718da22344474751a01fa4818616324c9a9b
Author: Michael Natterer <mitch gimp org>
Date:   Thu May 10 17:59:50 2018 +0200

    app: use the passed parent's toplevel in gimp_color_dialog_new()

 app/widgets/gimpcolordialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpcolordialog.c b/app/widgets/gimpcolordialog.c
index 152b587..9beff53 100644
--- a/app/widgets/gimpcolordialog.c
+++ b/app/widgets/gimpcolordialog.c
@@ -245,7 +245,7 @@ gimp_color_dialog_new (GimpViewable      *viewable,
                          "icon-name",      icon_name,
                          "description",    desc,
                          "context",        context,
-                         "parent",         parent,
+                         "parent",         gtk_widget_get_toplevel (parent),
                          "use-header-bar", use_header_bar,
                          NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]