[gtkmm] Partially regenerate GTK .defs.



commit 86cdeee792d0a7c7160b962081be3c3f51febf13
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Feb 29 14:33:50 2016 +0100

    Partially regenerate GTK .defs.

 gtk/src/gtk_enums.defs   |   27 ++++++++++++++++++++--
 gtk/src/gtk_methods.defs |   55 +++++++++++++++++++++++++++++++++++++++++----
 gtk/src/gtk_signals.defs |   11 ++++++++-
 3 files changed, 84 insertions(+), 9 deletions(-)
---
diff --git a/gtk/src/gtk_enums.defs b/gtk/src/gtk_enums.defs
index 6168608..f0ba630 100644
--- a/gtk/src/gtk_enums.defs
+++ b/gtk/src/gtk_enums.defs
@@ -368,7 +368,8 @@
 ;;   GTK_DEBUG_NO_PIXEL_CACHE  = 1 << 16,
 ;;   GTK_DEBUG_INTERACTIVE     = 1 << 17,
 ;;   GTK_DEBUG_TOUCHSCREEN     = 1 << 18,
-;;   GTK_DEBUG_ACTIONS         = 1 << 19
+;;   GTK_DEBUG_ACTIONS         = 1 << 19,
+;;   GTK_DEBUG_RESIZE          = 1 << 20
 ;; } GtkDebugFlag;
 
 (define-flags-extended DebugFlag
@@ -395,6 +396,7 @@
     '("interactive" "GTK_DEBUG_INTERACTIVE" "1 << 17")
     '("touchscreen" "GTK_DEBUG_TOUCHSCREEN" "1 << 18")
     '("actions" "GTK_DEBUG_ACTIONS" "1 << 19")
+    '("resize" "GTK_DEBUG_RESIZE" "1 << 20")
   )
 )
 
@@ -1357,7 +1359,7 @@
 ;;   GTK_STATE_FLAG_LINK         = 1 << 9,
 ;;   GTK_STATE_FLAG_VISITED      = 1 << 10,
 ;;   GTK_STATE_FLAG_CHECKED      = 1 << 11,
-;;   GTK_STATE_FLAG_DND          = 1 << 12
+;;   GTK_STATE_FLAG_DROP_ACTIVE  = 1 << 12
 ;; } GtkStateFlags;
 
 (define-flags-extended StateFlags
@@ -1377,7 +1379,7 @@
     '("link" "GTK_STATE_FLAG_LINK" "1 << 9")
     '("visited" "GTK_STATE_FLAG_VISITED" "1 << 10")
     '("checked" "GTK_STATE_FLAG_CHECKED" "1 << 11")
-    '("dnd" "GTK_STATE_FLAG_DND" "1 << 12")
+    '("drop-active" "GTK_STATE_FLAG_DROP_ACTIVE" "1 << 12")
   )
 )
 
@@ -2536,6 +2538,25 @@
   )
 )
 
+;; From gtkstylecontext.h
+
+;; Original typedef:
+;; typedef enum {
+;;   GTK_STYLE_CONTEXT_PRINT_NONE         = 0,
+;;   GTK_STYLE_CONTEXT_PRINT_RECURSE      = 1 << 0,
+;;   GTK_STYLE_CONTEXT_PRINT_SHOW_STYLE   = 1 << 1
+;; } GtkStyleContextPrintFlags;
+
+(define-flags-extended StyleContextPrintFlags
+  (in-module "Gtk")
+  (c-name "GtkStyleContextPrintFlags")
+  (values
+    '("none" "GTK_STYLE_CONTEXT_PRINT_NONE" "0x0")
+    '("recurse" "GTK_STYLE_CONTEXT_PRINT_RECURSE" "1 << 0")
+    '("show-style" "GTK_STYLE_CONTEXT_PRINT_SHOW_STYLE" "1 << 1")
+  )
+)
+
 ;; From gtktextbuffer.h
 
 ;; Original typedef:
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index ba306a7..af17a3f 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -1716,6 +1716,7 @@
     '("interactive" "GTK_DEBUG_INTERACTIVE")
     '("touchscreen" "GTK_DEBUG_TOUCHSCREEN")
     '("actions" "GTK_DEBUG_ACTIONS")
+    '("resize" "GTK_DEBUG_RESIZE")
   )
 )
 
@@ -2294,7 +2295,7 @@
     '("link" "GTK_STATE_FLAG_LINK")
     '("visited" "GTK_STATE_FLAG_VISITED")
     '("checked" "GTK_STATE_FLAG_CHECKED")
