[Xfce4-commits] <midori:master> Fix vapi and app test, following 'Stop redundant tab numbering'
Christian Dywan
noreply at xfce.org
Thu Feb 28 01:02:03 CET 2013
Updating branch refs/heads/master
to b52d7d4956583a484151a73a110e257c995aa095 (commit)
from 6d3c0538535ea2b25e4db8df23aa250fc9067fe3 (commit)
commit b52d7d4956583a484151a73a110e257c995aa095
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Feb 28 01:00:17 2013 +0100
Fix vapi and app test, following 'Stop redundant tab numbering'
midori/midori.vapi | 4 ++--
tests/app.vala | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/midori/midori.vapi b/midori/midori.vapi
index eafb19b..ed7d67c 100644
--- a/midori/midori.vapi
+++ b/midori/midori.vapi
@@ -53,8 +53,8 @@ namespace Midori {
[CCode (cheader_filename = "midori/midori.h")]
public class Browser : Gtk.Window {
public Browser ();
- public int add_item (Katze.Item item);
- public int add_uri (string uri);
+ public unowned Gtk.Widget add_item (Katze.Item item);
+ public unowned Gtk.Widget add_uri (string uri);
public unowned View get_nth_tab (int n);
public GLib.List<weak View> get_tabs ();
public void block_action (Gtk.Action action);
diff --git a/tests/app.vala b/tests/app.vala
index f6421b6..eaa8603 100644
--- a/tests/app.vala
+++ b/tests/app.vala
@@ -29,7 +29,7 @@ void app_normal () {
var loop = MainContext.default ();
do { loop.iteration (true); } while (loop.pending ());
for (var i = 0 ; i < 7; i++) {
- var tab = app.browser.get_nth_tab (app.browser.add_uri ("about:blank"));
+ var tab = app.browser.add_uri ("about:blank") as Midori.View;
app.browser.close_tab (tab);
do { loop.iteration (true); } while (loop.pending ());
}
@@ -122,7 +122,7 @@ void app_extensions_load () {
assert (!(item as Midori.Extension).is_active ());
for (var i = 0 ; i < 7; i++) {
- var tab = app.browser.get_nth_tab (app.browser.add_uri ("about:blank"));
+ var tab = app.browser.add_uri ("about:blank") as Midori.View;
app.browser.close_tab (tab);
}
do { loop.iteration (true); } while (loop.pending ());
@@ -153,7 +153,7 @@ void app_extensions_activate () {
do { loop.iteration (true); } while (loop.pending ());
for (var i = 0 ; i < 7; i++) {
- var tab = app.browser.get_nth_tab (app.browser.add_uri ("about:blank"));
+ var tab = app.browser.add_uri ("about:blank") as Midori.View;
app.browser.close_tab (tab);
}
do { loop.iteration (true); } while (loop.pending ());
@@ -163,7 +163,7 @@ void app_extensions_activate () {
do { loop.iteration (true); } while (loop.pending ());
for (var i = 0 ; i < 7; i++) {
- var tab = app.browser.get_nth_tab (app.browser.add_uri ("about:blank"));
+ var tab = app.browser.add_uri ("about:blank") as Midori.View;
app.browser.close_tab (tab);
do { loop.iteration (true); } while (loop.pending ());
}
More information about the Xfce4-commits
mailing list