summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-06-02 23:52:47 +0200
committerportix <portix@gmx.net>2011-06-02 23:52:47 +0200
commit0695a8639a16caaa311d393841aeb26e7bbb36e6 (patch)
tree22825408de8f40ed04f416d82503b2cf8f326b67 /src
parenta77a9764dc8c04f6efe87e16c17f543caed343a6 (diff)
downloaddwb-0695a8639a16caaa311d393841aeb26e7bbb36e6.zip
Change to normal mode after loading finished
Diffstat (limited to 'src')
-rw-r--r--src/dwb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dwb.c b/src/dwb.c
index 6b7292c4..8c3c721d 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -1139,6 +1139,7 @@ dwb_clean_load_end(GList *gl) {
g_free(v->status->mimetype);
v->status->mimetype = NULL;
}
+ dwb_normal_mode(false);
}/*}}}*/
/* dwb_navigation_from_webkit_history_item(WebKitWebHistoryItem *) return: (alloc) Navigation* {{{*/
@@ -1232,6 +1233,8 @@ dwb_focus_entry() {
/* dwb_focus_scroll (GList *){{{*/
void
dwb_focus_scroll(GList *gl) {
+ if (gl == NULL)
+ return;
View *v = gl->data;
gtk_widget_grab_focus(v->web);
gtk_widget_hide(dwb.gui.entry);
@@ -2015,6 +2018,8 @@ dwb_insert_mode(Arg *arg) {
void
dwb_normal_mode(gboolean clean) {
Mode mode = dwb.state.mode;
+ if (mode == NORMAL_MODE)
+ return;
if (dwb.state.mode == HINT_MODE || dwb.state.mode == SEARCH_FIELD_MODE) {
dwb_execute_script(CURRENT_WEBVIEW(), "DwbHintObj.clear()", false);