[gimp/gimp-2-6] Bug 565459 - newly opened images are put into the background
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-6] Bug 565459 - newly opened images are put into the background
- Date: Wed, 23 Jun 2010 18:21:47 +0000 (UTC)
commit 3222c3df322b8f892f6ae3758ba7d7e9e996c8fb
Author: Martin Nordholts <martinn src gnome org>
Date: Wed Jun 23 20:17:37 2010 +0200
Bug 565459 - newly opened images are put into the background
When we are going to open new image windows, unset the transient
window. We don't need it since we will use gdk_window_raise() to
keep the dialog on top. And if we don't do it, then the dialog
will pull the image window it was invoked from on top of all the
new opened image windows, and we don't want that to happen.
Patch heavily inspiried by hack from Massimo Valentini.
app/dialogs/file-open-dialog.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/app/dialogs/file-open-dialog.c b/app/dialogs/file-open-dialog.c
index 25f666c..ddaefe9 100644
--- a/app/dialogs/file-open-dialog.c
+++ b/app/dialogs/file-open-dialog.c
@@ -124,6 +124,15 @@ file_open_dialog_response (GtkWidget *open_dialog,
gimp_file_dialog_set_sensitive (dialog, FALSE);
+ /* When we are going to open new image windows, unset the transient
+ * window. We don't need it since we will use gdk_window_raise() to
+ * keep the dialog on top. And if we don't do it, then the dialog
+ * will pull the image window it was invoked from on top of all the
+ * new opened image windows, and we don't want that to happen.
+ */
+ if (! dialog->open_as_layers)
+ gtk_window_set_transient_for (GTK_WINDOW (open_dialog), NULL);
+
for (list = uris; list; list = g_slist_next (list))
{
gchar *filename = file_utils_filename_from_uri (list->data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]