From 5e010e3e456009e78d8b6301bc6ec468c2bdec62 Mon Sep 17 00:00:00 2001 From: Wouter Van Rooy Date: Tue, 9 Oct 2012 09:31:19 +0200 Subject: GPid was not stored anywhere. GPid was a pointer but had no place to put the variable. Just declare the variable in the struct and pass the pointer to the function. --- svte.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svte.c') diff --git a/svte.c b/svte.c index e92a69e..c078478 100644 --- a/svte.c +++ b/svte.c @@ -33,7 +33,7 @@ typedef struct window { typedef struct term { GtkWidget *vte; GtkWidget *label; - GPid *pid; + GPid pid; struct window *w; } term; @@ -380,14 +380,14 @@ static void tab_new(struct window *w) { gtk_notebook_set_show_tabs(GTK_NOTEBOOK(w->notebook), FALSE); vte_terminal_fork_command_full(VTE_TERMINAL(t->vte), VTE_PTY_DEFAULT, NULL, - args, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, t->pid, NULL); + args, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &t->pid, NULL); tab_geometry_hints(t); } else { struct term *previous = get_nth_term(w, gtk_notebook_get_current_page(GTK_NOTEBOOK(w->notebook))); vte_terminal_fork_command_full(VTE_TERMINAL(t->vte), VTE_PTY_DEFAULT, tab_get_cwd(previous), - args, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, t->pid, NULL); + args, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &t->pid, NULL); gtk_notebook_set_show_tabs(GTK_NOTEBOOK(w->notebook), TRUE); } -- cgit v1.2.3