Fix Back button and opening new tabs.

This commit is contained in:
Christian Dywan 2008-03-11 20:27:23 +01:00
parent 9abae486dd
commit 4a1e0ab67b
2 changed files with 4 additions and 3 deletions

View file

@ -170,7 +170,7 @@ _midori_browser_update_interface (MidoriBrowser* browser)
webkit_web_view_get_text_size (WEBKIT_WEB_VIEW (web_view)) != 1);*/ webkit_web_view_get_text_size (WEBKIT_WEB_VIEW (web_view)) != 1);*/
_action_set_sensitive (browser, "Back", _action_set_sensitive (browser, "Back",
webkit_web_view_can_go_back (WEBKIT_WEB_VIEW (web_view))); 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))); webkit_web_view_can_go_forward (WEBKIT_WEB_VIEW (web_view)));
_action_set_sensitive (browser, "Reload", loading); _action_set_sensitive (browser, "Reload", loading);
_action_set_sensitive (browser, "Stop", !loading); _action_set_sensitive (browser, "Stop", !loading);

View file

@ -172,8 +172,9 @@ midori_web_view_class_init (MidoriWebViewClass* class)
G_STRUCT_OFFSET (MidoriWebViewClass, new_tab), G_STRUCT_OFFSET (MidoriWebViewClass, new_tab),
0, 0,
NULL, NULL,
g_cclosure_marshal_VOID__VOID, g_cclosure_marshal_VOID__STRING,
G_TYPE_NONE, 0); G_TYPE_NONE, 1,
G_TYPE_STRING);
signals[NEW_WINDOW] = g_signal_new( signals[NEW_WINDOW] = g_signal_new(
"new-window", "new-window",