aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar DuClare <akarinotengoku@gmail.com>2009-05-18 12:03:21 +0300
committerGravatar DuClare <akarinotengoku@gmail.com>2009-05-18 12:03:21 +0300
commitadd440074269a4cbae51a181805840f74d7238a4 (patch)
tree8b400fb1c5223aa2a30aad21fc5f721d4a29db30 /uzbl.c
parent0d10c269d24e3b227f118c6b23b88940e9ead4ad (diff)
parent642f4c88bdbcf22e97fc7e39d92f0b99e1cadabd (diff)
Merge commit 'rob/master' into experimental
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/uzbl.c b/uzbl.c
index 77f151d..6dd1f2d 100644
--- 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;
@@ -1166,15 +1166,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;
@@ -1456,7 +1452,6 @@ create_browser () {
GUI *g = &uzbl.gui;
GtkWidget* scrolled_window = gtk_scrolled_window_new (NULL, NULL);
- //main_window_ref = g_object_ref(scrolled_window);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_NEVER, GTK_POLICY_NEVER); //todo: some sort of display of position/total length. like what emacs does
g->web_view = WEBKIT_WEB_VIEW (webkit_web_view_new ());
@@ -1482,9 +1477,6 @@ create_mainbar () {
g->mainbar = gtk_hbox_new (FALSE, 0);
- /* keep a reference to the bar so we can re-pack it at runtime*/
- //sbar_ref = g_object_ref(g->mainbar);
-
g->mainbar_label = gtk_label_new ("");
gtk_label_set_selectable((GtkLabel *)g->mainbar_label, TRUE);
gtk_label_set_ellipsize(GTK_LABEL(g->mainbar_label), PANGO_ELLIPSIZE_END);
@@ -1515,11 +1507,9 @@ add_binding (const gchar *key, const gchar *act) {
//Debug:
if (uzbl.state.verbose)
printf ("Binding %-10s : %s\n", key, act);
- action = new_action(parts[0], parts[1]);
- if(g_hash_table_lookup(uzbl.bindings, key))
- g_hash_table_remove(uzbl.bindings, key);
- g_hash_table_insert(uzbl.bindings, g_strdup(key), action);
+ action = new_action(parts[0], parts[1]);
+ g_hash_table_replace(uzbl.bindings, g_strdup(key), action);
g_strfreev(parts);
}