[gtkmm] Gdk, Gtk: Regenerate docs.xml and .defs files



commit c5f01b713fb2b0783cf1dafa95d53a6d17fc936d
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Thu Apr 25 15:24:00 2019 +0200

    Gdk, Gtk: Regenerate docs.xml and .defs files
    
    and update gtk_vfuncs.defs, gtk_generate_[docs|enums|methods].sh.
    Some gtk files have been moved from gtk+/gtk to gtk+/gtk/css.
    The gtk_generate_*.sh scripts shall search for info in gtk/gtk/css.

 gdk/src/gdk_docs.xml                      | 110 ----
 gdk/src/gdk_methods.defs                  |  60 --
 gtk/src/gtk_docs.xml                      | 986 +++++++++++++++++-------------
 gtk/src/gtk_enums.defs                    | 133 ++--
 gtk/src/gtk_methods.defs                  | 402 ++++++------
 gtk/src/gtk_signals.defs                  |  62 +-
 gtk/src/gtk_vfuncs.defs                   |   9 -
 tools/gen_scripts/gtk_generate_docs.sh    |   2 +-
 tools/gen_scripts/gtk_generate_enums.sh   |   7 +-
 tools/gen_scripts/gtk_generate_methods.sh |   7 +-
 10 files changed, 828 insertions(+), 950 deletions(-)
---
diff --git a/gdk/src/gdk_docs.xml b/gdk/src/gdk_docs.xml
index 7ead7572..9e785db6 100644
--- a/gdk/src/gdk_docs.xml
+++ b/gdk/src/gdk_docs.xml
@@ -15900,22 +15900,6 @@ the 16-bit coordinates of X11.
 <return></return>
 </function>
 
-<function name="gdk_surface_get_group">
-<description>
-Returns the group leader surface for @surface. See gdk_surface_set_group().
-
-
-</description>
-<parameters>
-<parameter name="surface">
-<parameter_description> a toplevel #GdkSurface
-</parameter_description>
-</parameter>
-</parameters>
-<return> the group leader surface for @surface
-</return>
-</function>
-
 <function name="gdk_surface_get_height">
 <description>
 Returns the height of the given @surface.
@@ -17104,33 +17088,6 @@ appropriate sizes.
 <return></return>
 </function>
 
-<function name="gdk_surface_set_group">
-<description>
-Sets the group leader surface for @surface. By default,
-GDK sets the group leader for all toplevel surfaces
-to a global surface implicitly created by GDK. With this function
-you can override this default.
-
-The group leader surface allows the window manager to distinguish
-all surfaces that belong to a single application. It may for example
-allow users to minimize/unminimize all surfaces belonging to an
-application at once. You should only set a non-default group surface
-if your application pretends to be multiple applications.
-
-</description>
-<parameters>
-<parameter name="surface">
-<parameter_description> a toplevel #GdkSurface
-</parameter_description>
-</parameter>
-<parameter name="leader">
-<parameter_description> group leader surface, or %NULL to restore the default group leader surface
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="gdk_surface_set_icon_list">
 <description>
 Sets a list of icons for the surface. One of these will be used
@@ -17397,54 +17354,6 @@ to create toplevel surfaces.
 <return></return>
 </function>
 
-<function name="gdk_surface_set_skip_pager_hint">
-<description>
-Toggles whether a surface should appear in a pager (workspace
-switcher, or other desktop utility program that displays a small
-thumbnail representation of the surfaces on the desktop). If a
-surface’s semantic type as specified with gdk_surface_set_type_hint()
-already fully describes the surface, this function should
-not be called in addition, instead you should
-allow the surface to be treated according to standard policy for
-its semantic type.
-
-</description>
-<parameters>
-<parameter name="surface">
-<parameter_description> a toplevel #GdkSurface
-</parameter_description>
-</parameter>
-<parameter name="skips_pager">
-<parameter_description> %TRUE to skip the pager
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
-<function name="gdk_surface_set_skip_taskbar_hint">
-<description>
-Toggles whether a surface should appear in a task list or surface
-list. If a surface’s semantic type as specified with
-gdk_surface_set_type_hint() already fully describes the surface, this
-function should not be called in addition,
-instead you should allow the surface to be treated according to
-standard policy for its semantic type.
-
-</description>
-<parameters>
-<parameter name="surface">
-<parameter_description> a toplevel #GdkSurface
-</parameter_description>
-</parameter>
-<parameter name="skips_taskbar">
-<parameter_description> %TRUE to skip the taskbar
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="gdk_surface_set_startup_id">
 <description>
 When using GTK, typically you should use gtk_window_set_startup_id()
@@ -17554,25 +17463,6 @@ The hint must be set before the surface is mapped.
 <return></return>
 </function>
 
-<function name="gdk_surface_set_urgency_hint">
-<description>
-Toggles whether a surface needs the user's
-urgent attention.
-
-</description>
-<parameters>
-<parameter name="surface">
-<parameter_description> a toplevel #GdkSurface
-</parameter_description>
-</parameter>
-<parameter name="urgent">
-<parameter_description> %TRUE if the surface is urgent
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="gdk_surface_show">
 <description>
 Like gdk_surface_show_unraised(), but also raises the surface to the
diff --git a/gdk/src/gdk_methods.defs b/gdk/src/gdk_methods.defs
index bf0b2b9f..7e952439 100644
--- a/gdk/src/gdk_methods.defs
+++ b/gdk/src/gdk_methods.defs
@@ -4111,33 +4111,6 @@
   )
 )
 
-(define-method set_skip_taskbar_hint
-  (of-object "GdkSurface")
-  (c-name "gdk_surface_set_skip_taskbar_hint")
-  (return-type "none")
-  (parameters
-    '("gboolean" "skips_taskbar")
-  )
-)
-
-(define-method set_skip_pager_hint
-  (of-object "GdkSurface")
-  (c-name "gdk_surface_set_skip_pager_hint")
-  (return-type "none")
-  (parameters
-    '("gboolean" "skips_pager")
-  )
-)
-
-(define-method set_urgency_hint
-  (of-object "GdkSurface")
-  (c-name "gdk_surface_set_urgency_hint")
-  (return-type "none")
-  (parameters
-    '("gboolean" "urgent")
-  )
-)
-
 (define-method set_geometry_hints
   (of-object "GdkSurface")
   (c-name "gdk_surface_set_geometry_hints")
@@ -4368,21 +4341,6 @@
   )
 )
 
-(define-method set_group
-  (of-object "GdkSurface")
-  (c-name "gdk_surface_set_group")
-  (return-type "none")
-  (parameters
-    '("GdkSurface*" "leader")
-  )
-)
-
-(define-method get_group
-  (of-object "GdkSurface")
-  (c-name "gdk_surface_get_group")
-  (return-type "GdkSurface*")
-)
-
 (define-method set_decorations
   (of-object "GdkSurface")
   (c-name "gdk_surface_set_decorations")
@@ -4590,24 +4548,6 @@
   (return-type "none")
 )
 
