From 9abae486dd2162266b41cc27fb2dac3b50ff2585 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 10 Mar 2008 22:48:12 +0100 Subject: [PATCH] Build fix: Accidentally removed the wrong action. --- src/midori-browser.c | 11 +++++++---- src/midori-webview.c | 10 +++++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/midori-browser.c b/src/midori-browser.c index 21e54763..b59e409d 100644 --- a/src/midori-browser.c +++ b/src/midori-browser.c @@ -371,7 +371,7 @@ static gboolean midori_web_view_console_message_cb (GtkWidget* web_view, const gchar* message, gint line, - const gchar* sourceId, + const gchar* source_id, MidoriBrowser* browser) { // FIXME: We want this to appear in a panel @@ -397,7 +397,7 @@ midori_web_view_populate_popup_cb (GtkWidget* web_view, if (!uri && !webkit_web_view_has_selection (WEBKIT_WEB_VIEW (web_view))) { // TODO: menu items - // undo close tab + // UndoTabClose // sep // BookmarkNew // SaveAs @@ -1777,8 +1777,8 @@ _action_bookmark_edit_activate (GtkAction* action, } static void -_action_trash_undo_activate (GtkAction* action, - MidoriBrowser* browser) +_action_undo_tab_close_activate (GtkAction* action, + MidoriBrowser* browser) { MidoriBrowserPrivate* priv = browser->priv; @@ -1955,6 +1955,9 @@ static const GtkActionEntry entries[] = { { "TrashEmpty", GTK_STOCK_CLEAR, "Empty Trash", "", "hm?", G_CALLBACK (_action_trash_empty_activate) }, + { "UndoTabClose", GTK_STOCK_UNDELETE, + "Undo Close Tab", "", + "hm?", G_CALLBACK (_action_undo_tab_close_activate) }, { "Bookmarks", NULL, "_Bookmarks" }, { "BookmarkNew", STOCK_BOOKMARK_NEW, diff --git a/src/midori-webview.c b/src/midori-webview.c index 60f33492..54c5256b 100644 --- a/src/midori-webview.c +++ b/src/midori-webview.c @@ -447,12 +447,12 @@ gtk_widget_scroll_event (MidoriWebView* web_view, return FALSE; } -static void -midori_web_view_menu_new_tab_activate (GtkWidget* action, - MidoriBrowser* browser) +/*static void +midori_web_view_menu_new_tab_activate (GtkWidget* widget, + MidoriWebView* web_view) { // FIXME: Open a new tab and load the uri -} +}*/ static void webkit_web_view_populate_popup_cb (GtkWidget* web_view, @@ -582,7 +582,7 @@ midori_web_view_init (MidoriWebView* web_view) "signal::scroll-event", gtk_widget_scroll_event, NULL, "signal::populate-popup", - webkit_web_view_populate_popup_cb, browser, + webkit_web_view_populate_popup_cb, NULL, NULL); g_object_connect (web_frame, "signal::load-done",