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
This commit is contained in:
Sven Neumann 2008-03-27 12:22:23 +00:00 committed by Sven Neumann
parent f98c737094
commit ded9a6c3df
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -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