]> spindle.queued.net Git - midori/commitdiff
Build fix: Accidentally removed the wrong action.
authorChristian Dywan <christian@twotoasts.de>
Mon, 10 Mar 2008 21:48:12 +0000 (22:48 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 10 Mar 2008 21:48:12 +0000 (22:48 +0100)
src/midori-browser.c
src/midori-webview.c

index 21e5476380084bc734c6aa6bac0b48060d5b00dd..b59e409dfb3adbd6d259a435b2e17cf535065c2e 100644 (file)
@@ -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,
index 60f334927a2a5fda528733fb42ae96063e59ada1..54c5256b7fcbf9cd5831200b85a85100e2d2cf86 100644 (file)
@@ -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",