[Xfce4-commits] <midori:master> HistoryWindow isn't a Midori.Browser
Christian Dywan
noreply at xfce.org
Mon Sep 17 19:28:09 CEST 2012
Updating branch refs/heads/master
to 13b735e382eea200b9df4022ea8a6f96595e994f (commit)
from dd39dab307c89c0cee81418e4e36ee21a0e3c9cf (commit)
commit 13b735e382eea200b9df4022ea8a6f96595e994f
Author: André Stösel <andre at stoesel.de>
Date: Mon Sep 17 15:43:12 2012 +0200
HistoryWindow isn't a Midori.Browser
extensions/history-list.vala | 2 +-
midori/midori.vapi | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/extensions/history-list.vala b/extensions/history-list.vala
index 83aee2c..499bb74 100644
--- a/extensions/history-list.vala
+++ b/extensions/history-list.vala
@@ -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");
diff --git a/midori/midori.vapi b/midori/midori.vapi
index 0ac85fb..1042d0a 100644
--- a/midori/midori.vapi
+++ b/midori/midori.vapi
@@ -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 ();
More information about the Xfce4-commits
mailing list