From eafbc37f0ba5d4361821c3c4a41e7c637270ff9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20St=C3=B6sel?= Date: Thu, 7 Jun 2012 23:12:47 +0200 Subject: [PATCH] Add MidoriStartup, can_/reload to midori.vapi + add missing enum MidoriStartup + add functions to check if the view is loadable and actually load the view --- midori/midori.vapi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/midori/midori.vapi b/midori/midori.vapi index 61c5990d..310982d5 100644 --- a/midori/midori.vapi +++ b/midori/midori.vapi @@ -152,6 +152,8 @@ namespace Midori { public Gdk.Pixbuf get_snapshot (int width, int height); public unowned WebKit.WebView get_web_view (); public void populate_popup (Gtk.Menu menu, bool manual); + public bool can_reload (); + public void reload (bool from_cache); public string uri { get; } public string title { get; } @@ -176,6 +178,14 @@ namespace Midori { public WebSettings (); } + [CCode (cheader_filename = "midori/midori-websettings.h", cprefix = "MIDORI_STARTUP_")] + public enum MidoriStartup { + BLANK_PAGE, + HOMEPAGE, + LAST_OPEN_PAGES, + DELAYED_PAGES + } + [CCode (cheader_filename = "midori/sokoke.h", lower_case_cprefix = "sokoke_")] namespace Sokoke { public static uint gtk_action_count_modifiers (Gtk.Action action); -- 2.39.5