-(define-method invalidate_rect
-  (of-object "GdkSurface")
-  (c-name "gdk_surface_invalidate_rect")
-  (return-type "none")
-  (parameters
-    '("const-GdkRectangle*" "rect")
-  )
-)
-
-(define-method invalidate_region
-  (of-object "GdkSurface")
-  (c-name "gdk_surface_invalidate_region")
-  (return-type "none")
-  (parameters
-    '("const-cairo_region_t*" "region")
-  )
-)
-
 (define-method freeze_updates
   (of-object "GdkSurface")
   (c-name "gdk_surface_freeze_updates")
diff --git a/gtk/src/gtk_docs.xml b/gtk/src/gtk_docs.xml
index f0ac77b5..102f8ea0 100644
--- a/gtk/src/gtk_docs.xml
+++ b/gtk/src/gtk_docs.xml
@@ -2688,122 +2688,93 @@ widget.
 </parameters>
 </enum>
 
-<signal name="GtkCssProvider::parsing-error">
+<enum name="GtkCssParserError">
 <description>
-Signals that a parsing error occurred. the @path, @line and @position
-describe the actual location of the error as accurately as possible.
+Errors that can occur while parsing CSS.
 
-Parsing errors are never fatal, so the parsing will resume after
-the error. Errors may however cause parts of the given
-data or even all of it to not be parsed at all. So it is a useful idea
-to check that the parsing succeeds by connecting to this signal.
-
-Note that this signal may be emitted at any time as the css provider
-may opt to defer parsing parts or all of the input to a later time
-than when a loading function was called.
+These errors are unexpected and will cause parts of the given CSS
+to be ignored.
 
 </description>
 <parameters>
-<parameter name="provider">
-<parameter_description> the provider that had a parsing error
+<parameter name="GTK_CSS_PARSER_ERROR_FAILED">
+<parameter_description> Unknown failure.
 </parameter_description>
 </parameter>
-<parameter name="section">
-<parameter_description> section the error happened in
+<parameter name="GTK_CSS_PARSER_ERROR_SYNTAX">
+<parameter_description> The given text does not form valid
+syntax
 </parameter_description>
 </parameter>
-<parameter name="error">
-<parameter_description> The parsing error
+<parameter name="GTK_CSS_PARSER_ERROR_IMPORT">
+<parameter_description> Failed to import a resource
+</parameter_description>
+</parameter>
+<parameter name="GTK_CSS_PARSER_ERROR_NAME">
+<parameter_description> The given name has not been defined
+</parameter_description>
+</parameter>
+<parameter name="GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE">
+<parameter_description> The given value is not
+correct
 </parameter_description>
 </parameter>
 </parameters>
-<return></return>
-</signal>
+</enum>
 
-<enum name="GtkCssProviderError">
+<enum name="GtkCssParserWarning">
 <description>
-Error codes for %GTK_CSS_PROVIDER_ERROR.
+Warnings that can occur while parsing CSS.
+
+Unlike #GtkCssParserErrors, warnings do not cause the parser to
+skip any input, but they indicate issues that should be fixed.
 
 </description>
 <parameters>
-<parameter name="GTK_CSS_PROVIDER_ERROR_FAILED">
-<parameter_description> Failed.
-</parameter_description>
-</parameter>
-<parameter name="GTK_CSS_PROVIDER_ERROR_SYNTAX">
-<parameter_description> Syntax error.
-</parameter_description>
-</parameter>
-<parameter name="GTK_CSS_PROVIDER_ERROR_IMPORT">
-<parameter_description> Import error.
-</parameter_description>
-</parameter>
-<parameter name="GTK_CSS_PROVIDER_ERROR_NAME">
-<parameter_description> Name error.
-</parameter_description>
-</parameter>
-<parameter name="GTK_CSS_PROVIDER_ERROR_DEPRECATED">
-<parameter_description> Deprecation error.
+<parameter name="GTK_CSS_PARSER_WARNING_DEPRECATED">
+<parameter_description> The given construct is
+deprecated and will be removed in a future version
 </parameter_description>
 </parameter>
-<parameter name="GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE">
-<parameter_description> Unknown value.
+<parameter name="GTK_CSS_PARSER_WARNING_SYNTAX">
+<parameter_description> A syntax construct was used
+that should be avoided
 </parameter_description>
 </parameter>
 </parameters>
 </enum>
 
-<enum name="GtkCssSectionType">
+<signal name="GtkCssProvider::parsing-error">
 <description>
-The different types of sections indicate parts of a CSS document as
-parsed by GTK’s CSS parser. They are oriented towards the
-[CSS Grammar](http://www.w3.org/TR/CSS21/grammar.html),
-but may contain extensions.
+Signals that a parsing error occurred. the @path, @line and @position
+describe the actual location of the error as accurately as possible.
+
+Parsing errors are never fatal, so the parsing will resume after
+the error. Errors may however cause parts of the given
+data or even all of it to not be parsed at all. So it is a useful idea
+to check that the parsing succeeds by connecting to this signal.
 
-More types might be added in the future as the parser incorporates
-more features.
+Note that this signal may be emitted at any time as the css provider
+may opt to defer parsing parts or all of the input to a later time
+than when a loading function was called.
 
 </description>
 <parameters>
-<parameter name="GTK_CSS_SECTION_DOCUMENT">
-<parameter_description> The section describes a complete document.
-This section time is the only one where gtk_css_section_get_parent()
-might return %NULL.
-</parameter_description>
-</parameter>
-<parameter name="GTK_CSS_SECTION_IMPORT">
-<parameter_description> The section defines an import rule.
-</parameter_description>
-</parameter>
-<parameter name="GTK_CSS_SECTION_COLOR_DEFINITION">
-<parameter_description> The section defines a color. This
-is a GTK extension to CSS.
-</parameter_description>
-</parameter>
-<parameter name="GTK_CSS_SECTION_RULESET">
-<parameter_description> The section defines a CSS ruleset.
-</parameter_description>
-</parameter>
-<parameter name="GTK_CSS_SECTION_SELECTOR">
-<parameter_description> The section defines a CSS selector.
-</parameter_description>
-</parameter>
-<parameter name="GTK_CSS_SECTION_DECLARATION">
-<parameter_description> The section defines the declaration of
-a CSS variable.
+<parameter name="provider">
+<parameter_description> the provider that had a parsing error
 </parameter_description>
 </parameter>
-<parameter name="GTK_CSS_SECTION_VALUE">
-<parameter_description> The section defines the value of a CSS declaration.
+<parameter name="section">
+<parameter_description> section the error happened in
 </parameter_description>
 </parameter>
-<parameter name="GTK_CSS_SECTION_KEYFRAMES">
-<parameter_description> The section defines keyframes. See [CSS
-Animations](http://dev.w3.org/csswg/css3-animations/#keyframes) for details
+<parameter name="error">
+<parameter_description> The parsing error
 </parameter_description>
 </parameter>
 </parameters>
-</enum>
+<return></return>
+</signal>
 
 <enum name="GtkDeleteType">
 <description>
@@ -3943,6 +3914,14 @@ Signals that the pointer has entered the widget.
 <parameter_description> the y coordinate
 </parameter_description>
 </parameter>
+<parameter name="crossing_mode">
+<parameter_description> the crossing mode of this event
+</parameter_description>
+</parameter>
+<parameter name="notify_type">
+<parameter_description> the kind of crossing event
+</parameter_description>
+</parameter>
 </parameters>
 <return></return>
 </signal>
@@ -3957,6 +3936,14 @@ Signals that pointer has left the widget.
 <parameter_description> The object that received the signal
 </parameter_description>
 </parameter>
+<parameter name="crossing_mode">
+<parameter_description> the crossing mode of this event
+</parameter_description>
+</parameter>
+<parameter name="notify_type">
+<parameter_description> the kind of crossing event
+</parameter_description>
+</parameter>
 </parameters>
 <return></return>
 </signal>
@@ -7646,22 +7633,6 @@ toggle space for consistency.
 </description>
 </property>
 
-<property name="GtkMenuBar:child-pack-direction">
-<description>
-The child pack direction of the menubar. It determines how
-the widgets contained in child menuitems are arranged.
-
-</description>
-</property>
-
-<property name="GtkMenuBar:pack-direction">
-<description>
-The pack direction of the menubar. It determines how
-menuitems are arranged in the menubar.
-
-</description>
-</property>
-
 <property name="GtkMenuButton:align-widget">
 <description>
 The #GtkWidget to use to align the menu with.
@@ -8485,32 +8456,6 @@ location for the allocation
 </return>
 </signal>
 
-<enum name="GtkPackDirection">
-<description>
-Determines how widgets should be packed inside menubars
-and menuitems contained in menubars.
-
-</description>
-<parameters>
-<parameter name="GTK_PACK_DIRECTION_LTR">
-<parameter_description> Widgets are packed left-to-right
-</parameter_description>
-</parameter>
-<parameter name="GTK_PACK_DIRECTION_RTL">
-<parameter_description> Widgets are packed right-to-left
-</parameter_description>
-</parameter>
-<parameter name="GTK_PACK_DIRECTION_TTB">
-<parameter_description> Widgets are packed top-to-bottom
-</parameter_description>
-</parameter>
-<parameter name="GTK_PACK_DIRECTION_BTT">
-<parameter_description> Widgets are packed bottom-to-top
-</parameter_description>
-</parameter>
-</parameters>
-</enum>
-
 <enum name="GtkPackType">
 <description>
 Represents the packing location #GtkBox children
@@ -8803,6 +8748,27 @@ between two notebooks, whose tab rows would otherwise merge visually).
 </description>
 </property>
 
+<enum name="GtkPickFlags">
+<description>
+Flags that influence the behavior of gtk_widget_pick()
+
+</description>
+<parameters>
+<parameter name="GTK_PICK_DEFAULT">
+<parameter_description> The default behavior, include widgets that are receiving events
+</parameter_description>
+</parameter>
+<parameter name="GTK_PICK_INSENSITIVE">
+<parameter_description> Include widgets that are insensitive
+</parameter_description>
+</parameter>
+<parameter name="GTK_PICK_NON_TARGETABLE">
+<parameter_description> Include widgets that are marked as non-targetable. See #GtkWidget::can-target 
+</parameter_description>
+</parameter>
+</parameters>
+</enum>
+
 <property name="GtkPicture:alternative-text">
 <description>
 The alternative textual description for the picture.
@@ -27556,25 +27522,330 @@ Creates a new CSS node.
 </return>
 </function>
 
-<function name="gtk_css_provider_get_named">
+<function name="gtk_css_parser_consume_ident">
+<description>
+If the current token is an identifier, consumes it and returns
+its name.  
+If the current token is not an identifier, an error is emitted
+and %NULL is returned.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+</parameters>
+<return> the name of the consumed identifier
+or %NULL on error
+</return>
+</function>
+
+<function name="gtk_css_parser_consume_string">
+<description>
+If the current token is a string, consumes it and return the string.  
+If the current token is not a string, an error is emitted
+and %NULL is returned.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+</parameters>
+<return> the name of the consumed string 
+or %NULL on error
+</return>
+</function>
+
+<function name="gtk_css_parser_consume_url">
+<description>
+If the parser matches the &lt;url&gt; token from the [CSS
+specification](https://drafts.csswg.org/css-values-4/#url-value),
+consumes it, resolves the URL and resturns the resulting #GFile.
+On failure, an error is emitted and %NULL is returned.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+</parameters>
+<return> the resulting URL or %NULL on error
+</return>
+</function>
+
+<function name="gtk_css_parser_get_block_location">
 <description>
-Loads a theme from the usual theme paths
+Queries the start location of the token that started the current
+block that is being parsed.
+
+If no block is currently parsed, the beginning of the document
+is returned.
 
 
 </description>
 <parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+</parameters>
+<return> The start location of the current block
+</return>
+</function>
+
+<function name="gtk_css_parser_get_end_location">
+<description>
+Queries the location of the current token.
+
+This function will return the location of the end of the
+current token. In the case a token has been consumed, but no
+new token has been queried yet via gtk_css_parser_peek_token()
+or gtk_css_parser_get_token(), the previous token's end location
+will be returned.
+
+This function may return the same location as
+gtk_css_parser_get_start_location() - in particular at the
+beginning and end of the document.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+<parameter name="out_location">
+<parameter_description> (caller-allocates) Place to store the location
+</parameter_description>
+</parameter>
+</parameters>
+<return> the end location
+</return>
+</function>
+
+<function name="gtk_css_parser_get_file">
+<description>
+Gets the file being parsed. If no file is associated with @self -
+for example when raw data is parsed - %NULL is returned.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+</parameters>
+<return> The file being parsed
+or %NULL.
+</return>
+</function>
+
+<function name="gtk_css_parser_get_start_location">
+<description>
+Queries the location of the current token.
+
+This function will return the location of the start of the
+current token. In the case a token has been consumed, but no
+new token has been queried yet via gtk_css_parser_peek_token()
+or gtk_css_parser_get_token(), the previous token's start
+location will be returned.
+
+This function may return the same location as
+gtk_css_parser_get_end_location() - in particular at the
+beginning and end of the document.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+</parameters>
+<return> the start location
+</return>
+</function>
+
+<function name="gtk_css_parser_has_function">
+<description>
+Checks if the next token is a function with the given @name.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
 <parameter name="name">
-<parameter_description> A theme name
+<parameter_description> name of function
 </parameter_description>
 </parameter>
-<parameter name="variant">
-<parameter_description> variant to load, for example, &quot;dark&quot;, or
-%NULL for the default
+</parameters>
+<return> %TRUE if the next token is a function with the given @name
+</return>
+</function>
+
+<function name="gtk_css_parser_has_ident">
+<description>
+Checks if the next token is an identifier with the given @name.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+<parameter name="ident">
+<parameter_description> name of identifier
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the next token is an identifier with the given @name
+</return>
+</function>
+
+<function name="gtk_css_parser_has_token">
+<description>
+Checks if the next token is of @token_type.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+<parameter name="token_type">
+<parameter_description> type of the token to check
 </parameter_description>
 </parameter>
 </parameters>
-<return> a #GtkCssProvider with the theme loaded.
-This memory is owned by GTK+, and you must not free it.
+<return> %TRUE if the next token is of @token_type
+</return>
+</function>
+
+<function name="gtk_css_parser_resolve_url">
+<description>
+Resolves a given URL against the parser's location.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+<parameter name="url">
+<parameter_description> the URL to resolve
+</parameter_description>
+</parameter>
+</parameters>
+<return> a new #GFile for the
+resolved URL or %NULL if the URI cannot be resolved.
+</return>
+</function>
+
+<function name="gtk_css_parser_try_at_keyword">
+<description>
+Checks if the current token is an at-keyword token with the
+given @keyword. If that is the case, the token is consumed
+and %TRUE is returned.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+<parameter name="keyword">
+<parameter_description> name of keyword to check for
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the token matched and was consumed.
+</return>
+</function>
+
+<function name="gtk_css_parser_try_delim">
+<description>
+Checks if the current token is a delimiter matching the given
+@codepoint. If that is the case, the token is consumed and
+%TRUE is returned.
+
+Keep in mind that not every unicode codepoint can be a delim
+token.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+<parameter name="codepoint">
+<parameter_description> unicode character codepoint to check
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the token matched and was consumed.
+</return>
+</function>
+
+<function name="gtk_css_parser_try_ident">
+<description>
+Checks if the current token is an identifier matching the given
+@ident string. If that is the case, the token is consumed
+and %TRUE is returned.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+<parameter name="ident">
+<parameter_description> identifier to check for
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the token matched and was consumed.
+</return>
+</function>
+
+<function name="gtk_css_parser_try_token">
+<description>
+Consumes the next token if it matches the given @token_type.
+
+This function can be used in loops like this:
+do {
+... parse one element ...
+} while (gtk_css_parser_try_token (parser, GTK_CSS_TOKEN_COMMA);
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkCssParser
+</parameter_description>
+</parameter>
+<parameter name="token_type">
+<parameter_description> type of token to try
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if a token was consumed
 </return>
 </function>
 
@@ -27663,6 +27934,32 @@ To track errors while loading CSS, connect to the
 <return></return>
 </function>
 
+<function name="gtk_css_provider_load_named">
+<description>
+Loads a theme from the usual theme paths. The actual process of
+finding the theme might change between releases, but it is
+guaranteed that this function uses the same mechanism to load the
+theme that GTK uses for loading its own theme.
+
+</description>
+<parameters>
+<parameter name="provider">
+<parameter_description> a #GtkCssProvider
+</parameter_description>
+</parameter>
+<parameter name="name">
+<parameter_description> A theme name
+</parameter_description>
+</parameter>
+<parameter name="variant">
+<parameter_description> variant to load, for example, &quot;dark&quot;, or
+%NULL for the default
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_css_provider_new">
 <description>
 Returns a newly created #GtkCssProvider.
@@ -27697,40 +27994,9 @@ this @provider.
 </return>
 </function>
 
-<function name="gtk_css_section_get_end_line">
-<description>
-Returns the line in the CSS document where this section end.
-The line number is 0-indexed, so the first line of the document
-will return 0.
-This value may change in future invocations of this function if
-@section is not yet parsed completely. This will for example 
-happen in the GtkCssProvider::parsing-error signal.
-The end position and line may be identical to the start
-position and line for sections which failed to parse anything
-successfully.
-
-
-</description>
-<parameters>
-<parameter name="section">
-<parameter_description> the section
-</parameter_description>
-</parameter>
-</parameters>
-<return> the line number
-</return>
-</function>
-
-<function name="gtk_css_section_get_end_position">
+<function name="gtk_css_section_get_end_location">
 <description>
-Returns the offset in bytes from the start of the current line
-returned via gtk_css_section_get_end_line().
-This value may change in future invocations of this function if
-@section is not yet parsed completely. This will for example
-happen in the GtkCssProvider::parsing-error signal.
-The end position and line may be identical to the start
-position and line for sections which failed to parse anything
-successfully.
+Returns the location in the CSS document where this section ends.
 
 
 </description>
@@ -27740,7 +28006,8 @@ successfully.
 </parameter_description>
 </parameter>
 </parameters>
-<return> the offset in bytes from the start of the line.
+<return> The end location of
+this section
 </return>
 </function>
 
@@ -27785,9 +28052,9 @@ a different file.
 </return>
 </function>
 
-<function name="gtk_css_section_get_section_type">
+<function name="gtk_css_section_get_start_location">
 <description>
-Gets the type of information that @section describes.
+Returns the location in the CSS document where this section starts.
 
 
 </description>
@@ -27797,43 +28064,55 @@ Gets the type of information that @section describes.
 </parameter_description>
 </parameter>
 </parameters>
-<return> the type of @section
+<return> The start location of
+this section
 </return>
 </function>
 
-<function name="gtk_css_section_get_start_line">
+<function name="gtk_css_section_new">
 <description>
-Returns the line in the CSS document where this section starts.
-The line number is 0-indexed, so the first line of the document
-will return 0.
+Creates a new #GtkCssSection referring to the section
+in the given @file from the @start location to the
+@end location.
 
 
 </description>
 <parameters>
-<parameter name="section">
-<parameter_description> the section
+<parameter name="file">
+<parameter_description> The file this section refers to
+</parameter_description>
+</parameter>
+<parameter name="start">
+<parameter_description> The start location
+</parameter_description>
+</parameter>
+<parameter name="end">
+<parameter_description> The end location
 </parameter_description>
 </parameter>
 </parameters>
-<return> the line number
+<return> a new #GtkCssSection
 </return>
 </function>
 
-<function name="gtk_css_section_get_start_position">
+<function name="gtk_css_section_print">
 <description>
-Returns the offset in bytes from the start of the current line
-returned via gtk_css_section_get_start_line().
-
+Prints the @section into @string in a human-readable form. This
+is a form like `gtk.css:32:1-23` to denote line 32, characters
+1 to 23 in the file gtk.css.
 
 </description>
 <parameters>
 <parameter name="section">
-<parameter_description> the section
+<parameter_description> a section
+</parameter_description>
+</parameter>
+<parameter name="string">
+<parameter_description> a #GString to print to
 </parameter_description>
 </parameter>
 </parameters>
-<return> the offset in bytes from the start of the line.
-</return>
+<return></return>
 </function>
 
 <function name="gtk_css_section_ref">
@@ -27852,6 +28131,23 @@ Increments the reference count on @section.
 </return>
 </function>
 
+<function name="gtk_css_section_to_string">
+<description>
+Prints the section into a human-readable text form using
+gtk_css_section_print().
+
+
+</description>
+<parameters>
+<parameter name="section">
+<parameter_description> a #GtkCssSection
+</parameter_description>
+</parameter>
+</parameters>
+<return> A new string.
+</return>
+</function>
+
 <function name="gtk_css_section_unref">
 <description>
 Decrements the reference count on @section, freeing the
@@ -44674,6 +44970,23 @@ Gets the selection mode of the listbox.
 </return>
 </function>
 
+<function name="gtk_list_box_get_show_separators">
+<description>
+Returns whether the list box should show separators
+between rows.
+
+
+</description>
+<parameters>
+<parameter name="box">
+<parameter_description> a #GtkListBox
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the list box shows separators
+</return>
+</function>
+
 <function name="gtk_list_box_insert">
 <description>
 Insert the @child into the @box at @position. If a sort function is
@@ -45181,6 +45494,25 @@ See #GtkSelectionMode for details.
 <return></return>
 </function>
 
+<function name="gtk_list_box_set_show_separators">
+<description>
+Sets whether the list box should show separators
+between rows.
+
+</description>
+<parameters>
+<parameter name="box">
+<parameter_description> a #GtkListBox
+</parameter_description>
+</parameter>
+<parameter name="show_separators">
+<parameter_description> %TRUE to show separators
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_list_box_set_sort_func">
 <description>
 By setting a sort function on the @box one can dynamically reorder the rows
@@ -47035,40 +47367,6 @@ that will be called when the menu calls gtk_menu_detach()
 <return></return>
 </function>
 
-<function name="gtk_menu_bar_get_child_pack_direction">
-<description>
-Retrieves the current child pack direction of the menubar.
-See gtk_menu_bar_set_child_pack_direction().
-
-
-</description>
-<parameters>
-<parameter name="menubar">
-<parameter_description> a #GtkMenuBar
-</parameter_description>
-</parameter>
-</parameters>
-<return> the child pack direction
-</return>
-</function>
-
-<function name="gtk_menu_bar_get_pack_direction">
-<description>
-Retrieves the current pack direction of the menubar. 
-See gtk_menu_bar_set_pack_direction().
-
-
-</description>
-<parameters>
-<parameter name="menubar">
-<parameter_description> a #GtkMenuBar
-</parameter_description>
-</parameter>
-</parameters>
-<return> the pack direction
-</return>
-</function>
-
 <function name="gtk_menu_bar_new">
 <description>
 Creates a new #GtkMenuBar
@@ -47103,42 +47401,6 @@ widget hierarchy.
 </return>
 </function>
 
-<function name="gtk_menu_bar_set_child_pack_direction">
-<description>
-Sets how widgets should be packed inside the children of a menubar.
-
-</description>
-<parameters>
-<parameter name="menubar">
-<parameter_description> a #GtkMenuBar
-</parameter_description>
-</parameter>
-<parameter name="child_pack_dir">
-<parameter_description> a new #GtkPackDirection
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
-<function name="gtk_menu_bar_set_pack_direction">
-<description>
-Sets how items should be packed inside a menubar.
-
-</description>
-<parameters>
-<parameter name="menubar">
-<parameter_description> a #GtkMenuBar
-</parameter_description>
-</parameter>
-<parameter name="pack_dir">
-<parameter_description> a new #GtkPackDirection
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="gtk_menu_button_get_align_widget">
 <description>
 Returns the parent #GtkWidget to use to line up with menu.
@@ -81616,6 +81878,37 @@ to the #GtkWidget::destroy signal or a weak notifier.
 <return></return>
 </function>
 
+<function name="gtk_widget_add_surface_transform_changed_callback">
+<description>
+Invokes the callback whenever the surface relative transform of the widget
+changes.
+
+
+</description>
+<parameters>
+<parameter name="widget">
+<parameter_description> a #GtkWidget
+</parameter_description>
+</parameter>
+<parameter name="callback">
+<parameter_description> a function to call when the surface transform changes
+</parameter_description>
+</parameter>
+<parameter name="user_data">
+<parameter_description> data to pass to @callback
+</parameter_description>
+</parameter>
+<parameter name="notify">
+<parameter_description> function to call to free @user_data when the callback is removed
+</parameter_description>
+</parameter>
+</parameters>
+<return> an id for the connection of this callback. Remove the callback by
+passing the id returned from this funcction to
+gtk_widget_remove_surface_transform_changed_callback()
+</return>
+</function>
+
 <function name="gtk_widget_add_tick_callback">
 <description>
 Queues an animation frame update and adds a callback to be called
@@ -82292,18 +82585,11 @@ case @out_transform gets set to the identity matrix.
 
 <function name="gtk_widget_contains">
 <description>
-Tests if the point at (@x, @y) is contained in @widget. Points
-inside the widget will respond to mouse and touch events, points
-outside will not.
+Tests if the point at (@x, @y) is contained in @widget.
 
 The coordinates for (@x, @y) must be in widget coordinates, so
 (0, 0) is assumed to be the top left of @widget's content area.
 
-Pass-through widgets and insensitive widgets do never respond to
-input and will therefor always return %FALSE here. See
-gtk_widget_set_can_pick() and gtk_widget_set_sensitive() for
-details about those functions.
-
 
 </description>
 <parameters>
@@ -82702,7 +82988,7 @@ gtk_widget_set_can_focus().
 </return>
 </function>
 
-<function name="gtk_widget_get_can_pick">
+<function name="gtk_widget_get_can_target">
 <description>
 Queries whether @widget can be the target of pointer events.
 
@@ -83311,23 +83597,6 @@ Returns the parent widget of @widget.
 </return>
 </function>
 
-<function name="gtk_widget_get_parent_surface">
-<description>
-Gets @widget’s parent window, or %NULL if it does not have one.
-
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> a #GtkWidget.
-</parameter_description>
-</parameter>
-</parameters>
-<return> the parent window of @widget, or %NULL
-if it does not have a parent window.
-</return>
-</function>
-
 <function name="gtk_widget_get_path">
 <description>
 Returns the #GtkWidgetPath representing @widget, if the widget
@@ -85331,6 +85600,10 @@ the mouse cursor for purposes of hover hilighting and delivering events.
 <parameter_description> Y coordinate to test, relative to @widget's origin
 </parameter_description>
 </parameter>
+<parameter name="flags">
+<parameter_description> Flags to influence what is picked
+</parameter_description>
+</parameter>
 </parameters>
 <return> The widget descendant at the given
 coordinate or %NULL if none.
@@ -85558,6 +85831,25 @@ gtk_widget_add_mnemonic_label().
 <return></return>
 </function>
 
+<function name="gtk_widget_remove_surface_transform_changed_callback">
+<description>
+Removes a surface transform changed callback previously registered with
+gtk_widget_add_surface_transform_changed_callback().
+
+</description>
+<parameters>
+<parameter name="widget">
+<parameter_description> a #GtkWidget
+</parameter_description>
+</parameter>
+<parameter name="id">
+<parameter_description> an id returned by gtk_widget_add_surface_transform_changed_callback()
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_widget_remove_tick_callback">
 <description>
 Removes a tick callback previously registered with
@@ -85680,10 +85972,9 @@ focus on a widget.
 <return></return>
 </function>
 
-<function name="gtk_widget_set_can_pick">
+<function name="gtk_widget_set_can_target">
 <description>
-Sets whether @widget can be the target of pointer events and
-can be returned by gtk_widget_pick().
+Sets whether @widget can be the target of pointer events.
 
 </description>
 <parameters>
@@ -85691,7 +85982,7 @@ can be returned by gtk_widget_pick().
 <parameter_description> a #GtkWidget
 </parameter_description>
 </parameter>
-<parameter name="can_pick">
+<parameter name="can_target">
 <parameter_description> whether this widget should be able to receive pointer events
 </parameter_description>
 </parameter>
@@ -86248,31 +86539,6 @@ function is gtk_widget_unparent().
 <return></return>
 </function>
 
-<function name="gtk_widget_set_parent_surface">
-<description>
-Sets a non default parent window for @widget.
-
-For #GtkWindow classes, setting a @parent_surface effects whether
-the window is a toplevel window or can be embedded into other
-widgets.
-
-For #GtkWindow classes, this needs to be called before the
-window is realized.
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> a #GtkWidget.
-</parameter_description>
-</parameter>
-<parameter name="parent_surface">
-<parameter_description> the new parent window.
-</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
@@ -87505,38 +87771,6 @@ see: gtk_window_set_position().
 <return></return>
 </function>
 
-<function name="gtk_window_get_skip_pager_hint">
-<description>
-Gets the value set by gtk_window_set_skip_pager_hint().
-
-
-</description>
-<parameters>
-<parameter name="window">
-<parameter_description> a #GtkWindow
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if window shouldn’t be in pager
-</return>
-</function>
-
-<function name="gtk_window_get_skip_taskbar_hint">
-<description>
-Gets the value set by gtk_window_set_skip_taskbar_hint()
-
-
-</description>
-<parameters>
-<parameter name="window">
-<parameter_description> a #GtkWindow
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if window shouldn’t be in taskbar
-</return>
-</function>
-
 <function name="gtk_window_get_title">
 <description>
 Retrieves the title of the window. See gtk_window_set_title().
@@ -87622,22 +87856,6 @@ Gets the type hint for this window. See gtk_window_set_type_hint().
 </return>
 </function>
 
-<function name="gtk_window_get_urgency_hint">
-<description>
-Gets the value set by gtk_window_set_urgency_hint()
-
-
-</description>
-<parameters>
-<parameter name="window">
-<parameter_description> a #GtkWindow
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if window is urgent
-</return>
-</function>
-
 <function name="gtk_window_get_window_type">
 <description>
 Gets the type of the window. See #GtkWindowType.
@@ -88714,47 +88932,6 @@ by default.
 <return></return>
 </function>
 
-<function name="gtk_window_set_skip_pager_hint">
-<description>
-Windows may set a hint asking the desktop environment not to display
-the window in the pager. This function sets this hint.
-(A &quot;pager&quot; is any desktop navigation tool such as a workspace
-switcher that displays a thumbnail representation of the windows
-on the screen.)
-
-</description>
-<parameters>
-<parameter name="window">
-<parameter_description> a #GtkWindow 
-</parameter_description>
-</parameter>
-<parameter name="setting">
-<parameter_description> %TRUE to keep this window from appearing in the pager
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
-<function name="gtk_window_set_skip_taskbar_hint">
-<description>
-Windows may set a hint asking the desktop environment not to display
-the window in the task bar. This function sets this hint.
-
-</description>
-<parameters>
-<parameter name="window">
-<parameter_description> a #GtkWindow 
-</parameter_description>
-</parameter>
-<parameter name="setting">
-<parameter_description> %TRUE to keep this window from appearing in the task bar
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="gtk_window_set_startup_id">
 <description>
 Startup notification identifiers are used by desktop environment to 
@@ -88895,25 +89072,6 @@ will sometimes call gtk_window_set_type_hint() on your behalf.
 <return></return>
 </function>
 
-<function name="gtk_window_set_urgency_hint">
-<description>
-Windows may set a hint asking the desktop environment to draw
-the users attention to the window. This function sets this hint.
-
-</description>
-<parameters>
-<parameter name="window">
-<parameter_description> a #GtkWindow 
-</parameter_description>
-</parameter>
-<parameter name="setting">
-<parameter_description> %TRUE to mark this window as urgent
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="gtk_window_stick">
 <description>
 Asks to stick @window, which means that it will appear on all user
diff --git a/gtk/src/gtk_enums.defs b/gtk/src/gtk_enums.defs
index 893bf4ef..880c1061 100644
--- a/gtk/src/gtk_enums.defs
+++ b/gtk/src/gtk_enums.defs
@@ -246,62 +246,6 @@
   )
 )
 
-;; From gtkcssprovider.h
-
-;; Original typedef:
-;; typedef enum
-;; {
-;;   GTK_CSS_PROVIDER_ERROR_FAILED,
-;;   GTK_CSS_PROVIDER_ERROR_SYNTAX,
-;;   GTK_CSS_PROVIDER_ERROR_IMPORT,
-;;   GTK_CSS_PROVIDER_ERROR_NAME,
-;;   GTK_CSS_PROVIDER_ERROR_DEPRECATED,
-;;   GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE
-;; } GtkCssProviderError;
-
-(define-enum-extended CssProviderError
-  (in-module "Gtk")
-  (c-name "GtkCssProviderError")
-  (values
-    '("failed" "GTK_CSS_PROVIDER_ERROR_FAILED" "0")
-    '("syntax" "GTK_CSS_PROVIDER_ERROR_SYNTAX" "1")
-    '("import" "GTK_CSS_PROVIDER_ERROR_IMPORT" "2")
-    '("name" "GTK_CSS_PROVIDER_ERROR_NAME" "3")
-    '("deprecated" "GTK_CSS_PROVIDER_ERROR_DEPRECATED" "4")
-    '("unknown-value" "GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE" "5")
-  )
-)
-
-;; From gtkcsssection.h
-
-;; Original typedef:
-;; typedef enum
-;; {
-;;   GTK_CSS_SECTION_DOCUMENT,
-;;   GTK_CSS_SECTION_IMPORT,
-;;   GTK_CSS_SECTION_COLOR_DEFINITION,
-;;   GTK_CSS_SECTION_RULESET,
-;;   GTK_CSS_SECTION_SELECTOR,
-;;   GTK_CSS_SECTION_DECLARATION,
-;;   GTK_CSS_SECTION_VALUE,
-;;   GTK_CSS_SECTION_KEYFRAMES
-;; } GtkCssSectionType;
-
-(define-enum-extended CssSectionType
-  (in-module "Gtk")
-  (c-name "GtkCssSectionType")
-  (values
-    '("document" "GTK_CSS_SECTION_DOCUMENT" "0")
-    '("import" "GTK_CSS_SECTION_IMPORT" "1")
-    '("color-definition" "GTK_CSS_SECTION_COLOR_DEFINITION" "2")
-    '("ruleset" "GTK_CSS_SECTION_RULESET" "3")
-    '("selector" "GTK_CSS_SECTION_SELECTOR" "4")
-    '("declaration" "GTK_CSS_SECTION_DECLARATION" "5")
-    '("value" "GTK_CSS_SECTION_VALUE" "6")
-    '("keyframes" "GTK_CSS_SECTION_KEYFRAMES" "7")
-  )
-)
-
 ;; From gtkdebug.h
 
 ;; Original typedef:
@@ -985,26 +929,6 @@
   )
 )
 
