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



commit 37992d10179a57498cef12ea1cfb3c76551330b8
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Tue May 7 15:22:07 2019 +0200

    Gdk, Gtk: Regenerate docs.xml and .defs files

 gdk/src/gdk_signals.defs |   9 +
 gtk/src/gtk_docs.xml     | 431 +++++++++++++++++++++++++++--------------------
 gtk/src/gtk_methods.defs |  85 ++++------
 gtk/src/gtk_signals.defs |  39 +++--
 4 files changed, 312 insertions(+), 252 deletions(-)
---
diff --git a/gdk/src/gdk_signals.defs b/gdk/src/gdk_signals.defs
index 445bca59..68f1c7ff 100644
--- a/gdk/src/gdk_signals.defs
+++ b/gdk/src/gdk_signals.defs
@@ -1014,6 +1014,15 @@
   (construct-only #t)
 )
 
+(define-property frame-clock
+  (of-object "GdkSurface")
+  (prop-type "GParamObject")
+  (docs "Frame Clock")
+  (readable #t)
+  (writable #t)
+  (construct-only #t)
+)
+
 (define-property state
   (of-object "GdkSurface")
   (prop-type "GParamFlags")
diff --git a/gtk/src/gtk_docs.xml b/gtk/src/gtk_docs.xml
index 102f8ea0..bb327e11 100644
--- a/gtk/src/gtk_docs.xml
+++ b/gtk/src/gtk_docs.xml
@@ -14831,26 +14831,6 @@ of a widget changes.
 <return></return>
 </signal>
 
-<signal name="GtkWidget::display-changed">
-<description>
-The ::display-changed signal gets emitted when the
-display of a widget has changed.
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> the object on which the signal is emitted
-</parameter_description>
-</parameter>
-<parameter name="previous_display">
-<parameter_description> the previous screen, or %NULL if the
-widget was not associated with a screen before
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</signal>
-
 <signal name="GtkWidget::drag-begin">
 <description>
 The ::drag-begin signal is emitted on the drag source when a drag is
@@ -20880,6 +20860,54 @@ Gets the value set by gtk_box_layout_set_baseline_position().
 </return>
 </function>
 
+<function name="gtk_box_layout_get_homogeneous">
+<description>
+Returns whether the layout is set to be homogeneous.
+
+Return: %TRUE if the layout is homogeneous
+
+</description>
+<parameters>
+<parameter name="box_layout">
+<parameter_description> a #GtkBoxLayout
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_box_layout_get_spacing">
+<description>
+Returns the space that @box_layout puts between children.
+
+
+</description>
+<parameters>
+<parameter name="box_layout">
+<parameter_description> a #GtkBoxLayout
+</parameter_description>
+</parameter>
+</parameters>
+<return> the spacing of the layout
+</return>
+</function>
+
+<function name="gtk_box_layout_new">
+<description>
+Creates a new box layout.
+
+
+</description>
+<parameters>
+<parameter name="orientation">
+<parameter_description> the orientation for the new layout
+</parameter_description>
+</parameter>
+</parameters>
+<return> a new box layout
+</return>
+</function>
+
 <function name="gtk_box_layout_set_baseline_position">
 <description>
 Sets the baseline position of a box layout.
@@ -20904,6 +20932,43 @@ space available.
 <return></return>
 </function>
 
+<function name="gtk_box_layout_set_homogeneous">
+<description>
+Sets whether the box layout will allocate the same
+size to all children.
+
+</description>
+<parameters>
+<parameter name="box_layout">
+<parameter_description> a #GtkBoxLayout
+</parameter_description>
+</parameter>
+<parameter name="homogeneous">
+<parameter_description> %TRUE to set the box layout as homogeneous
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_box_layout_set_spacing">
+<description>
+Sets how much spacing to put between children.
+
+</description>
+<parameters>
+<parameter name="box_layout">
+<parameter_description> a #GtkBoxLayout
+</parameter_description>
+</parameter>
+<parameter name="spacing">
+<parameter_description> the spacing to apply between children
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_box_new">
 <description>
 Creates a new #GtkBox.
@@ -21409,7 +21474,7 @@ and merges it with the current contents of @builder.
 
 Most users will probably want to use gtk_builder_new_from_string().
 
-Upon errors 0 will be returned and @error will be assigned a
+Upon errors %FALSE will be returned and @error will be assigned a
 #GError from the #GTK_BUILDER_ERROR, #G_MARKUP_ERROR or
 #G_VARIANT_PARSE_ERROR domain.
 
@@ -21523,7 +21588,7 @@ Parses a string containing a [GtkBuilder UI definition][BUILDER-UI]
 building only the requested objects and merges
 them with the current contents of @builder.
 
-Upon errors 0 will be returned and @error will be assigned a
+Upon errors %FALSE will be returned and @error will be assigned a
 #GError from the #GTK_BUILDER_ERROR or #G_MARKUP_ERROR domain.
 
 If you are adding an object that depends on an object that is not
@@ -31516,10 +31581,6 @@ widget for the window containing the entry. This usually means that
 the dialog box containing the entry will be closed, since the default
 widget is usually one of the dialog buttons.
 
-(For experts: if @setting is %TRUE, the entry calls
-gtk_window_activate_default() on the window containing the entry, in
-the default handler for the #GtkEntry::activate signal.)
-
 </description>
 <parameters>
 <parameter name="entry">
@@ -34962,6 +35023,18 @@ Sets the transformation of the child of a #GtkFixedLayout.
 <return></return>
 </function>
 
+<function name="gtk_fixed_layout_new">
+<description>
+Creates a new #GtkFixedLayout.
+
+
+</description>
+<parameters>
+</parameters>
+<return> the newly created #GtkFixedLayout
+</return>
+</function>
+
 <function name="gtk_fixed_move">
 <description>
 Sets a translation transformation to the given @x and @y coordinates to
@@ -38477,18 +38550,6 @@ position are grown to span the new row.
 <return></return>
 </function>
 
-<function name="gtk_grid_layou_new">
-<description>
-Creates a new #GtkGridLayout.
-
-
-</description>
-<parameters>
-</parameters>
-<return> the newly created #GtkGridLayout
-</return>
-</function>
-
 <function name="gtk_grid_layout_child_get_column_span">
 <description>
 Retrieves the number of columns that @child spans to.
@@ -38727,6 +38788,18 @@ Retrieves the spacing set with gtk_grid_layout_set_row_spacing().
 </return>
 </function>
 
+<function name="gtk_grid_layout_new">
+<description>
+Creates a new #GtkGridLayout.
+
+
+</description>
+<parameters>
+</parameters>
+<return> the newly created #GtkGridLayout
+</return>
+</function>
+
 <function name="gtk_grid_layout_set_baseline_row">
 <description>
 Sets which row defines the global baseline for the entire grid.
@@ -48448,25 +48521,6 @@ from 0 to n-1
 <return></return>
 </function>
 
-<function name="gtk_menu_set_display">
-<description>
-Sets the #GdkDisplay on which the menu will be displayed.
-
-</description>
-<parameters>
-<parameter name="menu">
-<parameter_description> a #GtkMenu
-</parameter_description>
-</parameter>
-<parameter name="display">
-<parameter_description> a #GdkDisplay, or %NULL if the display should be
-determined by the widget the menu is attached to
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="gtk_menu_set_monitor">
 <description>
 Informs GTK+ on which monitor a menu should be popped up.
@@ -52331,7 +52385,10 @@ Setting this to %FALSE also hides the text again.
 <parameters>
 <parameter name="entry">
 <parameter_description> a #GtkPasswordEntry
-show_peek_icon: whether to show the peek icon
+</parameter_description>
+</parameter>
+<parameter name="show_peek_icon">
+<parameter_description> whether to show the peek icon
 </parameter_description>
 </parameter>
 </parameters>
@@ -63553,6 +63610,30 @@ The image is recorded until the next call to gtk_snapshot_pop().
 <return></return>
 </function>
 
+<function name="gtk_snapshot_push_repeat">
+<description>
+Creates a node that repeats the child node.
+
+The child is recorded until the next call to gtk_snapshot_pop().
+
+</description>
+<parameters>
+<parameter name="snapshot">
+<parameter_description> a #GtkSnapshot
+</parameter_description>
+</parameter>
+<parameter name="bounds">
+<parameter_description> the bounds within which to repeat
+</parameter_description>
+</parameter>
+<parameter name="child_bounds">
+<parameter_description> the bounds of the child
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_snapshot_push_rounded_clip">
 <description>
 Clips an image to a rounded rectangle.
@@ -81793,6 +81874,50 @@ activatable, the function returns %FALSE.
 </return>
 </function>
 
+<function name="gtk_widget_activate_action">
+<description>
+Looks up the action in the action groups associated
+with @widget and its ancestors, and activates it.
+
+The action name is expected to be prefixed with the
+prefix that was used when adding the action group
+with gtk_widget_insert_action_group().
+
+The @parameter must match the actions expected parameter
+type, as returned by g_action_get_parameter_type().
+
+</description>
+<parameters>
+<parameter name="widget">
+<parameter_description> a #GtkWidget
+</parameter_description>
+</parameter>
+<parameter name="name">
+<parameter_description> a prefixed action name
+</parameter_description>
+</parameter>
+<parameter name="parameter">
+<parameter_description> parameters that required by the action
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_widget_activate_default">
+<description>
+Activate the default.activate action from @widget.
+
+</description>
+<parameters>
+<parameter name="widget">
+<parameter_description> a #GtkWidget
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_widget_add_accelerator">
 <description>
 Installs an accelerator for this @widget in @accel_group that causes
@@ -82287,6 +82412,24 @@ gtk_widget_class_set_css_name() for details.
 </return>
 </function>
 
+<function name="gtk_widget_class_get_layout_manager_type">
+<description>
+Retrieves the type of the #GtkLayoutManager used by the #GtkWidget class.
+
+See also: gtk_widget_class_set_layout_manager_type()
+
+
+</description>
+<parameters>
+<parameter name="widget_class">
+<parameter_description> a #GtkWidgetClass
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GtkLayoutManager subclass, or %G_TYPE_INVALID
+</return>
+</function>
+
 <function name="gtk_widget_class_set_accessible_role">
 <description>
 Sets the default #AtkRole to be set on accessibles created for
@@ -82392,6 +82535,27 @@ of the parent class is used.
 <return></return>
 </function>
 
+<function name="gtk_widget_class_set_layout_manager_type">
+<description>
+Sets the type to be used for creating layout managers for widgets of
+@widget_class. The given @type must be a subtype of #GtkLayoutManager.
+
+This function should only be called from class init functions of widgets.
+
+</description>
+<parameters>
+<parameter name="widget_class">
+<parameter_description> class to set the layout manager type for
+</parameter_description>
+</parameter>
+<parameter name="type">
+<parameter_description> The object type that implements the #GtkLayoutManager for @widget_class
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_widget_class_set_template">
 <description>
 This should be called at class initialization time to specify
@@ -82954,23 +83118,6 @@ considers @widget to be an ancestor of itself.
 </return>
 </function>
 
-<function name="gtk_widget_get_can_default">
-<description>
-Determines whether @widget can be a default widget. See
-gtk_widget_set_can_default().
-
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> a #GtkWidget
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if @widget can be a default widget, %FALSE otherwise
-</return>
-</function>
-
 <function name="gtk_widget_get_can_focus">
 <description>
 Determines whether @widget can own the input focus. See
@@ -84148,28 +84295,6 @@ events, see gtk_widget_contains().
 </return>
 </function>
 
-<function name="gtk_widget_grab_default">
-<description>
-Causes @widget to become the default widget. @widget must be able to be
-a default widget; typically you would ensure this yourself
-by calling gtk_widget_set_can_default() with a %TRUE value.
-The default widget is activated when
-the user presses Enter in a window. Default widgets must be
-activatable, that is, gtk_widget_activate() should affect them. Note
-that #GtkEntry widgets require the “activates-default” property
-set to %TRUE before they activate the default widget when Enter
-is pressed and the #GtkEntry is focused.
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> a #GtkWidget
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="gtk_widget_grab_focus">
 <description>
 Causes @widget (or one of its descendents) to have the keyboard focus
@@ -84191,7 +84316,7 @@ transfers the focus to a descendant of @widget that is focusable.
 <function name="gtk_widget_has_default">
 <description>
 Determines whether @widget is the current default widget within its
-toplevel. See gtk_widget_set_can_default().
+toplevel.
 
 
 </description>
@@ -85926,26 +86051,6 @@ g_intern_static_string().
 <return></return>
 </function>
 
-<function name="gtk_widget_set_can_default">
-<description>
-Specifies whether @widget can be a default widget. See
-gtk_widget_grab_default() for details about the meaning of
-“default”.
-
-</description>
-<parameters>
-<parameter name="widget">
-<parameter_description> a #GtkWidget
-</parameter_description>
-</parameter>
-<parameter name="can_default">
-<parameter_description> whether or not @widget can be a default widget.
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="gtk_widget_set_can_focus">
 <description>
 Specifies whether @widget can own the input focus.
@@ -86541,12 +86646,9 @@ function is gtk_widget_unparent().
 
 <function name="gtk_widget_set_receives_default">
 <description>
-Specifies whether @widget will be treated as the default widget
-within its toplevel when it has the focus, even if another widget
-is the default.
-
-See gtk_widget_grab_default() for details about the meaning of
-“default”.
+Specifies whether @widget will be treated as the default
+widget within its toplevel when it has the focus, even if
+another widget is the default.
 
 </description>
 <parameters>
@@ -87091,41 +87193,6 @@ See gtk_widget_set_state_flags().
 <return></return>
 </function>
 
-<function name="gtk_window_activate_default">
-<description>
-Activates the default widget for the window, unless the current 
-focused widget has been configured to receive the default action 
-(see gtk_widget_set_receives_default()), in which case the
-focused widget is activated. 
-
-
-</description>
-<parameters>
-<parameter name="window">
-<parameter_description> a #GtkWindow
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if a widget got activated.
-</return>
-</function>
-
-<function name="gtk_window_activate_focus">
-<description>
-Activates the current focused widget within the window.
-
-
-</description>
-<parameters>
-<parameter name="window">
-<parameter_description> a #GtkWindow
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if a widget got activated.
-</return>
-</function>
-
 <function name="gtk_window_activate_key">
 <description>
 Activates mnemonics and accelerators for this #GtkWindow. This is normally
@@ -88459,31 +88526,6 @@ policy involved.
 <return></return>
 </function>
 
-<function name="gtk_window_set_default">
-<description>
-The default widget is the widget that’s activated when the user
-presses Enter in a dialog (for example). This function sets or
-unsets the default widget for a #GtkWindow. When setting (rather
-than unsetting) the default widget it’s generally easier to call
-gtk_widget_grab_default() on the widget. Before making a widget
-the default widget, you must call gtk_widget_set_can_default() on
-the widget you’d like to make the default.
-
-</description>
-<parameters>
-<parameter name="window">
-<parameter_description> a #GtkWindow
-</parameter_description>
-</parameter>
-<parameter name="default_widget">
-<parameter_description> widget to be the default, or %NULL
-to unset the default widget for the toplevel
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
 <function name="gtk_window_set_default_icon_name">
 <description>
 Sets an icon to be used as fallback for windows that haven't
@@ -88548,6 +88590,27 @@ work in all circumstances and can lead to growing or shrinking windows.
 <return></return>
 </function>
 
+<function name="gtk_window_set_default_widget">
+<description>
+The default widget is the widget that’s activated when the user
+presses Enter in a dialog (for example). This function sets or
+unsets the default widget for a #GtkWindow.
+
+</description>
+<parameters>
+<parameter name="window">
+<parameter_description> a #GtkWindow
+</parameter_description>
+</parameter>
+<parameter name="default_widget">
+<parameter_description> widget to be the default, or %NULL
+to unset the default widget for the toplevel
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_window_set_deletable">
 <description>
 By default, windows have a close button in the window frame. Some 
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index 38b78293..e616b394 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -4914,7 +4914,7 @@
   (return-type "gboolean")
   (parameters
     '("const-gchar*" "buffer")
-    '("gsize" "length")
+    '("gssize" "length")
     '("GError**" "error")
   )
 )
@@ -4947,7 +4947,7 @@
   (return-type "gboolean")
   (parameters
     '("const-gchar*" "buffer")
-    '("gsize" "length")
+    '("gssize" "length")
     '("gchar**" "object_ids")
     '("GError**" "error")
   )
@@ -5123,7 +5123,7 @@
     '("GtkWidget*" "widget")
     '("GType" "template_type")
     '("const-gchar*" "buffer")
-    '("gsize" "length")
+    '("gssize" "length")
     '("GError**" "error")
   )
 )
@@ -15662,15 +15662,6 @@
   )
 )
 
