diff options
author | Mason Larobina <mason.larobina@gmail.com> | 2009-09-25 13:16:22 +0800 |
---|---|---|
committer | Mason Larobina <mason.larobina@gmail.com> | 2009-09-25 13:16:22 +0800 |
commit | 245196585a5034a70a70d7600218b33337b40663 (patch) | |
tree | 503b7a395c0760129e806aef5c1f196998edde4d | |
parent | ccdbf7650a19961338db00453e94dd10932158fc (diff) |
Whitespace cleanups in uzbl-core.{c,h}
-rw-r--r-- | uzbl-core.c | 18 | ||||
-rw-r--r-- | uzbl-core.h | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/uzbl-core.c b/uzbl-core.c index 48af825..e7cd66f 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -406,7 +406,7 @@ send_event_socket(GString *msg) { gsize len; guint i=0; - if(uzbl.comm.socket_path && + if(uzbl.comm.socket_path && uzbl.comm.clientchan && uzbl.comm.clientchan->is_writeable) { @@ -415,7 +415,7 @@ send_event_socket(GString *msg) { while(i < uzbl.state.event_buffer->len) { tmp = g_ptr_array_index(uzbl.state.event_buffer, i++); - ret = g_io_channel_write_chars (uzbl.comm.clientchan, + ret = g_io_channel_write_chars (uzbl.comm.clientchan, tmp->str, tmp->len, &len, &error); /* is g_ptr_array_free(uzbl.state.event_buffer, TRUE) enough? */ @@ -429,7 +429,7 @@ send_event_socket(GString *msg) { uzbl.state.event_buffer = NULL; } if(msg) { - ret = g_io_channel_write_chars (uzbl.comm.clientchan, + ret = g_io_channel_write_chars (uzbl.comm.clientchan, msg->str, msg->len, &len, &error); @@ -455,10 +455,10 @@ send_event_stdout(GString *msg) { fflush(stdout); } -/* - * build event string and send over the supported interfaces +/* + * build event string and send over the supported interfaces * custom_event == NULL indicates an internal event -*/ +*/ void send_event(int type, const gchar *details, const gchar *custom_event) { GString *event_message = g_string_new(""); @@ -1011,7 +1011,7 @@ struct {const char *key; CommandInfo value;} cmdlist[] = /* a request is just semantic sugar to make things more obvious for * the user, technically events and requests are the very same thing */ - { "request", {event, TRUE} }, + { "request", {event, TRUE} }, { "update_gui", {update_gui, TRUE} } }; @@ -1093,7 +1093,7 @@ event(WebKitWebView *page, GArray *argv, GString *result) { void print(WebKitWebView *page, GArray *argv, GString *result) { (void) page; (void) result; - gchar* buf; + gchar* buf; buf = expand(argv_idx(argv, 0), 0); g_string_assign(result, buf); @@ -2026,7 +2026,7 @@ parse_cmd_line(const char *ctl_line, GString *result) { g_free(work_string); if( strcmp(g_strchug(ctlstrip), "") && - strcmp(exp_line = expand(ctlstrip, 0), "") + strcmp(exp_line = expand(ctlstrip, 0), "") ) { /* ignore comments */ if((exp_line[0] == '#')) diff --git a/uzbl-core.h b/uzbl-core.h index 3f7dacf..854060f 100644 --- a/uzbl-core.h +++ b/uzbl-core.h @@ -182,12 +182,12 @@ typedef void sigfunc(int); enum event_type { LOAD_START, LOAD_COMMIT, LOAD_FINISH, LOAD_ERROR, KEY_PRESS, KEY_RELEASE, DOWNLOAD_REQ, COMMAND_EXECUTED, - LINK_HOVER, TITLE_CHANGED, GEOMETRY_CHANGED, + LINK_HOVER, TITLE_CHANGED, GEOMETRY_CHANGED, WEBINSPECTOR, NEW_WINDOW, SELECTION_CHANGED, - VARIABLE_SET, FIFO_SET, SOCKET_SET, + VARIABLE_SET, FIFO_SET, SOCKET_SET, INSTANCE_START, INSTANCE_EXIT, LOAD_PROGRESS, LINK_UNHOVER, - + /* must be last entry */ LAST_EVENT }; |