]> spindle.queued.net Git - midori/commitdiff
HistoryWindow isn't a Midori.Browser
authorAndré Stösel <andre@stoesel.de>
Mon, 17 Sep 2012 13:43:12 +0000 (15:43 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 17 Sep 2012 17:26:56 +0000 (19:26 +0200)
extensions/history-list.vala
midori/midori.vapi

index 83aee2c2d18707c634a19c71ad7c686a57b7113b..499bb740c5db6160b5651e8916ff0f50ff6e1e0b 100644 (file)
@@ -524,7 +524,7 @@ namespace HistoryList {
             if(this.ignoreNextChange) {
                 this.ignoreNextChange = false;
             } else {
-                Midori.Browser browser = history_window as Midori.Browser;
+                Midori.Browser? browser = Midori.Browser.get_for_widget (new_view);
                 Midori.View? last_view
                     = browser.get_data<Midori.View?> ("history-list-last-change");
 
index 0ac85fb987b42cd38d08c24dccf4e528ead49281..1042d0a8392b7cd18a0e7a191eaa5974fb75f77a 100644 (file)
@@ -46,7 +46,7 @@ namespace Midori {
         public void block_action (Gtk.Action action);
         public void unblock_action (Gtk.Action action);
         public unowned Gtk.ActionGroup get_action_group ();
-        public unowned Browser get_for_widget (Gtk.Widget widget);
+        public static unowned Browser get_for_widget (Gtk.Widget widget);
         public unowned string[] get_toolbar_actions ();
         public unowned Katze.Array get_proxy_items ();