-    '("dnd" "GTK_STATE_FLAG_DND")
+    '("drop-active" "GTK_STATE_FLAG_DROP_ACTIVE")
   )
 )
 
@@ -2950,6 +2951,17 @@
   )
 )
 
+(define-flags StyleContextPrintFlags
+  (in-module "Gtk")
+  (c-name "GtkStyleContextPrintFlags")
+  (gtype-id "GTK_TYPE_STYLE_CONTEXT_PRINT_FLAGS")
+  (values
+    '("none" "GTK_STYLE_CONTEXT_PRINT_NONE")
+    '("recurse" "GTK_STYLE_CONTEXT_PRINT_RECURSE")
+    '("show-style" "GTK_STYLE_CONTEXT_PRINT_SHOW_STYLE")
+  )
+)
+
 (define-enum TextBufferTargetInfo
   (in-module "Gtk")
   (c-name "GtkTextBufferTargetInfo")
@@ -22666,6 +22678,19 @@
   )
 )
 
+(define-function gtk_render_background_get_clip
+  (c-name "gtk_render_background_get_clip")
+  (return-type "none")
+  (parameters
+    '("GtkStyleContext*" "context")
+    '("gdouble" "x")
+    '("gdouble" "y")
+    '("gdouble" "width")
+    '("gdouble" "height")
+    '("GdkRectangle*" "out_clip")
+  )
+)
+
 (define-function gtk_render_frame
   (c-name "gtk_render_frame")
   (return-type "none")
@@ -25401,6 +25426,15 @@
   )
 )
 
+(define-method to_string
+  (of-object "GtkStyleContext")
+  (c-name "gtk_style_context_to_string")
+  (return-type "char*")
+  (parameters
+    '("GtkStyleContextPrintFlags" "flags")
+  )
+)
+
 
 
 ;; From gtkstyleprovider.h
@@ -27356,7 +27390,7 @@
 (define-method get_iter_at_pixel
   (of-object "GtkTextLayout")
   (c-name "gtk_text_layout_get_iter_at_pixel")
-  (return-type "none")
+  (return-type "gboolean")
   (parameters
     '("GtkTextIter*" "iter")
     '("gint" "x")
@@ -27367,7 +27401,7 @@
 (define-method get_iter_at_position
   (of-object "GtkTextLayout")
   (c-name "gtk_text_layout_get_iter_at_position")
-  (return-type "none")
+  (return-type "gboolean")
   (parameters
     '("GtkTextIter*" "iter")
     '("gint*" "trailing")
@@ -27932,6 +27966,12 @@
   (return-type "gboolean")
 )
 
+(define-method reset_cursor_blink
+  (of-object "GtkTextView")
+  (c-name "gtk_text_view_reset_cursor_blink")
+  (return-type "none")
+)
+
 (define-method get_cursor_locations
   (of-object "GtkTextView")
   (c-name "gtk_text_view_get_cursor_locations")
@@ -27956,7 +27996,7 @@
 (define-method get_iter_at_location
   (of-object "GtkTextView")
   (c-name "gtk_text_view_get_iter_at_location")
-  (return-type "none")
+  (return-type "gboolean")
   (parameters
     '("GtkTextIter*" "iter")
     '("gint" "x")
@@ -27967,7 +28007,7 @@
 (define-method get_iter_at_position
   (of-object "GtkTextView")
   (c-name "gtk_text_view_get_iter_at_position")
-  (return-type "none")
+  (return-type "gboolean")
   (parameters
     '("GtkTextIter*" "iter")
     '("gint*" "trailing")
@@ -32595,6 +32635,11 @@
   (return-type "GType")
 )
 
+(define-function gtk_style_context_print_flags_get_type
+  (c-name "gtk_style_context_print_flags_get_type")
+  (return-type "GType")
+)
+
 (define-function gtk_text_buffer_target_info_get_type
   (c-name "gtk_text_buffer_target_info_get_type")
   (return-type "GType")
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 8010bf5..970faa8 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -2536,6 +2536,15 @@
   (construct-only #f)
 )
 
+(define-property show-editor
+  (of-object "GtkColorButton")
+  (prop-type "GParamBoolean")
+  (docs "Whether to show the color editor right away")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 ;; From GtkColorChooser
 
 (define-signal color-activated
@@ -4199,7 +4208,7 @@
 
 (define-signal move-cursor
   (of-object "GtkFlowBox")
-  (return-type "void")
+  (return-type "gboolean")
   (when "last")
   (parameters
     '("GtkMovementStep" "p0")


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