SF.net SVN: geany: [514] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Sat Jul 1 10:44:23 UTC 2006


Revision: 514
Author:   ntrel
Date:     2006-07-01 03:44:15 -0700 (Sat, 01 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/geany/?rev=514&view=rev

Log Message:
-----------
Prevent a segfault if the VTE has not been loaded

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/callbacks.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-07-01 10:22:54 UTC (rev 513)
+++ trunk/ChangeLog	2006-07-01 10:44:15 UTC (rev 514)
@@ -2,6 +2,7 @@
 
  * src/notebook.c: Don't prevent notebook tab focus because this
                    disables the notebook arrows.
+ * src/callbacks.c: Prevent a segfault if the VTE has not been loaded.
 
 
 2006-06-30  Enrico Tröger  <enrico.troeger at uvena.de>

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2006-07-01 10:22:54 UTC (rev 513)
+++ trunk/src/callbacks.c	2006-07-01 10:44:15 UTC (rev 514)
@@ -769,7 +769,7 @@
 		gchar *path;
 		gchar *cmd;
 
-		if (doc_list[idx].file_name != NULL)
+		if (app->have_vte && doc_list[idx].file_name != NULL)
 		{
 			path = g_path_get_dirname(doc_list[idx].file_name);
 			cmd = g_strconcat("cd ", path, "\n", "clear\n", NULL);


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