SF.net SVN: geany: [1780] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Aug 9 16:18:03 UTC 2007


Revision: 1780
          http://geany.svn.sourceforge.net/geany/?rev=1780&view=rev
Author:   ntrel
Date:     2007-08-09 09:18:02 -0700 (Thu, 09 Aug 2007)

Log Message:
-----------
Prevent warning when trying to focus non-existent VTE.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/keybindings.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-08-09 16:05:20 UTC (rev 1779)
+++ trunk/ChangeLog	2007-08-09 16:18:02 UTC (rev 1780)
@@ -11,6 +11,8 @@
  * data/autocomplete.conf:
    Add %cursor% for default 'else' completion.
    Add space before while for 'do' completion.
+ * src/keybindings.c:
+   Prevent warning when trying to focus non-existent VTE.
 
 
 2007-08-09  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c	2007-08-09 16:05:20 UTC (rev 1779)
+++ trunk/src/keybindings.c	2007-08-09 16:18:02 UTC (rev 1780)
@@ -979,6 +979,8 @@
 static void cb_func_switch_vte(G_GNUC_UNUSED guint key_id)
 {
 #ifdef HAVE_VTE
+	if (!vte_info.have_vte)
+		return;
 	msgwin_show_hide(TRUE);
 	/* the msgwin must be visible before we switch to the VTE page so that
 	 * the font settings are applied on realization */


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