[vala/0.36: 38/173] gtk+-4.0: Make Gsk.Texturer.for_*() static factory methods



commit a929f822f78b12194b6abb46a0905888cd12c54c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Aug 10 16:25:51 2017 +0200

    gtk+-4.0: Make Gsk.Texturer.for_*() static factory methods

 vapi/gtk+-4.0.vapi             |    8 ++++----
 vapi/metadata/Gsk-4.0.metadata |    3 +++
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi
index b32734b..330e85f 100644
--- a/vapi/gtk+-4.0.vapi
+++ b/vapi/gtk+-4.0.vapi
@@ -6995,10 +6995,10 @@ namespace Gsk {
                [CCode (has_construct_function = false)]
                protected Texture ();
                public void download (uint8 data, size_t stride);
-               [CCode (has_construct_function = false)]
-               public Texture.for_data ([CCode (array_length = false, type = "const guchar*")] uint8[] data, 
int width, int height, int stride);
-               [CCode (has_construct_function = false)]
-               public Texture.for_pixbuf (Gdk.Pixbuf pixbuf);
+               [CCode (cname = "gsk_texture_new_for_data")]
+               public static Gsk.Texture for_data ([CCode (array_length = false, type = "const guchar*")] 
uint8[] data, int width, int height, int stride);
+               [CCode (cname = "gsk_texture_new_for_pixbuf")]
+               public static Gsk.Texture for_pixbuf (Gdk.Pixbuf pixbuf);
                public int get_height ();
                public int get_width ();
                public Gsk.RenderNode node_new (Graphene.Rect bounds);
diff --git a/vapi/metadata/Gsk-4.0.metadata b/vapi/metadata/Gsk-4.0.metadata
index 664731d..c4eb479 100644
--- a/vapi/metadata/Gsk-4.0.metadata
+++ b/vapi/metadata/Gsk-4.0.metadata
@@ -11,4 +11,7 @@ repeating_linear_gradient_node_new
 *_node_get_* parent="Gsk.RenderNode" symbol_type="method" instance_idx=0
 
 Texture
+       // Factory method
+       .new_for_data symbol_type="function" name="for_data"
        .new_for_data.data array
+       .new_for_pixbuf symbol_type="function" name="for_pixbuf"


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