-(define-method set_display
-  (of-object "GtkMenu")
-  (c-name "gtk_menu_set_display")
-  (return-type "none")
-  (parameters
-    '("GdkDisplay*" "display")
-  )
-)
-
 (define-method set_monitor
   (of-object "GtkMenu")
   (c-name "gtk_menu_set_monitor")
@@ -25818,7 +25809,7 @@
   (parameters
     '("GtkWidget*" "widget")
     '("gchar*" "text")
-    '("gsize" "len")
+    '("gssize" "len")
   )
 )
 
@@ -30023,6 +30014,21 @@
   (return-type "GtkLayoutManager*")
 )
 
+(define-method set_layout_manager_type
+  (of-object "GtkWidgetClass")
+  (c-name "gtk_widget_class_set_layout_manager_type")
+  (return-type "none")
+  (parameters
+    '("GType" "type")
+  )
+)
+
+(define-method get_layout_manager_type
+  (of-object "GtkWidgetClass")
+  (c-name "gtk_widget_class_get_layout_manager_type")
+  (return-type "GType")
+)
+
 (define-method add_accelerator
   (of-object "GtkWidget")
   (c-name "gtk_widget_add_accelerator")
@@ -30165,33 +30171,12 @@
   (return-type "gboolean")
 )
 
-(define-method set_can_default
-  (of-object "GtkWidget")
-  (c-name "gtk_widget_set_can_default")
-  (return-type "none")
-  (parameters
-    '("gboolean" "can_default")
-  )
-)
-
-(define-method get_can_default
-  (of-object "GtkWidget")
-  (c-name "gtk_widget_get_can_default")
-  (return-type "gboolean")
-)
-
 (define-method has_default
   (of-object "GtkWidget")
   (c-name "gtk_widget_has_default")
   (return-type "gboolean")
 )
 
