SF.net SVN: geany: [603] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Jul 22 11:10:36 UTC 2006


Revision: 603
Author:   eht16
Date:     2006-07-22 04:09:48 -0700 (Sat, 22 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/geany/?rev=603&view=rev

Log Message:
-----------
Fixed two issues when showing / hiding the sidebar.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/callbacks.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-07-22 02:07:30 UTC (rev 602)
+++ trunk/ChangeLog	2006-07-22 11:09:48 UTC (rev 603)
@@ -6,6 +6,7 @@
    Added Unicode BOM detection.
    Added "Reload as" menu item to force opening a file with a specified
    encoding(both were patches from Stefan Oltmanns).
+ * src/callbacks.c: Fixed two issues when showing / hiding the sidebar.
 
 
 2006-07-21  Nick Treleaven  <nick.treleaven at btinternet.com>

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2006-07-22 02:07:30 UTC (rev 602)
+++ trunk/src/callbacks.c	2006-07-22 11:09:48 UTC (rev 603)
@@ -1513,7 +1513,7 @@
 				case 4:
 				{
 					app->sidebar_visible = FALSE;
-					utils_treeviews_showhide(FALSE);
+					utils_treeviews_showhide(TRUE);
 					break;
 				}
 			}
@@ -1537,7 +1537,7 @@
 		case 1:
 		{
 			app->sidebar_visible = FALSE;
-			utils_treeviews_showhide(FALSE);
+			utils_treeviews_showhide(TRUE);
 			break;
 		}
 	}
@@ -2629,5 +2629,10 @@
 	if (app->ignore_callback) return;
 
 	app->sidebar_visible = ! app->sidebar_visible;
+	if (! app->sidebar_openfiles_visible && ! app->sidebar_symbol_visible)
+	{
+		app->sidebar_symbol_visible = TRUE;
+		app->sidebar_openfiles_visible = TRUE;
+	}
 	utils_treeviews_showhide(TRUE);
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list