-;; Original typedef:
-;; typedef enum
-;; {
-;;   GTK_PACK_DIRECTION_LTR,
-;;   GTK_PACK_DIRECTION_RTL,
-;;   GTK_PACK_DIRECTION_TTB,
-;;   GTK_PACK_DIRECTION_BTT
-;; } GtkPackDirection;
-
-(define-enum-extended PackDirection
-  (in-module "Gtk")
-  (c-name "GtkPackDirection")
-  (values
-    '("ltr" "GTK_PACK_DIRECTION_LTR" "0")
-    '("rtl" "GTK_PACK_DIRECTION_RTL" "1")
-    '("ttb" "GTK_PACK_DIRECTION_TTB" "2")
-    '("btt" "GTK_PACK_DIRECTION_BTT" "3")
-  )
-)
-
 ;; Original typedef:
 ;; typedef enum
 ;; {
@@ -1493,6 +1417,23 @@
   )
 )
 
+;; Original typedef:
+;; typedef enum {
+;;   GTK_PICK_DEFAULT        = 0,
+;;   GTK_PICK_INSENSITIVE    = 1 << 0,
+;;   GTK_PICK_NON_TARGETABLE = 1 << 1
+;; } GtkPickFlags;
+
+(define-flags-extended PickFlags
+  (in-module "Gtk")
+  (c-name "GtkPickFlags")
+  (values
+    '("default" "GTK_PICK_DEFAULT" "0x0")
+    '("insensitive" "GTK_PICK_INSENSITIVE" "1 << 0")
+    '("non-targetable" "GTK_PICK_NON_TARGETABLE" "1 << 1")
+  )
+)
+
 ;; From gtkeventcontrollerscroll.h
 
 ;; Original typedef:
