]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gedit: Add new bindings for Gedit-3.0
authorAndrea Del Signore <sejerpz@tin.it>
Thu, 4 Aug 2011 14:48:00 +0000 (16:48 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Fri, 5 Aug 2011 08:18:12 +0000 (10:18 +0200)
Fixes bug 645624.

vapi/Makefile.am
vapi/gedit.deps [new file with mode: 0644]
vapi/gedit.vapi [new file with mode: 0644]
vapi/metadata/Gedit-3.0.metadata [new file with mode: 0644]

index 2096215c4a723fbd152c8cccac2719af64e8f3a0..a621637d7bd0a1cd045c2f8d5f2edab1a4d4b01e 100644 (file)
@@ -52,6 +52,8 @@ dist_vapi_DATA = \
        gdu-gtk.vapi \
        gedit-2.20.vapi \
        gedit-2.20.deps \
+       gedit.vapi \
+       gedit.deps \
        gio-2.0.vapi \
        gio-unix-2.0.deps \
        gio-unix-2.0.vapi \
@@ -237,7 +239,7 @@ dist_noinst_DATA = \
        config.vapi \
        $(NULL)
 
-BINDINGS = atk clutter-1.0 clutter-gtk-0.10 clutter-gtk-1.0 cogl-1.0 gconf-2.0 gdk-2.0 gdk-3.0 gdk-pixbuf-2.0 gdk-x11-2.0 gdk-x11-3.0 gdl-1.0 gdu gdu-gtk gedit-2.20 gio-2.0 gio-unix-2.0 gnome-desktop-2.0 gnome-keyring-1 gnome-vfs-2.0 goocanvas gstreamer-0.10 gstreamer-app-0.10 gstreamer-audio-0.10 gstreamer-base-0.10 gstreamer-cdda-0.10 gstreamer-check-0.10 gstreamer-controller-0.10 gstreamer-dataprotocol-0.10 gstreamer-fft-0.10 gstreamer-interfaces-0.10 gstreamer-net-0.10 gstreamer-netbuffer-0.10 gstreamer-pbutils-0.10 gstreamer-riff-0.10 gstreamer-rtp-0.10 gstreamer-rtsp-0.10 gstreamer-sdp-0.10 gstreamer-tag-0.10 gstreamer-video-0.10 gtk+-2.0 gtk+-3.0 gtksourceview-2.0 gtksourceview-3.0 gudev-1.0 hildon-1 hildon-fm-2 json-glib-1.0 libepc-1.0 libgda-4.0 libgda-report-4.0 libgdata libglade-2.0 libgnome-2.0 libgnome-menu libgnomeui-2.0 libgsf-1 libnotify liboobs-1 libpeas-1.0 librsvg-2.0 libsexy libsoup-2.2 libsoup-2.4 libwnck-1.0 loudmouth-1.0 mx-1.0 pango pangocairo poppler-glib purple rest-0.6 rest-extras-0.6 rest-0.7 tracker-indexer-module-1.0 twitter-glib-1.0 unique-1.0 vte vte-2.90 webkit-1.0
+BINDINGS = atk clutter-1.0 clutter-gtk-0.10 clutter-gtk-1.0 cogl-1.0 gconf-2.0 gdk-2.0 gdk-3.0 gdk-pixbuf-2.0 gdk-x11-2.0 gdk-x11-3.0 gdl-1.0 gdu gdu-gtk gedit-2.20 gedit gio-2.0 gio-unix-2.0 gnome-desktop-2.0 gnome-keyring-1 gnome-vfs-2.0 goocanvas gstreamer-0.10 gstreamer-app-0.10 gstreamer-audio-0.10 gstreamer-base-0.10 gstreamer-cdda-0.10 gstreamer-check-0.10 gstreamer-controller-0.10 gstreamer-dataprotocol-0.10 gstreamer-fft-0.10 gstreamer-interfaces-0.10 gstreamer-net-0.10 gstreamer-netbuffer-0.10 gstreamer-pbutils-0.10 gstreamer-riff-0.10 gstreamer-rtp-0.10 gstreamer-rtsp-0.10 gstreamer-sdp-0.10 gstreamer-tag-0.10 gstreamer-video-0.10 gtk+-2.0 gtk+-3.0 gtksourceview-2.0 gtksourceview-3.0 gudev-1.0 hildon-1 hildon-fm-2 json-glib-1.0 libepc-1.0 libgda-4.0 libgda-report-4.0 libgdata libglade-2.0 libgnome-2.0 libgnome-menu libgnomeui-2.0 libgsf-1 libnotify liboobs-1 libpeas-1.0 librsvg-2.0 libsexy libsoup-2.2 libsoup-2.4 libwnck-1.0 loudmouth-1.0 mx-1.0 pango pangocairo poppler-glib purple rest-0.6 rest-extras-0.6 rest-0.7 tracker-indexer-module-1.0 twitter-glib-1.0 unique-1.0 vte vte-2.90 webkit-1.0
 
 VAPIGEN = $(top_builddir)/vapigen/vapigen
 VAPIGENFLAGS = --vapidir $(srcdir)
@@ -245,6 +247,7 @@ GENVAPI = $(VAPIGEN) $(VAPIGENFLAGS)
 METADATADIR = $(srcdir)/metadata
 PACKAGESDIR = $(srcdir)/packages
 GIRDIR = $$($(PKG_CONFIG) gobject-introspection-1.0 --variable=girdir)
+GEDIT_GIRDIR=$$($(PKG_CONFIG) gedit --variable=prefix)/share/gedit/gir-1.0
 
 .PHONY: all-bindings $(BINDINGS)
 
@@ -295,6 +298,9 @@ gdu-gtk:
 gedit-2.20:
        $(GENVAPI) --library $(srcdir)/gedit-2.20 $(PACKAGESDIR)/gedit-2.20/gedit-2.20.gi
 
+gedit:
+       $(GENVAPI) --library $(srcdir)/gedit --metadatadir $(METADATADIR) $(GEDIT_GIRDIR)/Gedit-3.0.gir
+
 gio-2.0:
        $(GENVAPI) --library $(srcdir)/gio-2.0 $(PACKAGESDIR)/gio-2.0/gio-2.0-custom.vala $(PACKAGESDIR)/gio-2.0/gio-2.0.gi
 
diff --git a/vapi/gedit.deps b/vapi/gedit.deps
new file mode 100644 (file)
index 0000000..2797e85
--- /dev/null
@@ -0,0 +1,5 @@
+atk
+gdk-3.0
+gio-2.0
+gtk+-3.0
+gtksourceview-3.0
diff --git a/vapi/gedit.vapi b/vapi/gedit.vapi
new file mode 100644 (file)
index 0000000..0fa9754
--- /dev/null
@@ -0,0 +1,432 @@
+/* gedit.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Gedit", gir_namespace = "Gedit", gir_version = "3.0", lower_case_cprefix = "gedit_")]
+namespace Gedit {
+       [CCode (cheader_filename = "gedit/gedit-app.h", type_id = "gedit_app_get_type ()")]
+       public abstract class App : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected App ();
+               public unowned Gedit.Window create_window (Gdk.Screen? screen);
+               public unowned Gedit.Window get_active_window ();
+               public static unowned Gedit.App get_default ();
+               public GLib.List<weak Gedit.Document> get_documents ();
+               public Gedit.LockdownMask get_lockdown ();
+               public GLib.List<weak Gedit.View> get_views ();
+               public unowned GLib.List<Gedit.Window> get_windows ();
+               [NoWrapper]
+               public virtual string help_link_id (string name, string link_id);
+               [NoWrapper]
+               public virtual bool last_window_destroyed ();
+               public virtual void set_window_title (Gedit.Window window, string title);
+               public virtual bool show_help (Gtk.Window parent, string name, string link_id);
+               public Gedit.LockdownMask lockdown { get; }
+       }
+       [CCode (cheader_filename = "gedit/gedit-document.h", type_id = "gedit_document_get_type ()")]
+       public class Document : Gtk.SourceBuffer {
+               [CCode (has_construct_function = false)]
+               public Document ();
+               public static GLib.Quark error_quark ();
+               public bool get_can_search_again ();
+               public Gedit.DocumentCompressionType get_compression_type ();
+               public string get_content_type ();
+               public bool get_deleted ();
+               public bool get_enable_search_highlighting ();
+               public unowned Gedit.Encoding get_encoding ();
+               public unowned Gtk.SourceLanguage get_language ();
+               public GLib.File get_location ();
+               public string get_metadata (string key);
+               public string get_mime_type ();
+               public Gedit.DocumentNewlineType get_newline_type ();
+               public bool get_readonly ();
+               public string get_search_text (uint? flags);
+               public string get_short_name_for_display ();
+               public string get_uri_for_display ();
+               public bool goto_line (int line);
+               public bool goto_line_offset (int line, int line_offset);
+               public bool is_local ();
+               public bool is_untitled ();
+               public bool is_untouched ();
+               public bool load_cancel ();
+               public void load_stream (GLib.InputStream stream, Gedit.Encoding? encoding, int line_pos, int column_pos);
+               public int replace_all (string find, string replace, uint flags);
+               public void save_as (GLib.File location, Gedit.Encoding encoding, Gedit.DocumentNewlineType newline_type, Gedit.DocumentCompressionType compression_type, Gedit.DocumentSaveFlags flags);
+               public bool search_backward (Gtk.TextIter? start, Gtk.TextIter? end, Gtk.TextIter? match_start, Gtk.TextIter? match_end);
+               public bool search_forward (Gtk.TextIter? start, Gtk.TextIter? end, Gtk.TextIter? match_start, Gtk.TextIter? match_end);
+               public void set_content_type (string? content_type);
+               public void set_enable_search_highlighting (bool enable);
+               public void set_language (Gtk.SourceLanguage? lang);
+               public void set_location (GLib.File location);
+               public void set_search_text (string text, uint flags);
+               public void set_short_name_for_display (string? short_name);
+               public bool can_search_again { get; }
+               [NoAccessorMethod]
+               public Gedit.DocumentCompressionType compression_type { get; set construct; }
+               public string content_type { owned get; set; }
+               public bool enable_search_highlighting { get; set; }
+               public Gedit.Encoding encoding { get; }
+               public GLib.File location { owned get; set; }
+               public string mime_type { owned get; }
+               [NoAccessorMethod]
+               public Gedit.DocumentNewlineType newline_type { get; set construct; }
+               [NoAccessorMethod]
+               public bool read_only { get; }
+               [NoAccessorMethod]
+               public string shortname { owned get; set; }
+               public virtual signal void cursor_moved ();
+               [HasEmitter]
+               public virtual signal void load (GLib.File location, Gedit.Encoding encoding, int line_pos, bool column_pos);
+               public virtual signal void loaded (GLib.Error error);
+               public virtual signal void loading (uint64 size, uint64 total_size);
+               [HasEmitter]
+               public virtual signal void save (GLib.File location, Gedit.Encoding encoding, Gedit.DocumentNewlineType newline_type, Gedit.DocumentCompressionType compression_type, Gedit.DocumentSaveFlags flags);
+               public virtual signal void saved (GLib.Error error);
+               public virtual signal void saving (uint64 size, uint64 total_size);
+               public virtual signal void search_highlight_updated (Gtk.TextIter start, Gtk.TextIter end);
+       }
+       [CCode (cheader_filename = "gedit/gedit-encodings.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gedit_encoding_get_type ()")]
+       [Compact]
+       public class Encoding {
+               public Gedit.Encoding copy ();
+               public void free ();
+               public unowned string get_charset ();
+               public static unowned Gedit.Encoding get_current ();
+               public static unowned Gedit.Encoding get_from_charset (string charset);
+               public static unowned Gedit.Encoding get_from_index (int index);
+               public unowned string get_name ();
+               public static unowned Gedit.Encoding get_utf8 ();
+               public string to_string ();
+       }
+       [CCode (cheader_filename = "gedit/gedit-encodings-combo-box.h", type_id = "gedit_encodings_combo_box_get_type ()")]
+       public class EncodingsComboBox : Gtk.ComboBox, Atk.Implementor, Gtk.Buildable, Gtk.CellEditable, Gtk.CellLayout {
+               [CCode (has_construct_function = false, type = "GtkWidget*")]
+               public EncodingsComboBox (bool save_mode);
+               public unowned Gedit.Encoding get_selected_encoding ();
+               public void set_selected_encoding (Gedit.Encoding? encoding);
+               [NoAccessorMethod]
+               public bool save_mode { get; set construct; }
+       }
+       [CCode (cheader_filename = "gedit/gedit-message.h", type_id = "gedit_message_get_type ()")]
+       public class Message : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected Message ();
+               public unowned string get_method ();
+               public unowned string get_object_path ();
+               public bool has (string propname);
+               public static bool is_valid_object_path (string? object_path);
+               public static bool type_check (GLib.Type gtype, string propname, GLib.Type value_type);
+               public static bool type_has (GLib.Type gtype, string propname);
+               public static string type_identifier (string? object_path, string? method);
+               [NoAccessorMethod]
+               public string method { owned get; set construct; }
+               [NoAccessorMethod]
+               public string object_path { owned get; set construct; }
+       }
+       [CCode (cheader_filename = "gedit/gedit-message-bus.h", type_id = "gedit_message_bus_get_type ()")]
+       public class MessageBus : GLib.Object {
+               [CCode (has_construct_function = false)]
+               public MessageBus ();
+               public void block (uint id);
+               public void block_by_func (string object_path, string method, Gedit.MessageCallback callback);
+               public uint connect (string object_path, string method, owned Gedit.MessageCallback callback);
+               public void disconnect (uint id);
+               public void disconnect_by_func (string object_path, string method, Gedit.MessageCallback callback);
+               public void @foreach (Gedit.MessageBusForeach func);
+               public static unowned Gedit.MessageBus get_default ();
+               public bool is_registered (string object_path, string method);
+               public GLib.Type lookup (string object_path, string method);
+               public void register (GLib.Type message_type, string object_path, string method);
+               public void send_message (Gedit.Message message);
+               public void send_message_sync (Gedit.Message message);
+               public void unblock (uint id);
+               public void unblock_by_func (string object_path, string method, Gedit.MessageCallback callback);
+               public void unregister (string object_path, string method);
+               public void unregister_all (string object_path);
+               public virtual signal void dispatch (Gedit.Message message);
+               public virtual signal void registered (string object_path, string method);
+               public virtual signal void unregistered (string object_path, string method);
+       }
+       [CCode (cheader_filename = "gedit/gedit-panel.h", type_id = "gedit_panel_get_type ()")]
+       public class Panel : Gtk.VBox, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
+               [CCode (has_construct_function = false, type = "GtkWidget*")]
+               public Panel (Gtk.Orientation orientation);
+               public bool activate_item (Gtk.Widget item);
+               public bool add_item (Gtk.Widget item, string id, string display_name, Gtk.Widget? image);
+               public bool add_item_with_stock_icon (Gtk.Widget item, string id, string display_name, string? stock_id);
+               public int get_n_items ();
+               public Gtk.Orientation get_orientation ();
+               public bool item_is_active (Gtk.Widget item);
+               public bool remove_item (Gtk.Widget item);
+               public Gtk.Orientation orientation { get; construct; }
+               public virtual signal void close ();
+               public virtual signal void focus_document ();
+               public virtual signal void item_added (Gtk.Widget item);
+               public virtual signal void item_removed (Gtk.Widget item);
+       }
+       [CCode (cheader_filename = "gedit/gedit-progress-info-bar.h", type_id = "gedit_progress_info_bar_get_type ()")]
+       public class ProgressInfoBar : Gtk.InfoBar, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
+               [CCode (has_construct_function = false, type = "GtkWidget*")]
+               public ProgressInfoBar (string stock_id, string markup, bool has_cancel);
+               public void pulse ();
+               public void set_fraction (double fraction);
+               public void set_markup (string markup);
+               public void set_stock_image (string stock_id);
+               public void set_text (string text);
+               public bool has_cancel_button { construct; }
+       }
+       [CCode (cheader_filename = "gedit/gedit-statusbar.h", type_id = "gedit_statusbar_get_type ()")]
+       public class Statusbar : Gtk.Statusbar, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
+               [CCode (has_construct_function = false, type = "GtkWidget*")]
+               public Statusbar ();
+               public void clear_overwrite ();
+               public void set_cursor_position (int line, int col);
+               public void set_overwrite (bool overwrite);
+               public void set_window_state (Gedit.WindowState state, int num_of_errors);
+       }
+       [CCode (cheader_filename = "gedit/gedit-tab.h", type_id = "gedit_tab_get_type ()")]
+       public class Tab : Gtk.VBox, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
+               [CCode (has_construct_function = false)]
+               protected Tab ();
+               public bool get_auto_save_enabled ();
+               public int get_auto_save_interval ();
+               public unowned Gedit.Document get_document ();
+               public static unowned Gedit.Tab get_from_document (Gedit.Document doc);
+               public Gedit.TabState get_state ();
+               public unowned Gedit.View get_view ();
+               public void set_auto_save_enabled (bool enable);
+               public void set_auto_save_interval (int interval);
+               public void set_info_bar (Gtk.Widget info_bar);
+               [NoAccessorMethod]
+               public bool autosave { get; set; }
+               [NoAccessorMethod]
+               public int autosave_interval { get; set; }
+               [NoAccessorMethod]
+               public string name { owned get; }
+               public Gedit.TabState state { get; }
+               public virtual signal void drop_uris ([CCode (array_length = false, array_null_terminated = true)] string[] uri_list);
+       }
+       [CCode (cheader_filename = "gedit/gedit-view.h", type_id = "gedit_view_get_type ()")]
+       public class View : Gtk.SourceView, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
+               [CCode (has_construct_function = false, type = "GtkWidget*")]
+               public View (Gedit.Document doc);
+               public void copy_clipboard ();
+               public void cut_clipboard ();
+               public void delete_selection ();
+               public void paste_clipboard ();
+               public void scroll_to_cursor ();
+               public void select_all ();
+               public void set_font (bool def, string font_name);
+               public virtual signal void drop_uris ([CCode (array_length = false, array_null_terminated = true)] string[] uri_list);
+       }
+       [CCode (cheader_filename = "gedit/gedit-window.h", type_id = "gedit_window_get_type ()")]
+       public class Window : Gtk.Window, Atk.Implementor, Gtk.Buildable {
+               [CCode (has_construct_function = false)]
+               protected Window ();
+               public void close_all_tabs ();
+               public void close_tab (Gedit.Tab tab);
+               public void close_tabs (GLib.List<Gedit.Tab> tabs);
+               public unowned Gedit.Tab create_tab (bool jump_to);
+               public unowned Gedit.Tab create_tab_from_location (GLib.File location, Gedit.Encoding? encoding, int line_pos, int column_pos, bool create, bool jump_to);
+               public unowned Gedit.Tab create_tab_from_stream (GLib.InputStream stream, Gedit.Encoding? encoding, int line_pos, int column_pos, bool jump_to);
+               public unowned Gedit.Document get_active_document ();
+               public unowned Gedit.Tab get_active_tab ();
+               public unowned Gedit.View get_active_view ();
+               public unowned Gedit.Panel get_bottom_panel ();
+               public GLib.List<weak Gedit.Document> get_documents ();
+               public unowned Gtk.WindowGroup get_group ();
+               public unowned Gedit.MessageBus get_message_bus ();
+               public unowned Gedit.Panel get_side_panel ();
+               public Gedit.WindowState get_state ();
+               public unowned Gtk.Widget get_statusbar ();
+               public unowned Gedit.Tab get_tab_from_location (GLib.File location);
+               public unowned Gtk.UIManager get_ui_manager ();
+               public GLib.List<weak Gedit.Document> get_unsaved_documents ();
+               public GLib.List<weak Gedit.View> get_views ();
+               public void set_active_tab (Gedit.Tab tab);
+               public Gedit.WindowState state { get; }
+               public virtual signal void active_tab_changed (Gedit.Tab tab);
+               public virtual signal void active_tab_state_changed ();
+               public virtual signal void tab_added (Gedit.Tab tab);
+               public virtual signal void tab_removed (Gedit.Tab tab);
+               public virtual signal void tabs_reordered ();
+       }
+       [CCode (cheader_filename = "gedit/gedit-app-activatable.h", type_cname = "GeditAppActivatableInterface", type_id = "gedit_app_activatable_get_type ()")]
+       public interface AppActivatable : GLib.Object {
+               public abstract void activate ();
+               public abstract void deactivate ();
+               [NoAccessorMethod]
+               public Gedit.App app { owned get; construct; }
+       }
+       [CCode (cheader_filename = "gedit/gedit-view-activatable.h", type_cname = "GeditViewActivatableInterface", type_id = "gedit_view_activatable_get_type ()")]
+       public interface ViewActivatable : GLib.Object {
+               public abstract void activate ();
+               public abstract void deactivate ();
+               [NoAccessorMethod]
+               public Gedit.View view { owned get; construct; }
+       }
+       [CCode (cheader_filename = "gedit/gedit-window-activatable.h", type_cname = "GeditWindowActivatableInterface", type_id = "gedit_window_activatable_get_type ()")]
+       public interface WindowActivatable : GLib.Object {
+               public abstract void activate ();
+               public abstract void deactivate ();
+               public abstract void update_state ();
+               [NoAccessorMethod]
+               public Gedit.Window window { owned get; construct; }
+       }
+       [CCode (cheader_filename = "gedit/gedit-debug.h", cprefix = "GEDIT_")]
+       [Flags]
+       public enum DebugSection {
+               NO_DEBUG,
+               DEBUG_VIEW,
+               DEBUG_SEARCH,
+               DEBUG_PRINT,
+               DEBUG_PREFS,
+               DEBUG_PLUGINS,
+               DEBUG_TAB,
+               DEBUG_DOCUMENT,
+               DEBUG_COMMANDS,
+               DEBUG_APP,
+               DEBUG_SESSION,
+               DEBUG_UTILS,
+               DEBUG_METADATA,
+               DEBUG_WINDOW,
+               DEBUG_LOADER,
+               DEBUG_SAVER,
+               DEBUG_PANEL,
+               DEBUG_DBUS
+       }
+       [CCode (cheader_filename = "gedit/gedit-document.h", cprefix = "GEDIT_DOCUMENT_COMPRESSION_TYPE_")]
+       public enum DocumentCompressionType {
+               NONE,
+               GZIP
+       }
+       [CCode (cheader_filename = "gedit/gedit-document.h", cprefix = "GEDIT_DOCUMENT_NEWLINE_TYPE_")]
+       public enum DocumentNewlineType {
+               LF,
+               CR,
+               CR_LF
+       }
+       [CCode (cheader_filename = "gedit/gedit-document.h", cprefix = "GEDIT_DOCUMENT_SAVE_")]
+       [Flags]
+       public enum DocumentSaveFlags {
+               IGNORE_MTIME,
+               IGNORE_BACKUP,
+               PRESERVE_BACKUP,
+               IGNORE_INVALID_CHARS
+       }
+       [CCode (cheader_filename = "gedit/gedit-app.h", cprefix = "GEDIT_LOCKDOWN_")]
+       [Flags]
+       public enum LockdownMask {
+               COMMAND_LINE,
+               PRINTING,
+               PRINT_SETUP,
+               SAVE_TO_DISK
+       }
+       [CCode (cheader_filename = "gedit/gedit-document.h", cprefix = "GEDIT_SEARCH_")]
+       [Flags]
+       public enum SearchFlags {
+               DONT_SET_FLAGS,
+               ENTIRE_WORD,
+               CASE_SENSITIVE
+       }
+       [CCode (cheader_filename = "gedit/gedit-tab.h", cprefix = "GEDIT_TAB_")]
+       public enum TabState {
+               STATE_NORMAL,
+               STATE_LOADING,
+               STATE_REVERTING,
+               STATE_SAVING,
+               STATE_PRINTING,
+               STATE_PRINT_PREVIEWING,
+               STATE_SHOWING_PRINT_PREVIEW,
+               STATE_GENERIC_NOT_EDITABLE,
+               STATE_LOADING_ERROR,
+               STATE_REVERTING_ERROR,
+               STATE_SAVING_ERROR,
+               STATE_GENERIC_ERROR,
+               STATE_CLOSING,
+               STATE_EXTERNALLY_MODIFIED_NOTIFICATION,
+               NUM_OF_STATES
+       }
+       [CCode (cheader_filename = "gedit/gedit-window.h", cprefix = "GEDIT_WINDOW_STATE_")]
+       [Flags]
+       public enum WindowState {
+               NORMAL,
+               SAVING,
+               PRINTING,
+               LOADING,
+               ERROR,
+               SAVING_SESSION
+       }
+       [CCode (cheader_filename = "gedit/gedit-message-bus.h", instance_pos = 2.9)]
+       public delegate void MessageBusForeach (string object_path, string method);
+       [CCode (cheader_filename = "gedit/gedit-message-bus.h", instance_pos = 2.9)]
+       public delegate void MessageCallback (Gedit.MessageBus bus, Gedit.Message message);
+       [CCode (cheader_filename = "gedit/gedit-app.h")]
+       public const int LOCKDOWN_ALL;
+       [CCode (cheader_filename = "gedit/gedit-document.h")]
+       public const string METADATA_ATTRIBUTE_ENCODING;
+       [CCode (cheader_filename = "gedit/gedit-document.h")]
+       public const string METADATA_ATTRIBUTE_LANGUAGE;
+       [CCode (cheader_filename = "gedit/gedit-document.h")]
+       public const string METADATA_ATTRIBUTE_POSITION;
+       [CCode (cheader_filename = "gedit/gedit-commands.h")]
+       public static void commands_load_location (Gedit.Window window, GLib.File location, Gedit.Encoding? encoding, int line_pos, int column_pos);
+       [CCode (cheader_filename = "gedit/gedit-commands.h")]
+       public static GLib.SList<weak Gedit.Document> commands_load_locations (Gedit.Window window, GLib.SList<GLib.File> locations, Gedit.Encoding? encoding, int line_pos, int column_pos);
+       [CCode (cheader_filename = "gedit/gedit-commands.h")]
+       public static void commands_save_all_documents (Gedit.Window window);
+       [CCode (cheader_filename = "gedit/gedit-commands.h")]
+       public static void commands_save_document (Gedit.Window window, Gedit.Document document);
+       [CCode (cheader_filename = "gedit/gedit-debug.h")]
+       public static void debug (Gedit.DebugSection section, string file, int line, string function);
+       [CCode (cheader_filename = "gedit/gedit-debug.h")]
+       public static void debug_init ();
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static string utils_basename_for_display (GLib.File location);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static bool utils_can_read_from_stdin ();
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static bool utils_decode_uri (string uri, out string scheme, out string user, out string port, out string host, out string path);
+       [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gedit/gedit-utils.h")]
+       public static string[] utils_drop_get_uris (Gtk.SelectionData selection_data);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static string utils_escape_search_text (string text);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static string utils_escape_underscores (string text, ssize_t length);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static Gedit.DocumentCompressionType utils_get_compression_type_from_content_type (string content_type);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static void utils_get_current_viewport (Gdk.Screen screen, out int x, out int y);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static uint utils_get_current_workspace (Gdk.Screen screen);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static uint utils_get_window_workspace (Gtk.Window gtkwindow);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static bool utils_is_valid_location (GLib.File location);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static string utils_location_get_dirname_for_display (GLib.File location);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static bool utils_location_has_file_scheme (GLib.File location);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static string utils_make_canonical_uri_from_shell_arg (string str);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static string utils_make_valid_utf8 (string name);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static void utils_menu_position_under_tree_view (Gtk.Menu menu, int x, int y, bool push_in, void* user_data);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static void utils_menu_position_under_widget (Gtk.Menu menu, int x, int y, bool push_in, void* user_data);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static string utils_replace_home_dir_with_tilde (string uri);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static void utils_set_atk_name_description (Gtk.Widget widget, string name, string description);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static void utils_set_atk_relation (Gtk.Widget obj1, Gtk.Widget obj2, Atk.RelationType rel_type);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static string utils_str_end_truncate (string string, uint truncate_length);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static string utils_str_middle_truncate (string string, uint truncate_length);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static void utils_text_iter_assign (Gtk.TextIter iter, Gtk.TextIter other);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static string utils_unescape_search_text (string text);
+       [CCode (cheader_filename = "gedit/gedit-utils.h")]
+       public static string utils_uri_get_dirname (string uri);
+}
diff --git a/vapi/metadata/Gedit-3.0.metadata b/vapi/metadata/Gedit-3.0.metadata
new file mode 100644 (file)
index 0000000..bf2cd5b
--- /dev/null
@@ -0,0 +1,38 @@
+App cheader_filename="gedit/gedit-app.h"
+AppActivatable cheader_filename="gedit/gedit-app-activatable.h"
+LockdownMask cheader_filename="gedit/gedit-app.h"
+DebugSection cheader_filename="gedit/gedit-debug.h"
+Document cheader_filename="gedit/gedit-document.h"
+DocumentCompressionType cheader_filename="gedit/gedit-document.h"
+DocumentNewlineType cheader_filename="gedit/gedit-document.h"
+DocumentSaveFlags cheader_filename="gedit/gedit-document.h"
+Encoding  cheader_filename="gedit/gedit-encodings.h"
+EncodingsComboBox cheader_filename="gedit/gedit-encodings-combo-box.h"
+Message cheader_filename="gedit/gedit-message.h"
+MessageBus cheader_filename="gedit/gedit-message-bus.h"
+MessageType cheader_filename="gedit/gedit-message-type.h"
+// present in the gir but the header is missing
+NotebookShowTabsModeType skip=true
+Panel cheader_filename="gedit/gedit-panel.h"
+ProgressInfoBar cheader_filename="gedit/gedit-progress-info-bar.h"
+SearchFlags cheader_filename="gedit/gedit-document.h"
+Statusbar cheader_filename="gedit/gedit-statusbar.h"
+Tab cheader_filename="gedit/gedit-tab.h"
+TabState cheader_filename="gedit/gedit-tab.h"
+View cheader_filename="gedit/gedit-view.h"
+ViewActivatable cheader_filename="gedit/gedit-view-activatable.h"
+Window cheader_filename="gedit/gedit-window.h"
+WindowActivatable cheader_filename="gedit/gedit-window-activatable.h"
+WindowState cheader_filename="gedit/gedit-window.h"
+
+commands_* cheader_filename="gedit/gedit-commands.h"
+debug* cheader_filename="gedit/gedit-debug.h"
+marshal_* skip=true
+utils_* cheader_filename="gedit/gedit-utils.h"
+
+LOCKDOWN_ALL cheader_filename="gedit/gedit-app.h"
+METADATA_* cheader_filename="gedit/gedit-document.h"
+
+MessageBusForeach cheader_filename="gedit/gedit-message-bus.h"
+MessageCallback cheader_filename="gedit/gedit-message-bus.h"
+MessageTypeForeach cheader_filename="gedit/gedit-message-type.h"