Kaydet (Commit) 650b5ae8 authored tarafından Nick Treleaven's avatar Nick Treleaven

Fix some more wrong uses of vte_info.load_vte instead of

vte_info.have_vte.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5471 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst d65d3adc
......@@ -4,6 +4,9 @@
Fix segfaults when using 'Send Selection to Terminal' and the VTE
is not loaded, and when using Ctrl-A after enabling the 'Load VTE'
pref (patch by Dimitar Zhekov, thanks).
* src/build.c, src/keyfile.c:
Fix some more wrong uses of vte_info.load_vte instead of
vte_info.have_vte.
2010-12-06 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
......@@ -814,7 +814,7 @@ static gchar *prepare_run_script(GeanyDocument *doc, gchar **vte_cmd_nonscript,
}
#ifdef HAVE_VTE
if (vte_info.load_vte && vc != NULL && vc->run_in_vte)
if (vte_info.have_vte && vc->run_in_vte)
{
if (vc->skip_run_script)
{
......@@ -866,7 +866,7 @@ static GPid build_run_cmd(GeanyDocument *doc, gint cmdindex)
run_info[cmdindex].file_type_id = doc->file_type->id;
#ifdef HAVE_VTE
if (vte_info.load_vte && vc != NULL && vc->run_in_vte)
if (vte_info.have_vte && vc->run_in_vte)
{
gchar *vte_cmd;
......
......@@ -450,7 +450,7 @@ static void save_dialog_prefs(GKeyFile *config)
/* VTE */
#ifdef HAVE_VTE
g_key_file_set_boolean(config, "VTE", "load_vte", vte_info.load_vte);
if (vte_info.load_vte && vc != NULL)
if (vte_info.have_vte)
{
gchar *tmp_string;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment