From c2344d66bb23a128e27d451ddfff397c00dbe658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Thu, 27 Apr 2006 17:54:02 +0000 Subject: [PATCH] removed some compiler warnings git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@272 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- src/vte.c | 12 +++++++----- src/vte.h | 2 -- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vte.c b/src/vte.c index 6067775e..3b41806f 100644 --- a/src/vte.c +++ b/src/vte.c @@ -46,9 +46,11 @@ static struct vte_funcs *vf; #define VTE_TERMINAL(obj) (GTK_CHECK_CAST((obj), VTE_TYPE_TERMINAL, VteTerminal)) #define VTE_TYPE_TERMINAL (vf->vte_terminal_get_type()) +static void vte_start(GtkWidget *widget); + /* taken from anjuta, thanks */ -gchar **vte_get_child_environment(GtkWidget *term) +static gchar **vte_get_child_environment(void) { // code from gnome-terminal, sort of. gchar **p; @@ -149,7 +151,7 @@ void vte_init(void) //g_signal_connect(G_OBJECT(vte), "drag-data-received", G_CALLBACK(vte_drag_data_received), NULL); //g_signal_connect(G_OBJECT(vte), "drag-drop", G_CALLBACK(vte_drag_drop), NULL); - vte_start(vte, NULL); + vte_start(vte); gtk_widget_show_all(frame); gtk_notebook_insert_page(GTK_NOTEBOOK(msgwindow.notebook), frame, gtk_label_new(_("Terminal")), MSG_VTE); @@ -191,7 +193,7 @@ gboolean vte_keypress(GtkWidget *widget, GdkEventKey *event, gpointer data) { kill(pid, SIGINT); pid = 0; - vte_start(widget, NULL); + vte_start(widget); return TRUE; } } @@ -199,7 +201,7 @@ gboolean vte_keypress(GtkWidget *widget, GdkEventKey *event, gpointer data) } -void vte_start(GtkWidget *widget, gpointer data) +static void vte_start(GtkWidget *widget) { VteTerminal *vte = VTE_TERMINAL(widget); struct passwd *pw; @@ -219,7 +221,7 @@ void vte_start(GtkWidget *widget, gpointer data) dir = "/"; } - env = vte_get_child_environment(app->window); + env = vte_get_child_environment(); pid = vf->vte_terminal_fork_command(VTE_TERMINAL(vte), shell, NULL, env, dir, TRUE, TRUE, TRUE); g_strfreev(env); } diff --git a/src/vte.h b/src/vte.h index 5c2f9fc1..57f0fd31 100644 --- a/src/vte.h +++ b/src/vte.h @@ -34,8 +34,6 @@ void vte_init(void); gboolean vte_keypress(GtkWidget *widget, GdkEventKey *event, gpointer data); -void vte_start(GtkWidget *widget, gpointer data); - void vte_register_symbols(GModule *module); void vte_close(void);