@@ -2562,3 +2503,43 @@
   )
 )
 
+;; From gtkcssenums.h
+
+;; Original typedef:
+;; typedef enum
+;; {
+;;   GTK_CSS_PARSER_ERROR_FAILED,
+;;   GTK_CSS_PARSER_ERROR_SYNTAX,
+;;   GTK_CSS_PARSER_ERROR_IMPORT,
+;;   GTK_CSS_PARSER_ERROR_NAME,
+;;   GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
+;; } GtkCssParserError;
+
+(define-enum-extended CssParserError
+  (in-module "Gtk")
+  (c-name "GtkCssParserError")
+  (values
+    '("failed" "GTK_CSS_PARSER_ERROR_FAILED" "0")
+    '("syntax" "GTK_CSS_PARSER_ERROR_SYNTAX" "1")
+    '("import" "GTK_CSS_PARSER_ERROR_IMPORT" "2")
+    '("name" "GTK_CSS_PARSER_ERROR_NAME" "3")
+    '("unknown-value" "GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE" "4")
+  )
+)
+
+;; Original typedef:
+;; typedef enum
+;; {
+;;   GTK_CSS_PARSER_WARNING_DEPRECATED,
+;;   GTK_CSS_PARSER_WARNING_SYNTAX
+;; } GtkCssParserWarning;
+
+(define-enum-extended CssParserWarning
+  (in-module "Gtk")
+  (c-name "GtkCssParserWarning")
+  (values
+    '("deprecated" "GTK_CSS_PARSER_WARNING_DEPRECATED" "0")
+    '("syntax" "GTK_CSS_PARSER_WARNING_SYNTAX" "1")
+  )
+)
+
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index 45a341cc..38b78293 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -1262,36 +1262,6 @@
   )
 )
 
