diff options
author | Wouter Van Rooy <wouter.van.rooy@vasco.com> | 2012-10-09 09:31:19 +0200 |
---|---|---|
committer | Wouter Van Rooy <wouter.van.rooy@vasco.com> | 2012-10-09 09:31:19 +0200 |
commit | 5e010e3e456009e78d8b6301bc6ec468c2bdec62 (patch) | |
tree | 7bb1f99e9ccbd39f5cd528c488395064fd800ca6 | |
parent | 4594bb8f5b4c7a091b952ca28c628966b153d590 (diff) |
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.
-rw-r--r-- | svte.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |