VTE library fixes

pull/10/head
parent 322f795920
commit 80abe8a3a7

@ -41,10 +41,8 @@ ${GTK_LIBRARIES}
ublsettings ublsettings
pthread) pthread)
if (VTE291)
list(APPEND LIBRARIES ${VTE291_LIBRARIES})
add_definitions(-DVTE_INCLUDE) add_definitions(-DVTE_INCLUDE)
endif() list(APPEND LIBRARIES ${VTE291_LIBRARIES})
if (WEBKIT_LIBRARIES_FOUND) if (WEBKIT_LIBRARIES_FOUND)
list(APPEND LIBRARIES ${WEBKIT_LIBRARIES}) list(APPEND LIBRARIES ${WEBKIT_LIBRARIES})

@ -5,7 +5,6 @@
static render_data render; static render_data render;
// vte section // vte section
#ifdef VTE_INCLUDE
static void child_ready(VteTerminal *terminal, GPid pid, GError *error, gpointer user_data) static void child_ready(VteTerminal *terminal, GPid pid, GError *error, gpointer user_data)
{ {
@ -70,7 +69,7 @@ void yon_terminal_integrated_start(GtkWidget *terminal, char* command, void *end
vte_terminal_set_size(VTE_TERMINAL(terminal),10,15); vte_terminal_set_size(VTE_TERMINAL(terminal),10,15);
VtePty *pty = vte_pty_new_sync(VTE_PTY_DEFAULT,NULL,NULL); VtePty *pty = vte_pty_new_sync(VTE_PTY_DEFAULT,NULL,NULL);
vte_terminal_set_pty(VTE_TERMINAL(terminal),pty); vte_terminal_set_pty(VTE_TERMINAL(terminal),pty);
char *install_command=yon_char_unite("clear;tput cup 0 0 && tput ed; ",command," ; sleep 5; stty -echo; unset PS1","\n",NULL); char *install_command=yon_char_unite("clear;tput cup 0 0 && tput ed && ",command," ; sleep 5; stty -echo; unset PS1","\n",NULL);
if(endwork_function) if(endwork_function)
g_signal_connect(G_OBJECT(terminal), "child-exited", G_CALLBACK(endwork_function), endwork_function_argument); g_signal_connect(G_OBJECT(terminal), "child-exited", G_CALLBACK(endwork_function), endwork_function_argument);
vte_terminal_spawn_async(VTE_TERMINAL(terminal), vte_terminal_spawn_async(VTE_TERMINAL(terminal),
@ -101,7 +100,6 @@ void yon_terminal_integrated_start(GtkWidget *terminal, char* command, void *end
vte_terminal_set_scroll_on_keystroke(VTE_TERMINAL(terminal), TRUE); vte_terminal_set_scroll_on_keystroke(VTE_TERMINAL(terminal), TRUE);
gtk_widget_show_all(terminal); gtk_widget_show_all(terminal);
} }
#endif
// Window config section // Window config section
#define check_window_config_setup if(__yon_window_config_target_window) #define check_window_config_setup if(__yon_window_config_target_window)

Loading…
Cancel
Save