mirror of https://github.com/GNOME/gimp.git
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:
parent
f98c737094
commit
ded9a6c3df
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue