Skip to content

Commit

Permalink
fixed control_stdin to recognize all input
Browse files Browse the repository at this point in the history
  • Loading branch information
robm committed May 17, 2009
1 parent 1443b92 commit 086501b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions uzbl.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion uzbl.h
Expand Up @@ -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
Expand Down

0 comments on commit 086501b

Please sign in to comment.