[gimp] gtk_window_present() the toplevel, not the shell



commit f7f58d57be3cf3a8705a3d6304765951080fce33
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 25 22:01:56 2009 +0200

    gtk_window_present() the toplevel, not the shell

 app/display/gimpdisplayshell-dnd.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-dnd.c b/app/display/gimpdisplayshell-dnd.c
index 7efcf58..bc8fdbe 100644
--- a/app/display/gimpdisplayshell-dnd.c
+++ b/app/display/gimpdisplayshell-dnd.c
@@ -182,7 +182,9 @@ static void
 gimp_display_shell_dnd_flush (GimpDisplayShell *shell,
                               GimpImage        *image)
 {
-  gtk_window_present (GTK_WINDOW (shell));
+  GtkWidget *toplevel = gtk_widget_get_toplevel (GTK_WIDGET (shell));
+
+  gtk_window_present (GTK_WINDOW (toplevel));
 
   gimp_image_flush (image);
 



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