Initialise the VTE pid var with 0 just for safety.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2849 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-08-01 15:55:20 +00:00
parent bbfd7a1ee8
commit 58f349944e
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,8 @@
* src/callbacks.c, src/vte.c, src/vte.h:
Revert r2843 because it messed it Ctrl-C/SIGINT in the VTE.
* src/vte.c:
Initialise the VTE pid var with 0 just for safety.
2008-07-30 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -49,7 +49,7 @@ VteInfo vte_info;
VteConfig *vc;
extern gchar **environ;
static pid_t pid;
static pid_t pid = 0;
static gboolean clean = TRUE;
static GModule *module = NULL;
static struct VteFunctions *vf;
@ -441,6 +441,8 @@ void vte_apply_user_settings(void)
if (! ui_prefs.msgwindow_visible)
return;
geany_debug("VTE widget realized"); /* temporary :) */
vf->vte_terminal_set_scrollback_lines(VTE_TERMINAL(vc->vte), vc->scrollback_lines);
vf->vte_terminal_set_scroll_on_keystroke(VTE_TERMINAL(vc->vte), vc->scroll_on_key);
vf->vte_terminal_set_scroll_on_output(VTE_TERMINAL(vc->vte), vc->scroll_on_out);