[gtkmm] Gdk, Gtk: Regenerate docs.xml and .defs files
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gdk, Gtk: Regenerate docs.xml and .defs files
- Date: Mon, 16 Apr 2018 09:23:53 +0000 (UTC)
commit c12b18e574d5c5366153913f581fedae8a55acfe
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Mon Apr 16 11:21:07 2018 +0200
Gdk, Gtk: Regenerate docs.xml and .defs files
and update gtk/src/gtk_signals.defs.patch.
gdk/src/gdk_docs.xml | 208 ++++--------
gdk/src/gdk_methods.defs | 66 ++---
gtk/src/gtk_docs.xml | 736 ++++++++++++++++++++++++----------------
gtk/src/gtk_enums.defs | 74 ++--
gtk/src/gtk_methods.defs | 279 ++++++++++++----
gtk/src/gtk_signals.defs | 14 +-
gtk/src/gtk_signals.defs.patch | 44 +--
7 files changed, 813 insertions(+), 608 deletions(-)
---
diff --git a/gdk/src/gdk_docs.xml b/gdk/src/gdk_docs.xml
index bc1adc7..ff546e9 100644
--- a/gdk/src/gdk_docs.xml
+++ b/gdk/src/gdk_docs.xml
@@ -3264,23 +3264,6 @@ clipped and all drawing can be skipped
</return>
</function>
-<function name="gdk_cairo_get_drawing_context">
-<description>
-Retrieves the #GdkDrawingContext that created the Cairo
-context @cr.
-
-
-</description>
-<parameters>
-<parameter name="cr">
-<parameter_description> a Cairo context
-</parameter_description>
-</parameter>
-</parameters>
-<return> a #GdkDrawingContext, if any is set
-</return>
-</function>
-
<function name="gdk_cairo_rectangle">
<description>
Adds the given rectangle to the current path of @cr.
@@ -3384,31 +3367,6 @@ Sets the specified #GdkRGBA as the source color of @cr.
<return></return>
</function>
-<function name="gdk_cairo_surface_create_from_pixbuf">
-<description>
-Creates an image surface with the same contents as
-the pixbuf.
-
-
-</description>
-<parameters>
-<parameter name="pixbuf">
-<parameter_description> a #GdkPixbuf
-</parameter_description>
-</parameter>
-<parameter name="scale">
-<parameter_description> the scale of the new surface, or 0 to use same as @surface
-</parameter_description>
-</parameter>
-<parameter name="for_surface">
-<parameter_description> The surface this will be drawn to, or %NULL
-</parameter_description>
-</parameter>
-</parameters>
-<return> a new cairo surface, must be freed with cairo_surface_destroy()
-</return>
-</function>
-
<function name="gdk_cairo_surface_upload_to_gl">
<description>
Uploads the contents of a Cairo @surface to a GL texture @target.
@@ -7463,38 +7421,6 @@ Retrieves the paint context used to draw with.
</return>
</function>
-<function name="gdk_drawing_context_get_surface">
-<description>
-Retrieves the surface that created the drawing @context.
-
-
-</description>
-<parameters>
-<parameter name="context">
-<parameter_description> a #GdkDrawingContext
-</parameter_description>
-</parameter>
-</parameters>
-<return> a #GdkSurface
-</return>
-</function>
-
-<function name="gdk_drawing_context_is_valid">
-<description>
-Checks whether the given #GdkDrawingContext is valid.
-
-
-</description>
-<parameters>
-<parameter name="context">
-<parameter_description> a #GdkDrawingContext
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if the context is valid
-</return>
-</function>
-
<function name="gdk_drop_finish">
<description>
Ends the drag operation after a drop.
@@ -10513,6 +10439,29 @@ it must not call this function.
<return></return>
</function>
+<function name="gdk_paintable_new_empty">
+<description>
+Returns a paintable that has the given intrinsic size and draws nothing.
+This is often useful for implementing the GdkPaintableClass:get_current_image()
+virtual function when the paintable is in an incomplete state (like a
+#GtkMediaStream before receiving the first frame).
+
+
+</description>
+<parameters>
+<parameter name="intrinsic_width">
+<parameter_description> The intrinsic width to report. Can be 0 for no width.
+</parameter_description>
+</parameter>
+<parameter name="intrinsic_height">
+<parameter_description> The intrinsic height to report. Can be 0 for no height.
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GdkPaintable
+</return>
+</function>
+
<function name="gdk_paintable_snapshot">
<description>
Snapshots the given paintable with the given @width and @height at the
@@ -15444,72 +15393,6 @@ call gdk_gl_context_make_current() or gdk_gl_context_realize().
</return>
</function>
-<function name="gdk_surface_create_similar_image_surface">
-<description>
-Create a new image surface that is efficient to draw on the
-given @surface.
-
-Initially the surface contents are all 0 (transparent if contents
-have transparency, black otherwise.)
-
-The @width and @height of the new surface are not affected by
-the scaling factor of the @surface, or by the @scale argument; they
-are the size of the surface in device pixels. If you wish to create
-an image surface capable of holding the contents of @surface you can
-use:
-
-|[<!-- language="C" -->
-int scale = gdk_surface_get_scale_factor (surface);
-int width = gdk_surface_get_width (surface) * scale;
-int height = gdk_surface_get_height (surface) * scale;
-
-// format is set elsewhere
-cairo_surface_t *surface =
-gdk_surface_create_similar_image_surface (surface,
-format,
-width, height,
-scale);
-]|
-
-Note that unlike cairo_surface_create_similar_image(), the new
-surface's device scale is set to @scale, or to the scale factor of
-@surface if @scale is 0.
-
-
-</description>
-<parameters>
-<parameter name="surface">
-<parameter_description> surface to make new surface similar to, or
-%NULL if none
-</parameter_description>
-</parameter>
-<parameter name="format">
-<parameter_description> the format for the new surface
-</parameter_description>
-</parameter>
-<parameter name="width">
-<parameter_description> width of the new surface
-</parameter_description>
-</parameter>
-<parameter name="height">
-<parameter_description> height of the new surface
-</parameter_description>
-</parameter>
-<parameter name="scale">
-<parameter_description> the scale of the new surface, or 0 to use same as @surface
-</parameter_description>
-</parameter>
-</parameters>
-<return> a pointer to the newly allocated surface. The caller
-owns the surface and should call cairo_surface_destroy() when done
-with it.
-
-This function always returns a valid pointer, but it will return a
-pointer to a “nil” surface if @other is already in an error state
-or any other error occurs.
-</return>
-</function>
-
<function name="gdk_surface_create_similar_surface">
<description>
Create a new surface that is as compatible as possible with the
@@ -16966,6 +16849,26 @@ a reference to the list of child surfaces in @surface
</return>
</function>
+<function name="gdk_surface_queue_expose">
+<description>
+Forces an expose event for @surface to be scheduled.
+
+If the invalid area of @surface is empty, an expose event will
+still be emitted. Its invalid region will be empty.
+
+This function is useful for implementations that track invalid
+regions on their own.
+
+</description>
+<parameters>
+<parameter name="surface">
+<parameter_description> a #GdkSurface
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gdk_surface_raise">
<description>
Raises @surface to the top of the Z-order (stacking order), so that
@@ -18262,6 +18165,31 @@ gdk_texture_new_from_file() to load it.
</return>
</function>
+<function name="gdk_texture_save_to_png">
+<description>
+Store the given @texture to the @filename as a PNG file.
+
+This is a utility function intended for debugging and testing.
+If you want more control over formats, proper error handling or
+want to store to a #GFile or other location, you might want to
+look into using the gdk-pixbuf library.
+
+
+</description>
+<parameters>
+<parameter name="texture">
+<parameter_description> a #GdkTexture
+</parameter_description>
+</parameter>
+<parameter name="filename">
+<parameter_description> the filename to store to
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if saving succeeded, %FALSE on failure.
+</return>
+</function>
+
<function name="gdk_unicode_to_keyval">
<description>
Convert from a ISO10646 character to a key symbol.
diff --git a/gdk/src/gdk_methods.defs b/gdk/src/gdk_methods.defs
index 0f5011d..702d2a0 100644
--- a/gdk/src/gdk_methods.defs
+++ b/gdk/src/gdk_methods.defs
@@ -729,16 +729,6 @@
)
)
-(define-function gdk_cairo_surface_create_from_pixbuf
- (c-name "gdk_cairo_surface_create_from_pixbuf")
- (return-type "cairo_surface_t*")
- (parameters
- '("const-GdkPixbuf*" "pixbuf")
- '("int" "scale")
- '("GdkSurface*" "for_surface")
- )
-)
-
(define-function gdk_cairo_draw_from_gl
(c-name "gdk_cairo_draw_from_gl")
(return-type "none")
@@ -755,14 +745,6 @@
)
)
-(define-function gdk_cairo_get_drawing_context
- (c-name "gdk_cairo_get_drawing_context")
- (return-type "GdkDrawingContext*")
- (parameters
- '("cairo_t*" "cr")
- )
-)
-
(define-function gdk_cairo_surface_upload_to_gl
(c-name "gdk_cairo_surface_upload_to_gl")
(return-type "none")
@@ -2387,12 +2369,6 @@
(return-type "GType")
)
-(define-method get_surface
- (of-object "GdkDrawingContext")
- (c-name "gdk_drawing_context_get_surface")
- (return-type "GdkSurface*")
-)
-
(define-method get_paint_context
(of-object "GdkDrawingContext")
(c-name "gdk_drawing_context_get_paint_context")
@@ -2405,12 +2381,6 @@
(return-type "cairo_region_t*")
)
-(define-method is_valid
- (of-object "GdkDrawingContext")
- (c-name "gdk_drawing_context_is_valid")
- (return-type "gboolean")
-)
-
(define-method get_cairo_context
(of-object "GdkDrawingContext")
(c-name "gdk_drawing_context_get_cairo_context")
@@ -3605,6 +3575,15 @@
(return-type "none")
)
+(define-function gdk_paintable_new_empty
+ (c-name "gdk_paintable_new_empty")
+ (return-type "GdkPaintable*")
+ (parameters
+ '("int" "intrinsic_width")
+ '("int" "intrinsic_height")
+ )
+)
+
;; From gdkpango.h
@@ -4558,18 +4537,6 @@
)
)
-(define-method create_similar_image_surface
- (of-object "GdkSurface")
- (c-name "gdk_surface_create_similar_image_surface")
- (return-type "cairo_surface_t*")
- (parameters
- '("cairo_format_t" "format")
- '("int" "width")
- '("int" "height")
- '("int" "scale")
- )
-)
-
(define-method beep
(of-object "GdkSurface")
(c-name "gdk_surface_beep")
@@ -4733,6 +4700,12 @@
)
)
+(define-method queue_expose
+ (of-object "GdkSurface")
+ (c-name "gdk_surface_queue_expose")
+ (return-type "none")
+)
+
(define-method invalidate_rect
(of-object "GdkSurface")
(c-name "gdk_surface_invalidate_rect")
@@ -4905,6 +4878,15 @@
)
)
+(define-method save_to_png
+ (of-object "GdkTexture")
+ (c-name "gdk_texture_save_to_png")
+ (return-type "gboolean")
+ (parameters
+ '("const-char*" "filename")
+ )
+)
+
;; From gdktypes.h
diff --git a/gtk/src/gtk_docs.xml b/gtk/src/gtk_docs.xml
index 9ca0577..e550d78 100644
--- a/gtk/src/gtk_docs.xml
+++ b/gtk/src/gtk_docs.xml
@@ -3144,11 +3144,6 @@ should point after the newly inserted text.
The ::activate signal is emitted when the user hits
the Enter key.
-While this signal is used as a
-[keybinding signal][GtkBindingSignal],
-it is also commonly used by applications to intercept
-activation of entries.
-
The default bindings for this signal are all forms of the Enter key.
</description>
@@ -5258,7 +5253,7 @@ ignore unknown values.
<parameter_description> Allow selecting a specific font size
</parameter_description>
</parameter>
-<parameter name="GTK_FONT_CHOOSER_LEVEL_VARIATION">
+<parameter name="GTK_FONT_CHOOSER_LEVEL_VARIATIONS">
<parameter_description> Allow changing OpenType font variation axes
</parameter_description>
</parameter>
@@ -8050,7 +8045,7 @@ The state of the button. This is reflecting the state of the associated
<property name="GtkModelButton:centered">
<description>
-Wether to render the button contents centered instead of left-aligned.
+Whether to render the button contents centered instead of left-aligned.
This property should be set for title-like items.
</description>
@@ -14088,6 +14083,13 @@ See also gtk_print_settings_set_paper_width().
</parameters>
</enum>
+<property name="GtkVideo:autoplay">
+<description>
+If the video should automatically begin playing.
+
+</description>
+</property>
+
<property name="GtkVideo:file">
<description>
The file played by this video if the video is playing a file.
@@ -14095,6 +14097,13 @@ The file played by this video if the video is playing a file.
</description>
</property>
+<property name="GtkVideo:loop">
+<description>
+If new media files should be set to loop.
+
+</description>
+</property>
+
<property name="GtkVideo:media-stream">
<description>
The media-stream played
@@ -14637,43 +14646,6 @@ else
</return>
</signal>
-<signal name="GtkWidget::draw">
-<description>
-This signal is emitted when a widget is supposed to render itself.
-The @widget's top left corner must be painted at the origin of
-the passed in context and be sized to the values returned by
-gtk_widget_get_allocated_width() and
-gtk_widget_get_allocated_height().
-
-Signal handlers connected to this signal can modify the cairo
-context passed as @cr in any way they like and don't need to
-restore it. The signal emission takes care of calling cairo_save()
-before and cairo_restore() after invoking the handler.
-
-The signal handler will get a @cr with a clip region already set to the
-widget's dirty region, i.e. to the area that needs repainting. Complicated
-widgets that want to avoid redrawing themselves completely can get the full
-extents of the clip region with gdk_cairo_get_clip_rectangle(), or they can
-get a finer-grained representation of the dirty region with
-cairo_copy_clip_rectangle_list().
-
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> the object which received the signal
-</parameter_description>
-</parameter>
-<parameter name="cr">
-<parameter_description> the cairo context to draw to
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE to stop other handlers from being invoked for the event.
-%FALSE to propagate the event further.
-</return>
-</signal>
-
<signal name="GtkWidget::event">
<description>
The GTK+ main loop will emit three signals for each GDK event delivered
@@ -15049,10 +15021,6 @@ allocated to the widget.
<parameter_description> the baseline
</parameter_description>
</parameter>
-<parameter name="out_clip">
-<parameter_description> Return address for the widget's clip
-</parameter_description>
-</parameter>
</parameters>
<return></return>
</signal>
@@ -15326,6 +15294,13 @@ Whether to use the #GtkWidget:vexpand property. See gtk_widget_get_vexpand_set()
</description>
</property>
+<property name="GtkWidgetPaintable:widget">
+<description>
+The observed widget or %NULL if none.
+
+</description>
+</property>
+
<signal name="GtkWindow::activate-default">
<description>
The ::activate-default signal is a
@@ -30710,8 +30685,6 @@ If the entry is not realized or has no icon at the given position,
@icon_area is filled with zeros. Otherwise, @icon_area will be filled
with the icon's allocation, relative to @entry's allocation.
-See also gtk_entry_get_text_area()
-
</description>
<parameters>
<parameter name="entry">
@@ -30746,11 +30719,11 @@ signal handler.
</parameter_description>
</parameter>
<parameter name="x">
-<parameter_description> the x coordinate of the position to find
+<parameter_description> the x coordinate of the position to find, relative to @entry
</parameter_description>
</parameter>
<parameter name="y">
-<parameter_description> the y coordinate of the position to find
+<parameter_description> the y coordinate of the position to find, relative to @entry
</parameter_description>
</parameter>
</parameters>
@@ -32110,6 +32083,24 @@ controller action
</return>
</function>
+<function name="gtk_event_controller_key_get_im_context">
+<description>
+Gets the IM context of a key controller.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="controller">
+<parameter_description> a #GtkEventControllerKey
+</parameter_description>
+</parameter>
+</parameters>
+<return> the IM context
+
+</return>
+</function>
+
<function name="gtk_event_controller_motion_new">
<description>
Creates a new event controller that will handle motion events
@@ -35601,7 +35592,7 @@ or -1 if no font size is selected.
<function name="gtk_font_chooser_get_language">
<description>
-Gets the currently-selected language for font features.
+Gets the language that is used for font features.
</description>
@@ -35769,6 +35760,24 @@ pango_context_set_font_map (context, fontmap);
<return></return>
</function>
+<function name="gtk_font_chooser_set_language">
+<description>
+Sets the language to use for font features.
+
+</description>
+<parameters>
+<parameter name="fontchooser">
+<parameter_description> a #GtkFontChooser
+</parameter_description>
+</parameter>
+<parameter name="language">
+<parameter_description> a language
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_font_chooser_set_level">
<description>
Sets the desired level of granularity for selecting fonts.
@@ -36785,6 +36794,133 @@ mouse events will be handled too.
<return></return>
</function>
+<function name="gtk_gesture_stylus_get_axes">
+<description>
+Returns the current values for the requested @axes. This function
+must be called from either the #GtkGestureStylus:down,
+#GtkGestureStylus:motion, #GtkGestureStylus:up or #GtkGestureStylus:proximity
+signals.
+
+
+</description>
+<parameters>
+<parameter name="gesture">
+<parameter_description> a GtkGestureStylus
+</parameter_description>
+</parameter>
+<parameter name="axes">
+<parameter_description> array of requested axes, terminated with #GDK_AXIS_IGNORE
+</parameter_description>
+</parameter>
+<parameter name="values">
+<parameter_description> return location for the axis values
+</parameter_description>
+</parameter>
+</parameters>
+<return> #TRUE if there is a current value for the axes
+</return>
+</function>
+
+<function name="gtk_gesture_stylus_get_axis">
+<description>
+Returns the current value for the requested @axis. This function
+must be called from either the #GtkGestureStylus:down,
+#GtkGestureStylus:motion, #GtkGestureStylus:up or #GtkGestureStylus:proximity
+signals.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="gesture">
+<parameter_description> a #GtkGestureStylus
+</parameter_description>
+</parameter>
+<parameter name="axis">
+<parameter_description> requested device axis
+</parameter_description>
+</parameter>
+<parameter name="value">
+<parameter_description> return location for the axis value
+</parameter_description>
+</parameter>
+</parameters>
+<return> #TRUE if there is a current value for the axis
+
+</return>
+</function>
+
+<function name="gtk_gesture_stylus_get_backlog">
+<description>
+By default, GTK+ will limit rate of input events. On stylus input where
+accuracy of strokes is paramount, this function returns the accumulated
+coordinate/timing state before the emission of the current
+#GtkGestureStylus:motion signal.
+
+This function may only be called within a #GtkGestureStylus::motion
+signal handler, the state given in this signal and obtainable through
+gtk_gesture_stylus_get_axis() call express the latest (most up-to-date)
+state in motion history.
+
+@backlog is provided in chronological order.
+
+
+</description>
+<parameters>
+<parameter name="gesture">
+<parameter_description> a #GtkGestureStylus
+</parameter_description>
+</parameter>
+<parameter name="backlog">
+<parameter_description> coordinates and times for the backlog events
+</parameter_description>
+</parameter>
+<parameter name="n_elems">
+<parameter_description> return location for the number of elements
+</parameter_description>
+</parameter>
+</parameters>
+<return> #TRUE if there is a backlog to unfold in the current state.
+</return>
+</function>
+
+<function name="gtk_gesture_stylus_get_device_tool">
+<description>
+Returns the #GdkDeviceTool currently driving input through this gesture.
+This function must be called from either the #GtkGestureStylus:down,
+#GtkGestureStylus:motion, #GtkGestureStylus:up or #GtkGestureStylus:proximity
+signals.
+
+
+</description>
+<parameters>
+<parameter name="gesture">
+<parameter_description> a #GtkGestureStylus
+</parameter_description>
+</parameter>
+</parameters>
+<return> The current stylus tool
+</return>
+</function>
+
+<function name="gtk_gesture_stylus_new">
+<description>
+Creates a new #GtkGestureStylus.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="widget">
+<parameter_description> a #GtkWidget
+</parameter_description>
+</parameter>
+</parameters>
+<return> a newly created stylus gesture
+
+</return>
+</function>
+
<function name="gtk_gesture_swipe_get_velocity">
<description>
If the gesture is recognized, this function returns %TRUE and fill in
@@ -37318,7 +37454,7 @@ Creates a new #GtkGLArea widget.
</description>
<parameters>
</parameters>
-<return> the newly created #GtkGLArea
+<return> a new #GtkGLArea
</return>
</function>
@@ -55629,7 +55765,7 @@ text (even if the actual text is blank), set #GtkProgressBar:show-text to
</parameter_description>
</parameter>
<parameter name="show_text">
-<parameter_description> whether to show superimposed text
+<parameter_description> whether to show text
</parameter_description>
</parameter>
</parameters>
@@ -58071,8 +58207,6 @@ This function will render the icon in @texture at exactly its size,
regardless of scaling factors, which may not be appropriate when
drawing on displays with high pixel densities.
-You probably want to use gtk_render_icon_surface() instead, if you
-already have a Cairo surface.
</description>
<parameters>
@@ -58100,36 +58234,6 @@ already have a Cairo surface.
<return></return>
</function>
-<function name="gtk_render_icon_surface">
-<description>
-Renders the icon in @surface at the specified @x and @y coordinates.
-
-</description>
-<parameters>
-<parameter name="context">
-<parameter_description> a #GtkStyleContext
-</parameter_description>
-</parameter>
-<parameter name="cr">
-<parameter_description> a #cairo_t
-</parameter_description>
-</parameter>
-<parameter name="surface">
-<parameter_description> a #cairo_surface_t containing the icon to draw
-</parameter_description>
-</parameter>
-<parameter name="x">
-<parameter_description> X position for the @icon
-</parameter_description>
-</parameter>
-<parameter name="y">
-<parameter_description> Y position for the @incon
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gtk_render_insertion_cursor">
<description>
Draws a text caret on @cr at the specified index of @layout.
@@ -59885,6 +59989,24 @@ search bar (as in our main example).
<return></return>
</function>
+<function name="gtk_search_bar_get_key_capture_widget">
+<description>
+Gets the widget that @bar is capturing key events from.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="bar">
+<parameter_description> a #GtkSearchBar
+</parameter_description>
+</parameter>
+</parameters>
+<return> The key capture widget.
+
+</return>
+</function>
+
<function name="gtk_search_bar_get_search_mode">
<description>
Returns whether the search mode is on or off.
@@ -59990,6 +60112,29 @@ gtk_search_bar_connect_entry().
</return>
</function>
+<function name="gtk_search_bar_set_key_capture_widget">
+<description>
+Sets @widget as the widget that @bar will capture key events from.
+
+If key events are handled by the search bar, the bar will
+be shown, and the entry populated with the entered text.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="bar">
+<parameter_description> a #GtkSearchBar
+</parameter_description>
+</parameter>
+<parameter name="widget">
+<parameter_description> a #GtkWidget
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_search_bar_set_search_mode">
<description>
Switches the search mode on or off.
@@ -60029,6 +60174,24 @@ toggle button.
<return></return>
</function>
+<function name="gtk_search_entry_get_key_capture_widget">
+<description>
+Gets the widget that @entry is capturing key events from.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="entry">
+<parameter_description> a #GtkSearchEntry
+</parameter_description>
+</parameter>
+</parameters>
+<return> The key capture widget.
+
+</return>
+</function>
+
<function name="gtk_search_entry_handle_event">
<description>
This function should be called when the top-level window
@@ -60074,6 +60237,33 @@ empty, and a clear icon when it isn't.
</return>
</function>
+<function name="gtk_search_entry_set_key_capture_widget">
+<description>
+Sets @widget as the widget that @entry will capture key events from.
+
+Key events are consumed by the search entry to start or
+continue a search.
+
+If the entry is part of a #GtkSearchBar, it is preferable
+to call gtk_search_bar_set_key_capture_widget() instead, which
+will reveal the entry in addition to triggering the search entry.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="entry">
+<parameter_description> a #GtkSearchEntry
+</parameter_description>
+</parameter>
+<parameter name="widget">
+<parameter_description> a #GtkWidget
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_selection_data_copy">
<description>
Makes a copy of a #GtkSelectionData-struct and its data.
@@ -61122,6 +61312,11 @@ constructed by @snapshot and frees @snapshot.
<parameter_description> a #GtkSnapshot
</parameter_description>
</parameter>
+<parameter name="size">
+<parameter_description> The size of the resulting paintable
+or %NULL to use the bounds of the snapshot
+</parameter_description>
+</parameter>
</parameters>
<return> a newly-created #GdkPaintable
</return>
@@ -61186,10 +61381,6 @@ Creates a new #GtkSnapshot.
<parameter_description> whether to keep node names (for debugging purposes)
</parameter_description>
</parameter>
-<parameter name="clip">
-<parameter_description> the clip region to use, or %NULL
-</parameter_description>
-</parameter>
<parameter name="name">
<parameter_description> a printf-style format string to create the node name
</parameter_description>
@@ -61547,6 +61738,11 @@ called after this is gtk_snapshot_unref().
<parameter_description> a #GtkSnapshot
</parameter_description>
</parameter>
+<parameter name="size">
+<parameter_description> The size of the resulting paintable
+or %NULL to use the bounds of the snapshot
+</parameter_description>
+</parameter>
</parameters>
<return> a new #GdkPaintable
</return>
@@ -63873,9 +64069,8 @@ This function is used to initialize a GTK+ test program.
It will in turn call g_test_init() and gtk_init() to properly
initialize the testing framework and graphical toolkit. It’ll
-also set the program’s locale to “C” and prevent loading of rc
-files and Gtk+ modules. This is done to make tets program
-environments as deterministic as possible.
+also set the program’s locale to “C”. This is done to make test
+program environments as deterministic as possible.
Like gtk_init() and g_test_init(), any known arguments will be
processed and stripped from @argc and @argv.
@@ -78081,6 +78276,22 @@ gtk_tree_view_enable_model_drag_source(). Calling this method sets
<return></return>
</function>
+<function name="gtk_video_get_autoplay">
+<description>
+Returns %TRUE if videos have been set to loop via gtk_video_set_loop().
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkVideo
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if streams should autoplay
+</return>
+</function>
+
<function name="gtk_video_get_file">
<description>
Gets the file played by @self or %NULL if not playing back
@@ -78098,6 +78309,22 @@ a file.
</return>
</function>
+<function name="gtk_video_get_loop">
+<description>
+Returns %TRUE if videos have been set to loop via gtk_video_set_loop().
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkVideo
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if streams should loop
+</return>
+</function>
+
<function name="gtk_video_get_media_stream">
<description>
Gets the media stream managed by @self or %NULL if none.
@@ -78195,6 +78422,25 @@ This is a utility function that calls gtk_video_new_for_file(),
</return>
</function>
+<function name="gtk_video_set_autoplay">
+<description>
+Sets whether @self automatically starts playback when it becomes visible
+or when a new file gets loaded.
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkVideo
+</parameter_description>
+</parameter>
+<parameter name="autoplay">
+<parameter_description> whether media streams should autoplay
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_video_set_file">
<description>
Makes @self play the given @file.
@@ -78233,6 +78479,24 @@ This is a utility function that calls gtk_video_set_file(),
<return></return>
</function>
+<function name="gtk_video_set_loop">
+<description>
+Sets whether new files loaded by @self should be set to loop.
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkVideo
+</parameter_description>
+</parameter>
+<parameter name="loop">
+<parameter_description> whether media streams should loop
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_video_set_media_stream">
<description>
Sets the media stream to be played back. @self will take full control
@@ -78441,7 +78705,7 @@ not automatically imply a relayout or repaint. If you want a
repaint or relayout, and aren’t changing widget properties that
would trigger that (for example, changing the text of a #GtkLabel),
then you will have to call gtk_widget_queue_resize() or
-gtk_widget_queue_draw_area() yourself.
+gtk_widget_queue_draw() yourself.
gdk_frame_clock_get_frame_time() should generally be used for timing
continuous animations and
@@ -78969,6 +79233,38 @@ share a common ancestor.
</return>
</function>
+<function name="gtk_widget_compute_bounds">
+<description>
+Computes the bounds for @widget in the coordinate space of @target.
+FIXME: Explain what "bounds" are.
+
+If the operation is successful, %TRUE is returned. If @widget has no
+bounds or the bounds cannot be expressed in @target's coordinate space
+(for example if both widgets are in different windows), %FALSE is
+returned and @bounds is set to the zero rectangle.
+
+It is valid for @widget and @target to be the same widget.
+
+
+</description>
+<parameters>
+<parameter name="widget">
+<parameter_description> the #GtkWidget to query
+</parameter_description>
+</parameter>
+<parameter name="target">
+<parameter_description> the #GtkWidget
+</parameter_description>
+</parameter>
+<parameter name="out_bounds">
+<parameter_description> the rectangle taking the bounds
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the bounds could be computed
+</return>
+</function>
+
<function name="gtk_widget_compute_expand">
<description>
Computes whether a container should give this widget extra space
@@ -79171,41 +79467,6 @@ by another #GtkWidget than @widget.
</return>
</function>
-<function name="gtk_widget_draw">
-<description>
-Draws @widget to @cr. The top left corner of the widget will be
-drawn to the currently set origin point of @cr.
-
-You should pass a cairo context as @cr argument that is in an
-original state. Otherwise the resulting drawing is undefined. For
-example changing the operator using cairo_set_operator() or the
-line width using cairo_set_line_width() might have unwanted side
-effects.
-You may however change the context’s transform matrix - like with
-cairo_scale(), cairo_translate() or cairo_set_matrix() and clip
-region with cairo_clip() prior to calling this function. Also, it
-is fine to modify the context with cairo_save() and
-cairo_push_group() prior to calling this function.
-
-Note that special-purpose widgets may contain special code for
-rendering to the screen and might appear differently on screen
-and when rendered using gtk_widget_draw().
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> the widget to draw. It must be drawable (see
-gtk_widget_is_drawable()) and a size must have been allocated.
-</parameter_description>
-</parameter>
-<parameter name="cr">
-<parameter_description> a cairo context to draw to
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gtk_widget_error_bell">
<description>
Notifies the user about an input-related error on this widget.
@@ -79233,9 +79494,7 @@ the event signals on a widget (those signals should never
be emitted without using this function to do so).
If you want to synthesize an event though, don’t use this function;
instead, use gtk_main_do_event() so the event will behave as if
-it were in the event queue. Don’t synthesize expose events; instead,
-use gtk_widget_queue_draw_region() to invalidate a region of the
-window.
+it were in the event queue.
</description>
@@ -79327,7 +79586,7 @@ If no action group was found matching @prefix, then %NULL is returned.
<description>
Returns the baseline that has currently been allocated to @widget.
This function is intended to be used when implementing handlers
-for the #GtkWidget::draw function, and when allocating child
+for the #GtkWidget::snapshot function, and when allocating child
widgets in #GtkWidget::size_allocate.
@@ -79345,8 +79604,6 @@ widgets in #GtkWidget::size_allocate.
<function name="gtk_widget_get_allocated_height">
<description>
Returns the height that has currently been allocated to @widget.
-This function is intended to be used when implementing handlers
-for the #GtkWidget::draw function.
</description>
@@ -79393,8 +79650,6 @@ If a widget is not visible, its allocated size is 0.
<function name="gtk_widget_get_allocated_width">
<description>
Returns the width that has currently been allocated to @widget.
-This function is intended to be used when implementing handlers
-for the #GtkWidget::draw function.
</description>
@@ -79521,30 +79776,6 @@ never should be called by an application.
</return>
</function>
-<function name="gtk_widget_get_clip">
-<description>
-Retrieves the widget’s clip area.
-
-The clip area is the area in which all of @widget's drawing will
-happen. Other toolkits call it the bounding box.
-
-Historically, in GTK+ the clip area has been equal to the allocation
-retrieved via gtk_widget_get_allocation().
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> a #GtkWidget
-</parameter_description>
-</parameter>
-<parameter name="clip">
-<parameter_description> a pointer to a #GtkAllocation to copy to
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gtk_widget_get_clipboard">
<description>
This is a utility function to get the clipboard object for the
@@ -80960,7 +81191,7 @@ grandchild, great grandchild, etc.
<function name="gtk_widget_is_drawable">
<description>
Determines whether @widget can be drawn to. A widget can be drawn
-to if it is mapped and visible.
+if it is mapped and visible.
</description>
@@ -81066,9 +81297,9 @@ When %FALSE is returned, the caller should continue with keyboard
navigation outside the widget, e.g. by calling
gtk_widget_child_focus() on the widget’s toplevel.
-The default ::keynav-failed handler returns %TRUE for
+The default ::keynav-failed handler returns %FALSE for
%GTK_DIR_TAB_FORWARD and %GTK_DIR_TAB_BACKWARD. For the other
-values of #GtkDirectionType it returns %FALSE.
+values of #GtkDirectionType it returns %TRUE.
Whenever the default handler returns %TRUE, it also calls
gtk_widget_error_bell() to notify the user of the failed keyboard
@@ -81279,6 +81510,57 @@ cast the object yourself.
</return>
</function>
+<function name="gtk_widget_paintable_get_widget">
+<description>
+Returns the widget that is observed or %NULL
+if none.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkWidgetPaintable
+</parameter_description>
+</parameter>
+</parameters>
+<return> the observed widget.
+</return>
+</function>
+
+<function name="gtk_widget_paintable_new">
+<description>
+Creates a new widget paintable observing the given widget.
+
+
+</description>
+<parameters>
+<parameter name="widget">
+<parameter_description> a #GtkWidget or %NULL
+</parameter_description>
+</parameter>
+</parameters>
+<return> a new #GtkWidgetPaintable
+</return>
+</function>
+
+<function name="gtk_widget_paintable_set_widget">
+<description>
+Sets the widget that should be observed.
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkWidgetPaintable
+</parameter_description>
+</parameter>
+<parameter name="widget">
+<parameter_description> the widget to observe or %NULL
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_widget_path_append_for_widget">
<description>
Appends the data from @widget to the widget hierarchy represented
@@ -82051,64 +82333,9 @@ See gtk_widget_compute_expand().
<function name="gtk_widget_queue_draw">
<description>
-Equivalent to calling gtk_widget_queue_draw_area() for the
-entire area of a widget.
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> a #GtkWidget
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
-<function name="gtk_widget_queue_draw_area">
-<description>
-Convenience function that calls gtk_widget_queue_draw_region() on
-the region created from the given coordinates.
-
-The region here is specified in widget coordinates of @widget.
-
-@width or @height may be 0, in this case this function does
-nothing. Negative values for @width and @height are not allowed.
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> a #GtkWidget
-</parameter_description>
-</parameter>
-<parameter name="x">
-<parameter_description> x coordinate of upper-left corner of rectangle to redraw
-</parameter_description>
-</parameter>
-<parameter name="y">
-<parameter_description> y coordinate of upper-left corner of rectangle to redraw
-</parameter_description>
-</parameter>
-<parameter name="width">
-<parameter_description> width of region to draw
-</parameter_description>
-</parameter>
-<parameter name="height">
-<parameter_description> height of region to draw
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
-<function name="gtk_widget_queue_draw_region">
-<description>
-Invalidates the area of @widget defined by @region. Makes sure
-that the compositor updates the speicifed region of the toplevel
-window.
-
-Normally you would only use this function in widget
-implementations. You might also use it to schedule a redraw of a
-#GtkDrawingArea or some portion thereof.
+Schedules this widget to be redrawn in paint phase of the
+current or the next frame. This means @widget's GtkWidgetClass.snapshot()
+implementation will be called.
</description>
<parameters>
@@ -82116,10 +82343,6 @@ implementations. You might also use it to schedule a redraw of a
<parameter_description> a #GtkWidget
</parameter_description>
</parameter>
-<parameter name="region">
-<parameter_description> region to draw, in @widget's coordinates
-</parameter_description>
-</parameter>
</parameters>
<return></return>
</function>
@@ -82180,8 +82403,7 @@ This function is primarily used in widget implementations, and
isn’t very useful otherwise. Many times when you think you might
need it, a better approach is to connect to a signal that will be
called after the widget is realized automatically, such as
-#GtkWidget::draw. Or simply g_signal_connect () to the
-#GtkWidget::realize signal.
+#GtkWidget::realize.
</description>
<parameters>
@@ -82462,31 +82684,6 @@ never should be called by an application.
<return></return>
</function>
-<function name="gtk_widget_set_clip">
-<description>
-Sets the widget’s clip. This must not be used directly,
-but from within a widget’s size_allocate method.
-
-The clip set should be the area that @widget draws on. If @widget is a
-#GtkContainer, the area must contain all children's clips.
-
-If this function is not called by @widget during a ::size-allocate handler,
-the clip will be set to @widget's allocation.
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> a #GtkWidget
-</parameter_description>
-</parameter>
-<parameter name="clip">
-<parameter_description> a pointer to a #GtkAllocation to copy from
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gtk_widget_set_cursor">
<description>
Sets the cursor to be shown when pointer devices point towards @widget.
@@ -82960,29 +83157,6 @@ window is realized.
<return></return>
</function>
-<function name="gtk_widget_set_realized">
-<description>
-Marks the widget as being realized. This function must only be
-called after all #GdkSurfaces for the @widget have been created
-and registered.
-
-This function should only ever be called in a derived widget's
-“realize” or “unrealize” implementation.
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> a #GtkWidget
-</parameter_description>
-</parameter>
-<parameter name="realized">
-<parameter_description> %TRUE to mark the widget as realized
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gtk_widget_set_receives_default">
<description>
Specifies whether @widget will be treated as the default widget
@@ -83360,11 +83534,6 @@ as well as at least 0×0 in size.
<parameter_description> The baseline of the child, or -1
</parameter_description>
</parameter>
-<parameter name="out_clip">
-<parameter_description> Return location for @widget's clip region. The returned clip
-will be in the coordinate system of @widget's parent, just like @allocation.
-</parameter_description>
-</parameter>
</parameters>
<return></return>
</function>
@@ -84345,8 +84514,7 @@ inside a handler for the #GtkWidget::configure-event signal:
static void
on_size_allocate (GtkWidget *widget,
const GtkAllocation *allocation,
-int baseline,
-GtkAllocation *out_clip)
+int baseline)
{
int new_width, new_height;
diff --git a/gtk/src/gtk_enums.defs b/gtk/src/gtk_enums.defs
index e8321f7..dca7497 100644
--- a/gtk/src/gtk_enums.defs
+++ b/gtk/src/gtk_enums.defs
@@ -336,22 +336,21 @@
;; typedef enum {
;; GTK_DEBUG_TEXT = 1 << 0,
;; GTK_DEBUG_TREE = 1 << 1,
-;; GTK_DEBUG_UPDATES = 1 << 2,
-;; GTK_DEBUG_KEYBINDINGS = 1 << 3,
-;; GTK_DEBUG_MODULES = 1 << 4,
-;; GTK_DEBUG_GEOMETRY = 1 << 5,
-;; GTK_DEBUG_ICONTHEME = 1 << 6,
-;; GTK_DEBUG_PRINTING = 1 << 7,
-;; GTK_DEBUG_BUILDER = 1 << 8,
-;; GTK_DEBUG_SIZE_REQUEST = 1 << 9,
-;; GTK_DEBUG_NO_CSS_CACHE = 1 << 10,
-;; GTK_DEBUG_BASELINES = 1 << 11,
-;; GTK_DEBUG_INTERACTIVE = 1 << 12,
-;; GTK_DEBUG_TOUCHSCREEN = 1 << 13,
-;; GTK_DEBUG_ACTIONS = 1 << 14,
-;; GTK_DEBUG_RESIZE = 1 << 15,
-;; GTK_DEBUG_LAYOUT = 1 << 16,
-;; GTK_DEBUG_SNAPSHOT = 1 << 17
+;; GTK_DEBUG_KEYBINDINGS = 1 << 2,
+;; GTK_DEBUG_MODULES = 1 << 3,
+;; GTK_DEBUG_GEOMETRY = 1 << 4,
+;; GTK_DEBUG_ICONTHEME = 1 << 5,
+;; GTK_DEBUG_PRINTING = 1 << 6,
+;; GTK_DEBUG_BUILDER = 1 << 7,
+;; GTK_DEBUG_SIZE_REQUEST = 1 << 8,
+;; GTK_DEBUG_NO_CSS_CACHE = 1 << 9,
+;; GTK_DEBUG_BASELINES = 1 << 10,
+;; GTK_DEBUG_INTERACTIVE = 1 << 11,
+;; GTK_DEBUG_TOUCHSCREEN = 1 << 12,
+;; GTK_DEBUG_ACTIONS = 1 << 13,
+;; GTK_DEBUG_RESIZE = 1 << 14,
+;; GTK_DEBUG_LAYOUT = 1 << 15,
+;; GTK_DEBUG_SNAPSHOT = 1 << 16
;; } GtkDebugFlag;
(define-flags-extended DebugFlag
@@ -360,22 +359,21 @@
(values
'("text" "GTK_DEBUG_TEXT" "1 << 0")
'("tree" "GTK_DEBUG_TREE" "1 << 1")
- '("updates" "GTK_DEBUG_UPDATES" "1 << 2")
- '("keybindings" "GTK_DEBUG_KEYBINDINGS" "1 << 3")
- '("modules" "GTK_DEBUG_MODULES" "1 << 4")
- '("geometry" "GTK_DEBUG_GEOMETRY" "1 << 5")
- '("icontheme" "GTK_DEBUG_ICONTHEME" "1 << 6")
- '("printing" "GTK_DEBUG_PRINTING" "1 << 7")
- '("builder" "GTK_DEBUG_BUILDER" "1 << 8")
- '("size-request" "GTK_DEBUG_SIZE_REQUEST" "1 << 9")
- '("no-css-cache" "GTK_DEBUG_NO_CSS_CACHE" "1 << 10")
- '("baselines" "GTK_DEBUG_BASELINES" "1 << 11")
- '("interactive" "GTK_DEBUG_INTERACTIVE" "1 << 12")
- '("touchscreen" "GTK_DEBUG_TOUCHSCREEN" "1 << 13")
- '("actions" "GTK_DEBUG_ACTIONS" "1 << 14")
- '("resize" "GTK_DEBUG_RESIZE" "1 << 15")
- '("layout" "GTK_DEBUG_LAYOUT" "1 << 16")
- '("snapshot" "GTK_DEBUG_SNAPSHOT" "1 << 17")
+ '("keybindings" "GTK_DEBUG_KEYBINDINGS" "1 << 2")
+ '("modules" "GTK_DEBUG_MODULES" "1 << 3")
+ '("geometry" "GTK_DEBUG_GEOMETRY" "1 << 4")
+ '("icontheme" "GTK_DEBUG_ICONTHEME" "1 << 5")
+ '("printing" "GTK_DEBUG_PRINTING" "1 << 6")
+ '("builder" "GTK_DEBUG_BUILDER" "1 << 7")
+ '("size-request" "GTK_DEBUG_SIZE_REQUEST" "1 << 8")
+ '("no-css-cache" "GTK_DEBUG_NO_CSS_CACHE" "1 << 9")
+ '("baselines" "GTK_DEBUG_BASELINES" "1 << 10")
+ '("interactive" "GTK_DEBUG_INTERACTIVE" "1 << 11")
+ '("touchscreen" "GTK_DEBUG_TOUCHSCREEN" "1 << 12")
+ '("actions" "GTK_DEBUG_ACTIONS" "1 << 13")
+ '("resize" "GTK_DEBUG_RESIZE" "1 << 14")
+ '("layout" "GTK_DEBUG_LAYOUT" "1 << 15")
+ '("snapshot" "GTK_DEBUG_SNAPSHOT" "1 << 16")
)
)
@@ -1626,11 +1624,11 @@
;; Original typedef:
;; typedef enum {
-;; GTK_FONT_CHOOSER_LEVEL_FAMILY = 0,
-;; GTK_FONT_CHOOSER_LEVEL_STYLE = 1 << 0,
-;; GTK_FONT_CHOOSER_LEVEL_SIZE = 1 << 1,
-;; GTK_FONT_CHOOSER_LEVEL_VARIATION = 1 << 2,
-;; GTK_FONT_CHOOSER_LEVEL_FEATURES = 1 << 3
+;; GTK_FONT_CHOOSER_LEVEL_FAMILY = 0,
+;; GTK_FONT_CHOOSER_LEVEL_STYLE = 1 << 0,
+;; GTK_FONT_CHOOSER_LEVEL_SIZE = 1 << 1,
+;; GTK_FONT_CHOOSER_LEVEL_VARIATIONS = 1 << 2,
+;; GTK_FONT_CHOOSER_LEVEL_FEATURES = 1 << 3
;; } GtkFontChooserLevel;
(define-flags-extended FontChooserLevel
@@ -1640,7 +1638,7 @@
'("family" "GTK_FONT_CHOOSER_LEVEL_FAMILY" "0x0")
'("style" "GTK_FONT_CHOOSER_LEVEL_STYLE" "1 << 0")
'("size" "GTK_FONT_CHOOSER_LEVEL_SIZE" "1 << 1")
- '("variation" "GTK_FONT_CHOOSER_LEVEL_VARIATION" "1 << 2")
+ '("variations" "GTK_FONT_CHOOSER_LEVEL_VARIATIONS" "1 << 2")
'("features" "GTK_FONT_CHOOSER_LEVEL_FEATURES" "1 << 3")
)
)
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index 81459a6..ecbabfa 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -1328,7 +1328,6 @@
(values
'("text" "GTK_DEBUG_TEXT")
'("tree" "GTK_DEBUG_TREE")
- '("updates" "GTK_DEBUG_UPDATES")
'("keybindings" "GTK_DEBUG_KEYBINDINGS")
'("modules" "GTK_DEBUG_MODULES")
'("geometry" "GTK_DEBUG_GEOMETRY")
@@ -2085,7 +2084,7 @@
'("family" "GTK_FONT_CHOOSER_LEVEL_FAMILY")
'("style" "GTK_FONT_CHOOSER_LEVEL_STYLE")
'("size" "GTK_FONT_CHOOSER_LEVEL_SIZE")
- '("variation" "GTK_FONT_CHOOSER_LEVEL_VARIATION")
+ '("variations" "GTK_FONT_CHOOSER_LEVEL_VARIATIONS")
'("features" "GTK_FONT_CHOOSER_LEVEL_FEATURES")
)
)
@@ -9467,6 +9466,54 @@
+;; From gtkeventcontrollerkey.h
+
+(define-function gtk_event_controller_key_get_type
+ (c-name "gtk_event_controller_key_get_type")
+ (return-type "GType")
+)
+
+(define-function gtk_event_controller_key_new
+ (c-name "gtk_event_controller_key_new")
+ (is-constructor-of "GtkEventControllerKey")
+ (return-type "GtkEventController*")
+ (parameters
+ '("GtkWidget*" "widget")
+ )
+)
+
+(define-method set_im_context
+ (of-object "GtkEventControllerKey")
+ (c-name "gtk_event_controller_key_set_im_context")
+ (return-type "none")
+ (parameters
+ '("GtkIMContext*" "im_context")
+ )
+)
+
+(define-method get_im_context
+ (of-object "GtkEventControllerKey")
+ (c-name "gtk_event_controller_key_get_im_context")
+ (return-type "GtkIMContext*")
+)
+
+(define-method forward
+ (of-object "GtkEventControllerKey")
+ (c-name "gtk_event_controller_key_forward")
+ (return-type "gboolean")
+ (parameters
+ '("GtkWidget*" "widget")
+ )
+)
+
+(define-method get_group
+ (of-object "GtkEventControllerKey")
+ (c-name "gtk_event_controller_key_get_group")
+ (return-type "guint")
+)
+
+
+
;; From gtkeventcontrollermotion.h
(define-function gtk_event_controller_motion_get_type
@@ -10949,6 +10996,15 @@
(return-type "char*")
)
+(define-method set_language
+ (of-object "GtkFontChooser")
+ (c-name "gtk_font_chooser_set_language")
+ (return-type "none")
+ (parameters
+ '("const-char*" "language")
+ )
+)
+
;; From gtkfontchooserutils.h
@@ -11409,6 +11465,60 @@
+;; From gtkgesturestylus.h
+
+(define-function gtk_gesture_stylus_get_type
+ (c-name "gtk_gesture_stylus_get_type")
+ (return-type "GType")
+)
+
+(define-function gtk_gesture_stylus_new
+ (c-name "gtk_gesture_stylus_new")
+ (is-constructor-of "GtkGestureStylus")
+ (return-type "GtkGesture*")
+ (parameters
+ '("GtkWidget*" "widget")
+ )
+)
+
+(define-method get_axis
+ (of-object "GtkGestureStylus")
+ (c-name "gtk_gesture_stylus_get_axis")
+ (return-type "gboolean")
+ (parameters
+ '("GdkAxisUse" "axis")
+ '("gdouble*" "value")
+ )
+)
+
+(define-method get_axes
+ (of-object "GtkGestureStylus")
+ (c-name "gtk_gesture_stylus_get_axes")
+ (return-type "gboolean")
+ (parameters
+ '("GdkAxisUse[]" "axes")
+ '("gdouble**" "values")
+ )
+)
+
+(define-method get_backlog
+ (of-object "GtkGestureStylus")
+ (c-name "gtk_gesture_stylus_get_backlog")
+ (return-type "gboolean")
+ (parameters
+ '("GdkTimeCoord**" "backlog")
+ '("guint*" "n_elems")
+ )
+)
+
+(define-method get_device_tool
+ (of-object "GtkGestureStylus")
+ (c-name "gtk_gesture_stylus_get_device_tool")
+ (return-type "GdkDeviceTool*")
+)
+
+
+
;; From gtkgestureswipe.h
(define-function gtk_gesture_swipe_get_type
@@ -20852,18 +20962,6 @@
)
)
-(define-function gtk_render_icon_surface
- (c-name "gtk_render_icon_surface")
- (return-type "none")
- (parameters
- '("GtkStyleContext*" "context")
- '("cairo_t*" "cr")
- '("cairo_surface_t*" "surface")
- '("gdouble" "x")
- '("gdouble" "y")
- )
-)
-
;; From gtkrevealer.h
@@ -21567,6 +21665,21 @@
)
)
+(define-method set_key_capture_widget
+ (of-object "GtkSearchBar")
+ (c-name "gtk_search_bar_set_key_capture_widget")
+ (return-type "none")
+ (parameters
+ '("GtkWidget*" "widget")
+ )
+)
+
+(define-method get_key_capture_widget
+ (of-object "GtkSearchBar")
+ (c-name "gtk_search_bar_get_key_capture_widget")
+ (return-type "GtkWidget*")
+)
+
;; From gtksearchengine.h
@@ -21611,6 +21724,21 @@
)
)
+(define-method set_key_capture_widget
+ (of-object "GtkSearchEntry")
+ (c-name "gtk_search_entry_set_key_capture_widget")
+ (return-type "none")
+ (parameters
+ '("GtkWidget*" "widget")
+ )
+)
+
+(define-method get_key_capture_widget
+ (of-object "GtkSearchEntry")
+ (c-name "gtk_search_entry_get_key_capture_widget")
+ (return-type "GtkWidget*")
+)
+
;; From gtkselection.h
@@ -22158,7 +22286,6 @@
(return-type "GtkSnapshot*")
(parameters
'("gboolean" "record_names")
- '("const-cairo_region_t*" "clip")
'("const-char*" "name")
)
(varargs #t)
@@ -22174,6 +22301,9 @@
(of-object "GtkSnapshot")
(c-name "gtk_snapshot_free_to_paintable")
(return-type "GdkPaintable*")
+ (parameters
+ '("const-graphene_size_t*" "size")
+ )
)
(define-method to_node
@@ -22186,6 +22316,9 @@
(of-object "GtkSnapshot")
(c-name "gtk_snapshot_to_paintable")
(return-type "GdkPaintable*")
+ (parameters
+ '("const-graphene_size_t*" "size")
+ )
)
(define-method get_record_names
@@ -22405,7 +22538,7 @@
(c-name "gtk_snapshot_clips_rect")
(return-type "gboolean")
(parameters
- '("const-cairo_rectangle_int_t*" "bounds")
+ '("const-graphene_rect_t*" "bounds")
)
)
@@ -28893,6 +29026,36 @@
)
)
+(define-method get_autoplay
+ (of-object "GtkVideo")
+ (c-name "gtk_video_get_autoplay")
+ (return-type "gboolean")
+)
+
+(define-method set_autoplay
+ (of-object "GtkVideo")
+ (c-name "gtk_video_set_autoplay")
+ (return-type "none")
+ (parameters
+ '("gboolean" "autoplay")
+ )
+)
+
+(define-method get_loop
+ (of-object "GtkVideo")
+ (c-name "gtk_video_get_loop")
+ (return-type "gboolean")
+)
+
+(define-method set_loop
+ (of-object "GtkVideo")
+ (c-name "gtk_video_set_loop")
+ (return-type "none")
+ (parameters
+ '("gboolean" "loop")
+ )
+)
+
;; From gtkviewport.h
@@ -29019,42 +29182,12 @@
(return-type "none")
)
-(define-method draw
- (of-object "GtkWidget")
- (c-name "gtk_widget_draw")
- (return-type "none")
- (parameters
- '("cairo_t*" "cr")
- )
-)
-
(define-method queue_draw
(of-object "GtkWidget")
(c-name "gtk_widget_queue_draw")
(return-type "none")
)
-(define-method queue_draw_area
- (of-object "GtkWidget")
- (c-name "gtk_widget_queue_draw_area")
- (return-type "none")
- (parameters
- '("gint" "x")
- '("gint" "y")
- '("gint" "width")
- '("gint" "height")
- )
-)
-
-(define-method queue_draw_region
- (of-object "GtkWidget")
- (c-name "gtk_widget_queue_draw_region")
- (return-type "none")
- (parameters
- '("const-cairo_region_t*" "region")
- )
-)
-
(define-method queue_resize
(of-object "GtkWidget")
(c-name "gtk_widget_queue_resize")
@@ -29086,7 +29219,6 @@
(parameters
'("const-GtkAllocation*" "allocation")
'("int" "baseline")
- '("GtkAllocation*" "out_clip")
)
)
@@ -29453,15 +29585,6 @@
(return-type "gboolean")
)
-(define-method set_realized
- (of-object "GtkWidget")
- (c-name "gtk_widget_set_realized")
- (return-type "none")
- (parameters
- '("gboolean" "realized")
- )
-)
-
(define-method get_realized
(of-object "GtkWidget")
(c-name "gtk_widget_get_realized")
@@ -29589,6 +29712,16 @@
)
)
+(define-method compute_bounds
+ (of-object "GtkWidget")
+ (c-name "gtk_widget_compute_bounds")
+ (return-type "gboolean")
+ (parameters
+ '("GtkWidget*" "target")
+ '("graphene_rect_t*" "out_bounds")
+ )
+)
+
(define-method get_width
(of-object "GtkWidget")
(c-name "gtk_widget_get_width")
@@ -29601,15 +29734,6 @@
(return-type "int")
)
-(define-method get_clip
- (of-object "GtkWidget")
- (c-name "gtk_widget_get_clip")
- (return-type "none")
- (parameters
- '("GtkAllocation*" "clip")
- )
-)
-
(define-method child_focus
(of-object "GtkWidget")
(c-name "gtk_widget_child_focus")
@@ -30409,6 +30533,31 @@
+;; From gtkwidgetpaintable.h
+
+(define-method paintable_new
+ (of-object "GtkWidget")
+ (c-name "gtk_widget_paintable_new")
+ (return-type "GdkPaintable*")
+)
+
+(define-method get_widget
+ (of-object "GtkWidgetPaintable")
+ (c-name "gtk_widget_paintable_get_widget")
+ (return-type "GtkWidget*")
+)
+
+(define-method set_widget
+ (of-object "GtkWidgetPaintable")
+ (c-name "gtk_widget_paintable_set_widget")
+ (return-type "none")
+ (parameters
+ '("GtkWidget*" "widget")
+ )
+)
+
+
+
;; From gtkwidgetpath.h
(define-function gtk_widget_path_get_type
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index b0b47c3..acc9e39 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -4010,7 +4010,7 @@
(prop-type "GParamString")
(docs "Language for which features have been selected")
(readable #t)
- (writable #f)
+ (writable #t)
(construct-only #f)
(default-value "")
)
@@ -4022,7 +4022,7 @@
(readable #t)
(writable #t)
(construct-only #f)
- (default-value "GTK_FONT_CHOOSER_LEVEL_STYLE | GTK_FONT_CHOOSER_LEVEL_SIZE |
GTK_FONT_CHOOSER_LEVEL_VARIATION")
+ (default-value "GTK_FONT_CHOOSER_LEVEL_STYLE | GTK_FONT_CHOOSER_LEVEL_SIZE")
)
(define-property preview-text
@@ -10983,7 +10983,6 @@
(parameters
'("const-GdkRectangle*" "p0")
'("gint" "p1")
- '("GdkRectangle*" "p2")
)
)
@@ -11039,15 +11038,6 @@
)
)
-(define-signal draw
- (of-object "GtkWidget")
- (return-type "gboolean")
- (flags "Run Last")
- (parameters
- '("cairo_t*" "p0")
- )
-)
-
(define-signal mnemonic-activate
(of-object "GtkWidget")
(return-type "gboolean")
diff --git a/gtk/src/gtk_signals.defs.patch b/gtk/src/gtk_signals.defs.patch
index 23f996c..776dc70 100644
--- a/gtk/src/gtk_signals.defs.patch
+++ b/gtk/src/gtk_signals.defs.patch
@@ -1,6 +1,6 @@
---- ./../../gtk/src/gtk_signals.defs.orig 2018-01-19 16:06:25.104751631 +0100
-+++ ./../../gtk/src/gtk_signals.defs 2018-01-19 16:20:58.044451716 +0100
-@@ -2276,11 +2276,11 @@
+--- ./../../gtk/src/gtk_signals.defs.orig 2018-04-11 18:14:10.215329071 +0200
++++ ./../../gtk/src/gtk_signals.defs 2018-04-11 18:27:32.206901498 +0200
+@@ -2267,11 +2267,11 @@
(define-signal color-activated
(of-object "GtkColorChooser")
(return-type "void")
@@ -13,7 +13,7 @@
(define-property rgba
(of-object "GtkColorChooser")
-@@ -2342,11 +2342,11 @@
+@@ -2333,11 +2333,11 @@
(flags "Run Last, Action")
)
@@ -26,7 +26,7 @@
'("const-gchar*" "p0")
)
)
-@@ -2570,11 +2570,11 @@
+@@ -2561,11 +2561,11 @@
(of-object "GtkCssProvider")
(return-type "void")
(flags "Run Last")
@@ -39,7 +39,7 @@
;; From GtkDialog
-@@ -2735,21 +2735,21 @@
+@@ -2726,21 +2726,21 @@
(of-object "GtkEntry")
(return-type "void")
(flags "Run Last")
@@ -63,7 +63,7 @@
(define-signal preedit-changed
(of-object "GtkEntry")
-@@ -5727,11 +5727,11 @@
+@@ -5718,11 +5718,11 @@
(define-signal toggle-size-request
(of-object "GtkMenuItem")
(return-type "void")
@@ -76,7 +76,7 @@
(define-signal toggle-size-allocate
(of-object "GtkMenuItem")
-@@ -6686,11 +6686,11 @@
+@@ -6677,11 +6677,11 @@
)
)
@@ -89,7 +89,7 @@
(define-signal update-custom-widget
(of-object "GtkPrintOperation")
-@@ -7428,11 +7428,11 @@
+@@ -7291,11 +7291,11 @@
;; From GtkScale
@@ -102,7 +102,7 @@
'("gdouble" "p0")
)
)
-@@ -8620,11 +8620,11 @@
+@@ -8473,11 +8473,11 @@
(define-signal input
(of-object "GtkSpinButton")
(return-type "gint")
@@ -115,7 +115,7 @@
(define-signal output
(of-object "GtkSpinButton")
-@@ -9271,11 +9271,11 @@
+@@ -9061,11 +9061,11 @@
(define-signal mark-set
(of-object "GtkTextBuffer")
(return-type "void")
@@ -128,7 +128,7 @@
)
(define-signal mark-deleted
-@@ -9291,23 +9291,23 @@
+@@ -9081,23 +9081,23 @@
(of-object "GtkTextBuffer")
(return-type "void")
(flags "Run Last")
@@ -156,7 +156,7 @@
(define-signal begin-user-action
(of-object "GtkTextBuffer")
-@@ -10565,11 +10565,11 @@
+@@ -10355,11 +10355,11 @@
(return-type "void")
(flags "Run First")
(parameters
@@ -169,7 +169,7 @@
;; From GtkTreeSelection
-@@ -11189,11 +11189,11 @@
+@@ -10979,11 +10979,11 @@
(define-signal size-allocate
(of-object "GtkWidget")
(return-type "void")
@@ -178,11 +178,11 @@
- '("GdkRectangle*" "p0")
+ '("const-GdkRectangle*" "p0")
'("gint" "p1")
- '("GdkRectangle*" "p2")
)
)
-@@ -11243,20 +11243,20 @@
+ (define-signal state-flags-changed
+@@ -11032,11 +11032,11 @@
(of-object "GtkWidget")
(return-type "void")
(flags "Run First, No Recurse, No Hooks")
@@ -193,19 +193,9 @@
)
)
- (define-signal draw
- (of-object "GtkWidget")
- (return-type "gboolean")
- (flags "Run Last")
- (parameters
-- '("CairoContext*" "p0")
-+ '("cairo_t*" "p0")
- )
- )
-
(define-signal mnemonic-activate
(of-object "GtkWidget")
-@@ -11313,20 +11313,20 @@
+@@ -11093,20 +11093,20 @@
(define-signal key-press-event
(of-object "GtkWidget")
(return-type "gboolean")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]