-(define-enum CssProviderError
-  (in-module "Gtk")
-  (c-name "GtkCssProviderError")
-  (gtype-id "GTK_TYPE_CSS_PROVIDER_ERROR")
-  (values
-    '("failed" "GTK_CSS_PROVIDER_ERROR_FAILED")
-    '("syntax" "GTK_CSS_PROVIDER_ERROR_SYNTAX")
-    '("import" "GTK_CSS_PROVIDER_ERROR_IMPORT")
-    '("name" "GTK_CSS_PROVIDER_ERROR_NAME")
-    '("deprecated" "GTK_CSS_PROVIDER_ERROR_DEPRECATED")
-    '("unknown-value" "GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE")
-  )
-)
-
-(define-enum CssSectionType
-  (in-module "Gtk")
-  (c-name "GtkCssSectionType")
-  (gtype-id "GTK_TYPE_CSS_SECTION_TYPE")
-  (values
-    '("document" "GTK_CSS_SECTION_DOCUMENT")
-    '("import" "GTK_CSS_SECTION_IMPORT")
-    '("color-definition" "GTK_CSS_SECTION_COLOR_DEFINITION")
-    '("ruleset" "GTK_CSS_SECTION_RULESET")
-    '("selector" "GTK_CSS_SECTION_SELECTOR")
-    '("declaration" "GTK_CSS_SECTION_DECLARATION")
-    '("value" "GTK_CSS_SECTION_VALUE")
-    '("keyframes" "GTK_CSS_SECTION_KEYFRAMES")
-  )
-)
-
 (define-flags DebugFlag
   (in-module "Gtk")
   (c-name "GtkDebugFlag")
@@ -1689,18 +1659,6 @@
   )
 )
 