-(define-method grab_default
-  (of-object "GtkWidget")
-  (c-name "gtk_widget_grab_default")
-  (return-type "none")
-)
-
 (define-method set_receives_default
   (of-object "GtkWidget")
   (c-name "gtk_widget_set_receives_default")
@@ -31235,6 +31220,22 @@
   (return-type "const-gchar**")
 )
 
+(define-method activate_action
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_activate_action")
+  (return-type "none")
+  (parameters
+    '("const-char*" "name")
+    '("GVariant*" "parameter")
+  )
+)
+
+(define-method activate_default
+  (of-object "GtkWidget")
+  (c-name "gtk_widget_activate_default")
+  (return-type "none")
+)
+
 (define-method set_font_map
   (of-object "GtkWidget")
   (c-name "gtk_widget_set_font_map")
@@ -31763,12 +31764,6 @@
   )
 )
 
-(define-method activate_focus
-  (of-object "GtkWindow")
-  (c-name "gtk_window_activate_focus")
-  (return-type "gboolean")
-)
-
 (define-method set_focus
   (of-object "GtkWindow")
   (c-name "gtk_window_set_focus")
@@ -31784,9 +31779,9 @@
   (return-type "GtkWidget*")
 )
 
-(define-method set_default
+(define-method set_default_widget
   (of-object "GtkWindow")
-  (c-name "gtk_window_set_default")
+  (c-name "gtk_window_set_default_widget")
   (return-type "none")
   (parameters
     '("GtkWidget*" "default_widget")
@@ -31799,12 +31794,6 @@
   (return-type "GtkWidget*")
 )
 
-(define-method activate_default
-  (of-object "GtkWindow")
-  (c-name "gtk_window_activate_default")
-  (return-type "gboolean")
-)
-
 (define-method set_transient_for
   (of-object "GtkWindow")
   (c-name "gtk_window_set_transient_for")
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 1ebf8b61..5ab77eb0 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -7076,6 +7076,15 @@
   (default-value "GTK_POPOVER_CONSTRAINT_WINDOW")
 )
 
+(define-property default-widget
+  (of-object "GtkPopover")
+  (prop-type "GParamObject")
+  (docs "The default widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 ;; From GtkPopoverMenu
 
 (define-property visible-submenu
@@ -11986,15 +11995,6 @@
   (flags "")
 )
 
-(define-signal display-changed
-  (of-object "GtkWidget")
-  (return-type "void")
-  (flags "Run Last")
-  (parameters
-    '("GdkDisplay*" "p0")
-  )
-)
-
 (define-signal can-activate-accel
   (of-object "GtkWidget")
   (return-type "gboolean")
@@ -12122,22 +12122,12 @@
   (default-value "TRUE")
 )
 
-(define-property can-default
-  (of-object "GtkWidget")
-  (prop-type "GParamBoolean")
-  (docs "Whether the widget can be the default widget")
-  (readable #t)
-  (writable #t)
-  (construct-only #f)
-  (default-value "FALSE")
-)
-
 (define-property has-default
   (of-object "GtkWidget")
   (prop-type "GParamBoolean")
   (docs "Whether the widget is the default widget")
   (readable #t)
-  (writable #t)
+  (writable #f)
   (construct-only #f)
   (default-value "FALSE")
 )
@@ -12601,6 +12591,15 @@
   (construct-only #f)
 )
 
+(define-property default-widget
+  (of-object "GtkWindow")
+  (prop-type "GParamObject")
+  (docs "The default widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 (define-property is-active
   (of-object "GtkWindow")
   (prop-type "GParamBoolean")


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