Commit ded9a6c3 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

don't flush if there's no image. (gimp_display_shell_dnd_flush): use

2008-03-27  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-dnd.c
	(gimp_display_shell_drop_uri_list): don't flush if there's no image.
	(gimp_display_shell_dnd_flush): use gtk_window_present() instead of
	gdk_window_focus().

svn path=/trunk/; revision=25261
parent f98c7370
2008-03-27 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-dnd.c
(gimp_display_shell_drop_uri_list): don't flush if there's no image.
(gimp_display_shell_dnd_flush): use gtk_window_present() instead of
gdk_window_focus().
2008-03-27 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.c: use a button with icon for the
......
......@@ -161,11 +161,7 @@ static void
gimp_display_shell_dnd_flush (GimpDisplayShell *shell,
GimpImage *image)
{
if (GTK_WIDGET_DRAWABLE (shell))
{
gdk_window_focus (GTK_WIDGET (shell)->window,
gtk_get_current_event_time ());
}
gtk_window_present (GTK_WINDOW (shell));
gimp_image_flush (image);
......@@ -484,7 +480,8 @@ gimp_display_shell_drop_uri_list (GtkWidget *widget,
}
}
gimp_display_shell_dnd_flush (shell, image);
if (image)
gimp_display_shell_dnd_flush (shell, image);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment