[gtkmm] Regenerate gdk_methods.defs.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Regenerate gdk_methods.defs.
- Date: Sun, 15 Dec 2013 18:37:52 +0000 (UTC)
commit bac9ddc8716e86236bf132f69f16a26ae2d5c78a
Author: Murray Cumming <murrayc murrayc com>
Date: Sun Dec 15 19:36:54 2013 +0100
Regenerate gdk_methods.defs.
* gdk/src/gdk_methods.defs: Regenerate with gen_scripts/.
* gdk/src/window.hg: Add a conversion to fix the build, but see the
TODO comment about the possible ABI break in GTK+.
gdk/src/gdk_methods.defs | 30 +++++++++++++++++++++++++++++-
gdk/src/window.hg | 5 +++++
2 files changed, 34 insertions(+), 1 deletions(-)
---
diff --git a/gdk/src/gdk_methods.defs b/gdk/src/gdk_methods.defs
index 965e3bb..b3aa70b 100644
--- a/gdk/src/gdk_methods.defs
+++ b/gdk/src/gdk_methods.defs
@@ -421,6 +421,7 @@
(values
'("pending" "GDK_EVENT_PENDING")
'("pointer-emulated" "GDK_EVENT_POINTER_EMULATED")
+ '("flushed" "GDK_EVENT_FLUSHED")
)
)
@@ -4967,7 +4968,7 @@
(return-type "none")
(parameters
'("GdkGeometry*" "geometry")
- '("guint" "flags")
+ '("GdkWindowHints" "flags")
'("gint" "width")
'("gint" "height")
'("gint*" "new_width")
@@ -5053,6 +5054,33 @@
)
)
+(define-method set_event_compression
+ (of-object "GdkWindow")
+ (c-name "gdk_window_set_event_compression")
+ (return-type "none")
+ (parameters
+ '("gboolean" "event_compression")
+ )
+)
+
+(define-method get_event_compression
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_event_compression")
+ (return-type "gboolean")
+)
+
+(define-method set_shadow_width
+ (of-object "GdkWindow")
+ (c-name "gdk_window_set_shadow_width")
+ (return-type "none")
+ (parameters
+ '("gint" "left")
+ '("gint" "right")
+ '("gint" "top")
+ '("gint" "bottom")
+ )
+)
+
;; From gdkwindowimpl.h
diff --git a/gdk/src/window.hg b/gdk/src/window.hg
index 5096c8f..d30a1b4 100644
--- a/gdk/src/window.hg
+++ b/gdk/src/window.hg
@@ -322,6 +322,11 @@ public:
_WRAP_METHOD(static void process_all_updates(), gdk_window_process_all_updates)
_WRAP_METHOD(void process_updates(bool update_children), gdk_window_process_updates)
_WRAP_METHOD(static void set_debug_updates(bool setting = true), gdk_window_set_debug_updates)
+
+ //TODO: flags is now an enum. See
+ // https://git.gnome.org/browse/gtk+/commit/gdk/gdkwindow.c?id=4b42526e1f33b0ceb9231cee5e15861b97c05726
+ // Change it here too?
+ #m4 _CONVERSION(`guint',`GdkWindowHints',`(GdkWindowHints)($3)')
_WRAP_METHOD(static void constrain_size(const Geometry& geometry, guint flags, int width, int height, int&
new_width, int& new_height), gdk_window_constrain_size)
_WRAP_METHOD(void enable_synchronized_configure(), gdk_window_enable_synchronized_configure, deprecated
"This function is no longer needed.")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]