-(define-enum PackDirection
-  (in-module "Gtk")
-  (c-name "GtkPackDirection")
-  (gtype-id "GTK_TYPE_PACK_DIRECTION")
-  (values
-    '("ltr" "GTK_PACK_DIRECTION_LTR")
-    '("rtl" "GTK_PACK_DIRECTION_RTL")
-    '("ttb" "GTK_PACK_DIRECTION_TTB")
-    '("btt" "GTK_PACK_DIRECTION_BTT")
-  )
-)
-
 (define-enum PrintPages
   (in-module "Gtk")
   (c-name "GtkPrintPages")
@@ -1991,6 +1949,17 @@
   )
 )
 
+(define-flags PickFlags
+  (in-module "Gtk")
+  (c-name "GtkPickFlags")
+  (gtype-id "GTK_TYPE_PICK_FLAGS")
+  (values
+    '("default" "GTK_PICK_DEFAULT")
+    '("insensitive" "GTK_PICK_INSENSITIVE")
+    '("non-targetable" "GTK_PICK_NON_TARGETABLE")
+  )
+)
+
 (define-flags EventControllerScrollFlags
   (in-module "Gtk")
   (c-name "GtkEventControllerScrollFlags")
@@ -2589,6 +2558,29 @@
   )
 )
 
+(define-enum CssParserError
+  (in-module "Gtk")
+  (c-name "GtkCssParserError")
+  (gtype-id "GTK_TYPE_CSS_PARSER_ERROR")
+  (values
+    '("failed" "GTK_CSS_PARSER_ERROR_FAILED")
+    '("syntax" "GTK_CSS_PARSER_ERROR_SYNTAX")
+    '("import" "GTK_CSS_PARSER_ERROR_IMPORT")
+    '("name" "GTK_CSS_PARSER_ERROR_NAME")
+    '("unknown-value" "GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE")
+  )
+)
+
+(define-enum CssParserWarning
+  (in-module "Gtk")
+  (c-name "GtkCssParserWarning")
+  (gtype-id "GTK_TYPE_CSS_PARSER_WARNING")
+  (values
+    '("deprecated" "GTK_CSS_PARSER_WARNING_DEPRECATED")
+    '("syntax" "GTK_CSS_PARSER_WARNING_SYNTAX")
+  )
+)
+
 
 ;; From gskpango.h
 
@@ -7499,11 +7491,6 @@
 
 ;; From gtkcssprovider.h
 
-(define-function gtk_css_provider_error_quark
-  (c-name "gtk_css_provider_error_quark")
-  (return-type "GQuark")
-)
-
 (define-function gtk_css_provider_get_type
   (c-name "gtk_css_provider_get_type")
   (return-type "GType")
@@ -7558,80 +7545,18 @@
   )
 )
 
