[gimp] gimp_display_shell_fill_idle() present the toplevel not the shell



commit bcef4f275dee81e44bc19f204ca81a6666561f9f
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 25 17:49:50 2009 +0200

    gimp_display_shell_fill_idle() present the toplevel not the shell
    
    Not sure if this one should go to the image window...

 app/display/gimpdisplayshell.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index 1aa712e..1eccd21 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -1275,12 +1275,13 @@ gimp_display_shell_empty (GimpDisplayShell *shell)
 static gboolean
 gimp_display_shell_fill_idle (GimpDisplayShell *shell)
 {
+  GtkWidget *toplevel = gtk_widget_get_toplevel (GTK_WIDGET (shell));
+
   shell->fill_idle_id = 0;
 
   gimp_display_shell_scale_shrink_wrap (shell, TRUE);
 
-  /* FIXME image window */
-  gtk_window_present (GTK_WINDOW (shell));
+  gtk_window_present (GTK_WINDOW (toplevel));
 
   return FALSE;
 }



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