[gimp/metadata-browser] Bug 664885 - Open 'Document History' --> always a additional history tab appears
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] Bug 664885 - Open 'Document History' --> always a additional history tab appears
- Date: Wed, 12 Sep 2012 22:44:07 +0000 (UTC)
commit 12f4a404b0d3e6b4cd405cf4a16f08972acf707a
Author: Michael Natterer <mitch gimp org>
Date: Mon Jan 30 22:53:43 2012 +0100
Bug 664885 - Open 'Document History' --> always a additional history tab appears
In SWM, try to find an existing dialog in
gimp_single_window_strategy_create_dockable_dialog() before falling
back to creating a new one.
app/display/gimpsinglewindowstrategy.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpsinglewindowstrategy.c b/app/display/gimpsinglewindowstrategy.c
index fa7fd0a..785f230 100644
--- a/app/display/gimpsinglewindowstrategy.c
+++ b/app/display/gimpsinglewindowstrategy.c
@@ -109,6 +109,11 @@ gimp_single_window_strategy_create_dockable_dialog (GimpWindowStrategy *strategy
-1 /*index*/);
}
}
+ else if (gimp_dialog_factory_find_widget (factory, identifiers))
+ {
+ /* if the dialog is already open, simply raise it */
+ return gimp_dialog_factory_dialog_raise (factory, screen, identifiers, -1);
+ }
else
{
GtkWidget *dockbook;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]