From: André Stösel Date: Thu, 7 Jun 2012 21:12:47 +0000 (+0200) Subject: Add MidoriStartup, can_/reload to midori.vapi X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eafbc37f0ba5d4361821c3c4a41e7c637270ff9f;p=midori 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 --- 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);