[anjuta] anjuta: Fix closed dock windows which were kept hidden due to the latest changes in GDL



commit 755eb21d06901e751f90b430b7b52a4fd5f8ad78
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Tue Jul 24 19:53:18 2012 +0200

    anjuta: Fix closed dock windows which were kept hidden due to the latest changes in GDL

 src/anjuta-app.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/anjuta-app.c b/src/anjuta-app.c
index 97d44ed..faa421b 100644
--- a/src/anjuta-app.c
+++ b/src/anjuta-app.c
@@ -1304,16 +1304,16 @@ anjuta_app_present_widget (AnjutaShell *shell, GtkWidget *widget,
 
 	/* Hack to present the dock item if it's in a notebook dock item */
 	parent = gtk_widget_get_parent (GTK_WIDGET(dock_item) );
+	if (!GDL_DOCK_OBJECT_ATTACHED (dock_item))
+	{
+		gdl_dock_item_show_item (GDL_DOCK_ITEM (dock_item));
+	}
 	if (GTK_IS_NOTEBOOK (parent))
 	{
 		gint pagenum;
 		pagenum = gtk_notebook_page_num (GTK_NOTEBOOK (parent), GTK_WIDGET (dock_item));
 		gtk_notebook_set_current_page (GTK_NOTEBOOK (parent), pagenum);
 	}
-	else if (!GDL_DOCK_OBJECT_ATTACHED (dock_item))
-	{
-	    gdl_dock_item_show_item (GDL_DOCK_ITEM (dock_item));
-	}
 
 	/* FIXME: If the item is floating, present the window */
 	/* FIXME: There is no way to detect if a widget was floating before it was



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