[gtkmm] Regenerate gdk-pixbufs defs.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Regenerate gdk-pixbufs defs.
- Date: Tue, 11 Jan 2011 23:08:59 +0000 (UTC)
commit aea038dce23b9beff27716bb8c7b47ab6d33a5ba
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Jan 12 00:08:46 2011 +0100
Regenerate gdk-pixbufs defs.
* gdk/src/gdk_pixbuf_methods.defs: Regenerated with h2defs.py.
* gdk/src/gdk_extra.defs: Remove mention of
gdk_pixbuf_render_threshold_alpha(), which does not seem to exist anywhere now.
ChangeLog | 8 +++++
gdk/src/gdk_extra.defs | 31 ---------------------
gdk/src/gdk_pixbuf_methods.defs | 57 +++++++++++++++++++++++++++++++++++++++
3 files changed, 65 insertions(+), 31 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 840c954..5048753 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-01-12 Murray Cumming <murrayc murrayc com>
+
+ Regenerate gdk-pixbufs defs.
+
+ * gdk/src/gdk_pixbuf_methods.defs: Regenerated with h2defs.py.
+ * gdk/src/gdk_extra.defs: Remove mention of
+ gdk_pixbuf_render_threshold_alpha(), which does not seem to exist anywhere now.
+
2011-01-11 Murray Cumming <murrayc murrayc com>
Fix the build.
diff --git a/gdk/src/gdk_extra.defs b/gdk/src/gdk_extra.defs
index 3a19d2d..ee9e554 100644
--- a/gdk/src/gdk_extra.defs
+++ b/gdk/src/gdk_extra.defs
@@ -1,21 +1,3 @@
-;; h2defs.py doesn't seem to list this method. Don't know why. murrayc.
-
-(define-method render_threshold_alpha
- (of-object "GdkPixbuf")
- (c-name "gdk_pixbuf_render_threshold_alpha")
- (return-type "none")
- (parameters
- '("GdkBitmap*" "bitmap")
- '("int" "src_x")
- '("int" "src_y")
- '("int" "dest_x")
- '("int" "dest_y")
- '("int" "width")
- '("int" "height")
- '("int" "alpha_threshold")
- )
-)
-
;; Stuff from gtk headers that really belongs in Gdk:
(define-function gtk_drag_finish
@@ -48,19 +30,6 @@
)
)
-(define-function gtk_drag_set_icon_pixmap
- (c-name "gtk_drag_set_icon_pixmap")
- (return-type "none")
- (parameters
- '("GdkDragContext*" "context")
- '("GdkColormap*" "colormap")
- '("GdkPixmap*" "pixmap")
- '("GdkBitmap*" "mask")
- '("gint" "hot_x")
- '("gint" "hot_y")
- )
-)
-
(define-function gtk_drag_set_icon_pixbuf
(c-name "gtk_drag_set_icon_pixbuf")
(return-type "none")
diff --git a/gdk/src/gdk_pixbuf_methods.defs b/gdk/src/gdk_pixbuf_methods.defs
index d90e252..1c8cf6b 100644
--- a/gdk/src/gdk_pixbuf_methods.defs
+++ b/gdk/src/gdk_pixbuf_methods.defs
@@ -498,6 +498,26 @@
)
)
+(define-function gdk_pixbuf_new_from_stream_async
+ (c-name "gdk_pixbuf_new_from_stream_async")
+ (return-type "none")
+ (parameters
+ '("GInputStream*" "stream")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-function gdk_pixbuf_new_from_stream_finish
+ (c-name "gdk_pixbuf_new_from_stream_finish")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("GAsyncResult*" "async_result")
+ '("GError**" "error")
+ )
+)
+
(define-function gdk_pixbuf_new_from_stream_at_scale
(c-name "gdk_pixbuf_new_from_stream_at_scale")
(return-type "GdkPixbuf*")
@@ -511,6 +531,20 @@
)
)
+(define-function gdk_pixbuf_new_from_stream_at_scale_async
+ (c-name "gdk_pixbuf_new_from_stream_at_scale_async")
+ (return-type "none")
+ (parameters
+ '("GInputStream*" "stream")
+ '("gint" "width")
+ '("gint" "height")
+ '("gboolean" "preserve_aspect_ratio")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
(define-method save_to_stream
(of-object "GdkPixbuf")
(c-name "gdk_pixbuf_save_to_stream")
@@ -524,6 +558,29 @@
(varargs #t)
)
+(define-method save_to_stream_async
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_save_to_stream_async")
+ (return-type "none")
+ (parameters
+ '("GOutputStream*" "stream")
+ '("const-gchar*" "type")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+ (varargs #t)
+)
+
+(define-function gdk_pixbuf_save_to_stream_finish
+ (c-name "gdk_pixbuf_save_to_stream_finish")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "async_result")
+ '("GError**" "error")
+ )
+)
+
(define-method add_alpha
(of-object "GdkPixbuf")
(c-name "gdk_pixbuf_add_alpha")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]