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
This commit is contained in:
André Stösel 2012-06-07 23:12:47 +02:00 committed by Christian Dywan
parent bc3ce47d7d
commit eafbc37f0b
1 changed files with 10 additions and 0 deletions

View File

@ -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);