-(define-function gtk_css_provider_get_named
-  (c-name "gtk_css_provider_get_named")
-  (return-type "GtkCssProvider*")
+(define-method load_named
+  (of-object "GtkCssProvider")
+  (c-name "gtk_css_provider_load_named")
+  (return-type "none")
   (parameters
-    '("const-gchar*" "name")
-    '("const-gchar*" "variant")
+    '("const-char*" "name")
+    '("const-char*" "variant")
   )
 )
 
 
 
-;; From gtkcsssection.h
-
-(define-function gtk_css_section_get_type
-  (c-name "gtk_css_section_get_type")
-  (return-type "GType")
-)
-
-(define-method ref
-  (of-object "GtkCssSection")
-  (c-name "gtk_css_section_ref")
-  (return-type "GtkCssSection*")
-)
-
-(define-method unref
-  (of-object "GtkCssSection")
-  (c-name "gtk_css_section_unref")
-  (return-type "none")
-)
-
-(define-method get_section_type
-  (of-object "GtkCssSection")
-  (c-name "gtk_css_section_get_section_type")
-  (return-type "GtkCssSectionType")
-)
-
-(define-method get_parent
-  (of-object "GtkCssSection")
-  (c-name "gtk_css_section_get_parent")
-  (return-type "GtkCssSection*")
-)
-
-(define-method get_file
-  (of-object "GtkCssSection")
-  (c-name "gtk_css_section_get_file")
-  (return-type "GFile*")
-)
-
-(define-method get_start_line
-  (of-object "GtkCssSection")
-  (c-name "gtk_css_section_get_start_line")
-  (return-type "guint")
-)
-
-(define-method get_start_position
-  (of-object "GtkCssSection")
-  (c-name "gtk_css_section_get_start_position")
-  (return-type "guint")
-)
-
-(define-method get_end_line
-  (of-object "GtkCssSection")
-  (c-name "gtk_css_section_get_end_line")
-  (return-type "guint")
-)
-
-(define-method get_end_position
-  (of-object "GtkCssSection")
-  (c-name "gtk_css_section_get_end_position")
-  (return-type "guint")
-)
-
-
-
 ;; From gtkcustomlayout.h
 
 (define-function gtk_custom_layout_new
@@ -14559,6 +14484,21 @@
   )
 )
 
+(define-method set_show_separators
+  (of-object "GtkListBox")
+  (c-name "gtk_list_box_set_show_separators")
+  (return-type "none")
+  (parameters
+    '("gboolean" "show_separators")
+  )
+)
+
+(define-method get_show_separators
+  (of-object "GtkListBox")
+  (c-name "gtk_list_box_get_show_separators")
+  (return-type "gboolean")
+)
+
 
 
 ;; From gtkliststore.h
@@ -15471,36 +15411,6 @@
   )
 )
 
-(define-method get_pack_direction
-  (of-object "GtkMenuBar")
-  (c-name "gtk_menu_bar_get_pack_direction")
-  (return-type "GtkPackDirection")
-)
-
-(define-method set_pack_direction
-  (of-object "GtkMenuBar")
-  (c-name "gtk_menu_bar_set_pack_direction")
-  (return-type "none")
-  (parameters
-    '("GtkPackDirection" "pack_dir")
-  )
-)
-
-(define-method get_child_pack_direction
-  (of-object "GtkMenuBar")
-  (c-name "gtk_menu_bar_get_child_pack_direction")
-  (return-type "GtkPackDirection")
-)
-
-(define-method set_child_pack_direction
-  (of-object "GtkMenuBar")
-  (c-name "gtk_menu_bar_set_child_pack_direction")
-  (return-type "none")
-  (parameters
-    '("GtkPackDirection" "child_pack_dir")
-  )
-)
-
 
 
 ;; From gtkmenubutton.h
@@ -30240,18 +30150,18 @@
   (return-type "gboolean")
 )
 
-(define-method set_can_pick
+(define-method set_can_target
   (of-object "GtkWidget")
-  (c-name "gtk_widget_set_can_pick")
+  (c-name "gtk_widget_set_can_target")
   (return-type "none")
   (parameters
-    '("gboolean" "can_pick")
+    '("gboolean" "can_target")
   )
 )
 
-(define-method get_can_pick
+(define-method get_can_target
   (of-object "GtkWidget")
-  (c-name "gtk_widget_get_can_pick")
+  (c-name "gtk_widget_get_can_target")
   (return-type "gboolean")
 )
 
@@ -30454,21 +30364,6 @@
   (return-type "GtkRoot*")
 )
 
-(define-method set_parent_surface
-  (of-object "GtkWidget")
-  (c-name "gtk_widget_set_parent_surface")
-  (return-type "none")
-  (parameters
-    '("GdkSurface*" "parent_surface")
-  )
-)
-
-(define-method get_parent_surface
-  (of-object "GtkWidget")
-  (c-name "gtk_widget_get_parent_surface")
-  (return-type "GdkSurface*")
-)
-
 (define-method set_child_visible
   (of-object "GtkWidget")
   (c-name "gtk_widget_set_child_visible")
@@ -30949,6 +30844,7 @@
   (parameters
     '("gdouble" "x")
     '("gdouble" "y")
+    '("GtkPickFlags" "flags")
   )
 )
 
@@ -31954,51 +31850,6 @@
   (return-type "GdkSurfaceTypeHint")
 )
 
-(define-method set_skip_taskbar_hint
-  (of-object "GtkWindow")
-  (c-name "gtk_window_set_skip_taskbar_hint")
-  (return-type "none")
-  (parameters
-    '("gboolean" "setting")
-  )
-)
-
-(define-method get_skip_taskbar_hint
-  (of-object "GtkWindow")
-  (c-name "gtk_window_get_skip_taskbar_hint")
-  (return-type "gboolean")
-)
-
-(define-method set_skip_pager_hint
-  (of-object "GtkWindow")
-  (c-name "gtk_window_set_skip_pager_hint")
-  (return-type "none")
-  (parameters
-    '("gboolean" "setting")
-  )
-)
-
-(define-method get_skip_pager_hint
-  (of-object "GtkWindow")
-  (c-name "gtk_window_get_skip_pager_hint")
-  (return-type "gboolean")
-)
-
-(define-method set_urgency_hint
-  (of-object "GtkWindow")
-  (c-name "gtk_window_set_urgency_hint")
-  (return-type "none")
-  (parameters
-    '("gboolean" "setting")
-  )
-)
-
-(define-method get_urgency_hint
-  (of-object "GtkWindow")
-  (c-name "gtk_window_get_urgency_hint")
-  (return-type "gboolean")
-)
-
 (define-method set_accept_focus
   (of-object "GtkWindow")
   (c-name "gtk_window_set_accept_focus")
@@ -32555,6 +32406,103 @@
 
 
 
+;; From gtkcssenums.h
+
+
+
+;; From gtkcsserror.h
+
+(define-function gtk_css_parser_error_quark
+  (c-name "gtk_css_parser_error_quark")
+  (return-type "GQuark")
+)
+
+(define-function gtk_css_parser_warning_quark
+  (c-name "gtk_css_parser_warning_quark")
+  (return-type "GQuark")
+)
+
+
+
+;; From gtkcss.h
+
+
+
+;; From gtkcsslocation.h
+
+
+
+;; From gtkcsssection.h
+
+(define-function gtk_css_section_get_type
+  (c-name "gtk_css_section_get_type")
+  (return-type "GType")
+)
+
+(define-function gtk_css_section_new
+  (c-name "gtk_css_section_new")
+  (is-constructor-of "GtkCssSection")
+  (return-type "GtkCssSection*")
+  (parameters
+    '("GFile*" "file")
+    '("const-GtkCssLocation*" "start")
+    '("const-GtkCssLocation*" "end")
+  )
+)
+
+(define-method ref
+  (of-object "GtkCssSection")
+  (c-name "gtk_css_section_ref")
+  (return-type "GtkCssSection*")
+)
+
+(define-method unref
+  (of-object "GtkCssSection")
+  (c-name "gtk_css_section_unref")
+  (return-type "none")
+)
+
+(define-method print
+  (of-object "GtkCssSection")
+  (c-name "gtk_css_section_print")
+  (return-type "none")
+  (parameters
+    '("GString*" "string")
+  )
+)
+
+(define-method to_string
+  (of-object "GtkCssSection")
+  (c-name "gtk_css_section_to_string")
+  (return-type "char*")
+)
+
+(define-method get_parent
+  (of-object "GtkCssSection")
+  (c-name "gtk_css_section_get_parent")
+  (return-type "GtkCssSection*")
+)
+
+(define-method get_file
+  (of-object "GtkCssSection")
+  (c-name "gtk_css_section_get_file")
+  (return-type "GFile*")
+)
+
+(define-method get_start_location
+  (of-object "GtkCssSection")
+  (c-name "gtk_css_section_get_start_location")
+  (return-type "const-GtkCssLocation*")
+)
+
+(define-method get_end_location
+  (of-object "GtkCssSection")
+  (c-name "gtk_css_section_get_end_location")
+  (return-type "const-GtkCssLocation*")
+)
+
+
+
 ;; From gtkdbusgenerated.h
 
 
@@ -32618,16 +32566,6 @@
   (return-type "GType")
 )
 
