fixed control_stdin to recognize all input
authorRobert Manea <gotmor@gmail.com>
Sun, 17 May 2009 22:26:30 +0000 (00:26 +0200)
committerRobert Manea <gotmor@gmail.com>
Sun, 17 May 2009 22:26:30 +0000 (00:26 +0200)
uzbl.c
uzbl.h

diff --git a/uzbl.c b/uzbl.c
index 1b8e8bc..f3bb976 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -456,7 +456,7 @@ file_exists (const char * filename) {
        return (access(filename, F_OK) == 0);
 }
 
-void
+static void
 set_insert_mode(WebKitWebView *page, const gchar *param) {
     (void)page;
     (void)param;
@@ -1164,15 +1164,11 @@ init_fifo(gchar *dir) { /* return dir or, on error, free dir and return NULL */
 
 static gboolean
 control_stdin(GIOChannel *gio, GIOCondition condition) {
+    (void) condition;
     gchar *ctl_line = NULL;
     gsize ctl_line_len = 0;
     GIOStatus ret;
 
-    if (condition & G_IO_HUP) {
-        ret = g_io_channel_shutdown (gio, FALSE, NULL);
-        return FALSE;
-    }
-
     ret = g_io_channel_read_line(gio, &ctl_line, &ctl_line_len, NULL, NULL);
     if ( (ret == G_IO_STATUS_ERROR) || (ret == G_IO_STATUS_EOF) )
         return FALSE;
diff --git a/uzbl.h b/uzbl.h
index 49a275d..539ab98 100644 (file)
--- a/uzbl.h
+++ b/uzbl.h
@@ -257,7 +257,7 @@ new_action(const gchar *name, const gchar *param);
 static bool
 file_exists (const char * filename);
 
-void
+static void
 set_insert_mode(WebKitWebView *page, const gchar *param);
 
 static void