[geany/geany-plugins] f57314: projectorganizer: Load project even if sidebar isn't realized

Jiří Techet git-noreply at xxxxx
Tue Jul 14 14:12:26 UTC 2015


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Tue, 14 Jul 2015 14:12:26 UTC
Commit:      f573148b9f387a571a9879202fd6acba8b7516ff
             https://github.com/geany/geany-plugins/commit/f573148b9f387a571a9879202fd6acba8b7516ff

Log Message:
-----------
projectorganizer: Load project even if sidebar isn't realized

Project organizer's sidebar tab isn't realized also when the initial
sidebar tab differs from the projectorganizer tab in which case the tree
isn't created until we switch to the projectorganizer tab.

This in general isn't a problem but some functions like "find project
file" rely on the existence of the tree model and don't work without
it (which happens before the first switch to the project organizer tab).


Modified Paths:
--------------
    projectorganizer/src/prjorg-sidebar.c

Modified: projectorganizer/src/prjorg-sidebar.c
7 lines changed, 3 insertions(+), 4 deletions(-)
===================================================================
@@ -1220,11 +1220,10 @@ void prjorg_sidebar_update(gboolean reload)
 {
 	if (reload)
 	{
+		load_project();
 		/* we get color information only after the sidebar is realized -
-		 * postpone reload if this is not the case yet */
-		if (gtk_widget_get_realized(s_toolbar))
-			load_project();
-		else
+		 * perform reload later if this is not the case yet */
+		if (!gtk_widget_get_realized(s_toolbar))
 			s_pending_reload = TRUE;
 	}
 	if (s_follow_editor)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list