-(define-function gtk_css_provider_error_get_type
-  (c-name "gtk_css_provider_error_get_type")
-  (return-type "GType")
-)
-
-(define-function gtk_css_section_type_get_type
-  (c-name "gtk_css_section_type_get_type")
-  (return-type "GType")
-)
-
 (define-function gtk_debug_flag_get_type
   (c-name "gtk_debug_flag_get_type")
   (return-type "GType")
@@ -32778,11 +32716,6 @@
   (return-type "GType")
 )
 
-(define-function gtk_pack_direction_get_type
-  (c-name "gtk_pack_direction_get_type")
-  (return-type "GType")
-)
-
 (define-function gtk_print_pages_get_type
   (c-name "gtk_print_pages_get_type")
   (return-type "GType")
@@ -32893,6 +32826,11 @@
   (return-type "GType")
 )
 
+(define-function gtk_pick_flags_get_type
+  (c-name "gtk_pick_flags_get_type")
+  (return-type "GType")
+)
+
 (define-function gtk_event_controller_scroll_flags_get_type
   (c-name "gtk_event_controller_scroll_flags_get_type")
   (return-type "GType")
@@ -33234,3 +33172,17 @@
 )
 
 
+
+;; From gtkcssenumtypes.h
+
+(define-function gtk_css_parser_error_get_type
+  (c-name "gtk_css_parser_error_get_type")
+  (return-type "GType")
+)
+
+(define-function gtk_css_parser_warning_get_type
+  (c-name "gtk_css_parser_warning_get_type")
+  (return-type "GType")
+)
+
+
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index f98fef40..1ebf8b61 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -5650,6 +5650,16 @@
   (default-value "FALSE")
 )
 
+(define-property show-separators
+  (of-object "GtkListBox")
+  (prop-type "GParamBoolean")
+  (docs "Show separators between rows")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+  (default-value "FALSE")
+)
+
 ;; From GtkListBoxRow
 
 (define-signal activate
@@ -6024,26 +6034,6 @@
 
 ;; From GtkMenuBar
 
-(define-property pack-direction
-  (of-object "GtkMenuBar")
-  (prop-type "GParamEnum")
-  (docs "The pack direction of the menubar")
-  (readable #t)
-  (writable #t)
-  (construct-only #f)
-  (default-value "GTK_PACK_DIRECTION_LTR")
-)
-
-(define-property child-pack-direction
-  (of-object "GtkMenuBar")
-  (prop-type "GParamEnum")
-  (docs "The child pack direction of the menubar")
-  (readable #t)
-  (writable #t)
-  (construct-only #f)
-  (default-value "GTK_PACK_DIRECTION_LTR")
-)
-
 ;; From GtkMenuButton
 
 (define-property popup
@@ -12112,7 +12102,7 @@
   (default-value "FALSE")
 )
 
-(define-property can-pick
+(define-property can-target
   (of-object "GtkWidget")
   (prop-type "GParamBoolean")
   (docs "Whether the widget can receive pointer events")
@@ -12544,36 +12534,6 @@
   (default-value "GDK_SURFACE_TYPE_HINT_NORMAL")
 )
 
-(define-property skip-taskbar-hint
-  (of-object "GtkWindow")
-  (prop-type "GParamBoolean")
-  (docs "TRUE if the window should not be in the task bar.")
-  (readable #t)
-  (writable #t)
-  (construct-only #f)
-  (default-value "FALSE")
-)
-
-(define-property skip-pager-hint
-  (of-object "GtkWindow")
-  (prop-type "GParamBoolean")
-  (docs "TRUE if the window should not be in the pager.")
-  (readable #t)
-  (writable #t)
-  (construct-only #f)
-  (default-value "FALSE")
-)
-
-(define-property urgency-hint
-  (of-object "GtkWindow")
-  (prop-type "GParamBoolean")
-  (docs "TRUE if the window should be brought to the user’s attention.")
-  (readable #t)
-  (writable #t)
-  (construct-only #f)
-  (default-value "FALSE")
-)
-
 (define-property accept-focus
   (of-object "GtkWindow")
   (prop-type "GParamBoolean")
diff --git a/gtk/src/gtk_vfuncs.defs b/gtk/src/gtk_vfuncs.defs
index 32c1ed87..3653aec0 100644
--- a/gtk/src/gtk_vfuncs.defs
+++ b/gtk/src/gtk_vfuncs.defs
@@ -886,15 +886,6 @@
   )
 )
 
-(define-vfunc pick
-  (of-object "GtkWidget")
-  (return-type "GtkWidget*")
-  (parameters
-    '("gdouble" "x")
-    '("gdouble" "y")
-  )
-)
-
 ; GtkRecentChooser
 
 (define-vfunc set_current_uri
diff --git a/tools/gen_scripts/gtk_generate_docs.sh b/tools/gen_scripts/gtk_generate_docs.sh
index fb34bca1..a0ce54f4 100755
--- a/tools/gen_scripts/gtk_generate_docs.sh
+++ b/tools/gen_scripts/gtk_generate_docs.sh
@@ -8,7 +8,7 @@ source "$(dirname "$0")/init_generate.sh"
 out_dir="$root_dir/gtk/src"
 
 params="--with-properties --no-recursion"
-for dir in "$gtk_source_prefix"/{gtk,gtk/deprecated} "$gtk_build_prefix"/gtk; do
+for dir in "$gtk_source_prefix"/{gtk,gtk/css,gtk/deprecated} "$gtk_build_prefix"/{gtk,gtk/css}; do
   if [ -d "$dir" ]; then
     params="$params -s $dir"
   fi
diff --git a/tools/gen_scripts/gtk_generate_enums.sh b/tools/gen_scripts/gtk_generate_enums.sh
index ea894eb8..2d04e515 100755
--- a/tools/gen_scripts/gtk_generate_enums.sh
+++ b/tools/gen_scripts/gtk_generate_enums.sh
@@ -10,5 +10,8 @@ out_dir="$root_dir/gtk/src"
 shopt -s extglob # Enable extended pattern matching
 shopt -s nullglob # Skip a filename pattern that matches no file
 # Process files whose names end with .h, but not with private.h.
-"$gen_enums" "$gtk_source_prefix"/gtk/!(*private).h "$gtk_source_prefix"/gtk/deprecated/!(*private).h \
-             "$gtk_build_prefix"/gtk/*.h > "$out_dir"/gtk_enums.defs
+"$gen_enums" "$gtk_source_prefix"/gtk/!(*private).h \
+             "$gtk_source_prefix"/gtk/css/!(*private).h \
+             "$gtk_source_prefix"/gtk/deprecated/!(*private).h \
+             "$gtk_build_prefix"/gtk/*.h \
+             "$gtk_build_prefix"/gtk/css/*.h > "$out_dir"/gtk_enums.defs
diff --git a/tools/gen_scripts/gtk_generate_methods.sh b/tools/gen_scripts/gtk_generate_methods.sh
index 15cac678..27cea78b 100755
--- a/tools/gen_scripts/gtk_generate_methods.sh
+++ b/tools/gen_scripts/gtk_generate_methods.sh
@@ -10,5 +10,8 @@ out_dir="$root_dir/gtk/src"
 shopt -s extglob # Enable extended pattern matching
 shopt -s nullglob # Skip a filename pattern that matches no file
 # Process files whose names end with .h, but not with private.h.
-"$gen_methods" "$gtk_source_prefix"/gtk/!(*private).h "$gtk_source_prefix"/gtk/deprecated/!(*private).h \
-               "$gtk_build_prefix"/gtk/*.h > "$out_dir"/gtk_methods.defs
+"$gen_methods" "$gtk_source_prefix"/gtk/!(*private).h \
+               "$gtk_source_prefix"/gtk/css/!(*private).h \
+               "$gtk_source_prefix"/gtk/deprecated/!(*private).h \
+               "$gtk_build_prefix"/gtk/*.h \
+               "$gtk_build_prefix"/gtk/css/*.h > "$out_dir"/gtk_methods.defs


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