summaryrefslogtreecommitdiff
path: root/src/dwb.c
diff options
context:
space:
mode:
authorportix <none@none>2012-12-06 12:19:18 +0100
committerportix <none@none>2012-12-06 12:19:18 +0100
commit7b0f52f71067a8c451a1c19c0437909b51d1cfff (patch)
tree514841405af57223af5d5d393226bd40cf76b1be /src/dwb.c
parentcfe31126f94c76ee9c2f1d5c7bfb13f31b9efcc1 (diff)
downloaddwb-7b0f52f71067a8c451a1c19c0437909b51d1cfff.zip
Change to normal mode in view_navigation_policy_cb; use gtk_clipboard_get instead of gtk_widget_get_clipboard
Diffstat (limited to 'src/dwb.c')
-rw-r--r--src/dwb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dwb.c b/src/dwb.c
index f258bf4e..aa992127 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -943,7 +943,7 @@ dwb_paste_into_entry(GtkClipboard *clip, const char *text)
void
dwb_paste_primary()
{
- GtkClipboard *p_clip = gtk_widget_get_clipboard(CURRENT_WEBVIEW_WIDGET(), GDK_SELECTION_PRIMARY);
+ GtkClipboard *p_clip = gtk_clipboard_get(GDK_SELECTION_PRIMARY);
if (p_clip == NULL)
return;
@@ -1772,9 +1772,6 @@ dwb_clean_load_begin(GList *gl)
v->status->ssl = SSL_NONE;
v->plugins->status &= ~PLUGIN_STATUS_HAS_PLUGIN;
- if (gl == dwb.state.fview && (dwb.state.mode == INSERT_MODE || dwb.state.mode == FIND_MODE))
- dwb_change_mode(NORMAL_MODE, true);
-
view_set_favicon(gl, false);
}/*}}}*/