[anjuta] anjuta: Make sure the starter widget is visible on startup



commit 925152143f1ab7edf0bd960cfd8e2e1627b72c2b
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Thu Jan 17 22:13:10 2013 +0100

    anjuta: Make sure the starter widget is visible on startup
    
    If Anjuta is closed with some files (not a project) open and the option
    "Do not load files on startup" checked, when restarted the main window is empty.
    It should normally display the stater widget but this widget is hidden.

 src/anjuta-window.c |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/src/anjuta-window.c b/src/anjuta-window.c
index b559bf2..f736e5b 100644
--- a/src/anjuta-window.c
+++ b/src/anjuta-window.c
@@ -217,10 +217,6 @@ anjuta_window_maximize_widget (AnjutaShell *shell,
 		if (value == NULL)
 			continue;
 
-		/* If it's the widget requesting maximization then continue */
-		if(!g_strcmp0((gchar*)key, widget_name))
-			continue;
-
 		/* Widget assertions */
 		widget = GTK_WIDGET (value);
 		if(!GTK_IS_WIDGET (widget))
@@ -231,8 +227,17 @@ anjuta_window_maximize_widget (AnjutaShell *shell,
 		if(dock_item == NULL || !GDL_IS_DOCK_ITEM (dock_item))
 			continue;
 
-		/* Hide the item */
-		gdl_dock_item_hide_item (GDL_DOCK_ITEM (dock_item));
+		if(!g_strcmp0((gchar*)key, widget_name))
+		{
+			/* If it's the widget requesting maximization then make sure the 
+			 * widget is visible*/
+			gdl_dock_item_show_item (GDL_DOCK_ITEM (dock_item));
+		}
+		else
+		{
+			/* Hide the other item */
+			gdl_dock_item_hide_item (GDL_DOCK_ITEM (dock_item));
+		}
 	}
 }
 



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