[vala] gedit: Fix bindings of Document.load and save methods
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gedit: Fix bindings of Document.load and save methods
- Date: Fri, 21 Oct 2011 16:30:45 +0000 (UTC)
commit 78ea0915aea4a5a9db375f5b1bcc8918ffc40b60
Author: Luca Bruno <lucabru src gnome org>
Date: Fri Oct 21 17:58:38 2011 +0200
gedit: Fix bindings of Document.load and save methods
Fixes bug 661813.
vapi/gedit.vapi | 6 +++---
vapi/metadata/Gedit-3.0.metadata | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gedit.vapi b/vapi/gedit.vapi
index de47c6c..44e4297 100644
--- a/vapi/gedit.vapi
+++ b/vapi/gedit.vapi
@@ -25,6 +25,8 @@ namespace Gedit {
public class Document : Gtk.SourceBuffer {
[CCode (has_construct_function = false)]
public Document ();
+ [CCode (cname = "gedit_document_save")]
+ public void do_save (Gedit.DocumentSaveFlags flags);
public static GLib.Quark error_quark ();
public bool get_can_search_again ();
public Gedit.DocumentCompressionType get_compression_type ();
@@ -46,6 +48,7 @@ namespace Gedit {
public bool is_local ();
public bool is_untitled ();
public bool is_untouched ();
+ public virtual void load (GLib.File location, Gedit.Encoding? encoding, int line_pos, int column_pos, bool create);
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);
@@ -73,11 +76,8 @@ namespace Gedit {
[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);
diff --git a/vapi/metadata/Gedit-3.0.metadata b/vapi/metadata/Gedit-3.0.metadata
index b46b2eb..c4427bd 100644
--- a/vapi/metadata/Gedit-3.0.metadata
+++ b/vapi/metadata/Gedit-3.0.metadata
@@ -24,6 +24,9 @@ Window cheader_filename="gedit/gedit-window.h"
WindowActivatable cheader_filename="gedit/gedit-window-activatable.h"
WindowState cheader_filename="gedit/gedit-window.h"
+Document.load#signal skip // https://bugzilla.gnome.org/show_bug.cgi?id=662145
+Document.save#method name="do_save"
+
commands_* cheader_filename="gedit/gedit-commands.h"
debug* cheader_filename="gedit/gedit-debug.h"
marshal_* skip=true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]