[vala] gtk+-3.0: Add FileFilter.set_filter_name and get_filter_name



commit 924b23bee3e67de575c20c70c7a89ddddb2b5c30
Author: Luca Bruno <lucabru src gnome org>
Date:   Mon May 23 19:29:50 2011 +0200

    gtk+-3.0: Add FileFilter.set_filter_name and get_filter_name
    
    Vala does not allow specifying methods that do not override interface
    abstract methods (get_name and set_name in this case from Gtk.Buildable).
    Workaround the issue by renaming the methods as this feature isn't
    going to be implemented anytime soon.
    
    Fixes bug 647122.

 vapi/gtk+-3.0.vapi                       |    4 ++++
 vapi/packages/gtk+-3.0/gtk+-3.0.metadata |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 7eee286..09ad885 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -1841,7 +1841,11 @@ namespace Gtk {
 		public void add_pattern (string pattern);
 		public void add_pixbuf_formats ();
 		public bool filter (Gtk.FileFilterInfo filter_info);
+		[CCode (cname = "gtk_file_filter_get_name")]
+		public unowned string get_filter_name ();
 		public Gtk.FileFilterFlags get_needed ();
+		[CCode (cname = "gtk_file_filter_set_name")]
+		public void set_filter_name (string name);
 	}
 	[Compact]
 	[CCode (cheader_filename = "gtk/gtk.h")]
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
index 8305f9b..7ad3b0e 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
@@ -244,6 +244,8 @@ gtk_file_chooser_dialog_new_with_backend.parent nullable="1"
 gtk_file_filter_add_custom.func transfer_ownership="1"
 gtk_file_filter_add_custom.data hidden="1"
 gtk_file_filter_add_custom.notify hidden="1"
+gtk_file_filter_set_name name="set_filter_name"
+gtk_file_filter_get_name name="get_filter_name"
 gtk_file_chooser_list_filters transfer_ownership="1" type_arguments="unowned FileFilter"
 gtk_file_chooser_list_shortcut_folder_uris nullable="1" transfer_ownership="1" type_arguments="string"
 gtk_file_chooser_list_shortcut_folders nullable="1" transfer_ownership="1" type_arguments="string"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]