[anjuta] glade: Don't show any windows before the main window is shown



commit c9ce8f09a67f9480d046250ad8e677d756664198
Author: Johannes Schmid <jhs gnome org>
Date:   Fri Feb 18 23:27:03 2011 +0100

    glade: Don't show any windows before the main window is shown
    
    This should fix bgo#642647

 plugins/glade/plugin.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/glade/plugin.c b/plugins/glade/plugin.c
index d5701f1..fc1ca5e 100644
--- a/plugins/glade/plugin.c
+++ b/plugins/glade/plugin.c
@@ -603,7 +603,9 @@ ifile_open (IAnjutaFile *ifile, GFile* file, GError **err)
 		GObject *glade_obj = G_OBJECT (glade_obj_node->data);
 		if (GTK_IS_WINDOW (glade_obj))
 		{
-			glade_project_selection_set (project, glade_obj, TRUE);
+			/* Workaround for bgo#642647 */
+			if (gtk_widget_get_visible (GTK_WIDGET (anjuta_plugin_get_shell (ANJUTA_PLUGIN (ifile)))))
+				glade_project_selection_set (project, glade_obj, TRUE);
 			break;
 		}
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]