From 4a1e0ab67b712e7c5eedc607e7dc3ce7c598d9ea Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 11 Mar 2008 20:27:23 +0100 Subject: [PATCH] Fix Back button and opening new tabs. --- src/midori-browser.c | 2 +- src/midori-webview.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/midori-browser.c b/src/midori-browser.c index b59e409d..fafc3acb 100644 --- a/src/midori-browser.c +++ b/src/midori-browser.c @@ -170,7 +170,7 @@ _midori_browser_update_interface (MidoriBrowser* browser) webkit_web_view_get_text_size (WEBKIT_WEB_VIEW (web_view)) != 1);*/ _action_set_sensitive (browser, "Back", webkit_web_view_can_go_back (WEBKIT_WEB_VIEW (web_view))); - _action_set_sensitive (browser, "Back", + _action_set_sensitive (browser, "Forward", webkit_web_view_can_go_forward (WEBKIT_WEB_VIEW (web_view))); _action_set_sensitive (browser, "Reload", loading); _action_set_sensitive (browser, "Stop", !loading); diff --git a/src/midori-webview.c b/src/midori-webview.c index 54c5256b..8459317d 100644 --- a/src/midori-webview.c +++ b/src/midori-webview.c @@ -172,8 +172,9 @@ midori_web_view_class_init (MidoriWebViewClass* class) G_STRUCT_OFFSET (MidoriWebViewClass, new_tab), 0, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); + g_cclosure_marshal_VOID__STRING, + G_TYPE_NONE, 1, + G_TYPE_STRING); signals[NEW_WINDOW] = g_signal_new( "new-window",