[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: Wed, 27 Nov 2019 15:16:04 +0000 (UTC)
commit a4364a5d01c3122e26f9716fb7cae693d1475e8f
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Wed Nov 27 15:57:27 2019 +0100
Gdk, Gtk: Regenerate docs.xml and .defs files
and update gtk_docs_override.xml, gtk_extra_objects.defs and
tools/extra_defs_gen/generate_defs_gtk.cc.
gdk/src/gdk_docs.xml | 82 ++--
gdk/src/gdk_enums.defs | 4 +-
gdk/src/gdk_methods.defs | 10 +-
gtk/src/gtk_docs.xml | 665 ++++++++++++++++++------------
gtk/src/gtk_docs_override.xml | 27 ++
gtk/src/gtk_enums.defs | 29 +-
gtk/src/gtk_extra_objects.defs | 6 +
gtk/src/gtk_methods.defs | 272 ++++++------
gtk/src/gtk_signals.defs | 170 +++-----
tools/extra_defs_gen/generate_defs_gtk.cc | 1 -
10 files changed, 673 insertions(+), 593 deletions(-)
---
diff --git a/gdk/src/gdk_docs.xml b/gdk/src/gdk_docs.xml
index eae3f28e..acdc4ba6 100644
--- a/gdk/src/gdk_docs.xml
+++ b/gdk/src/gdk_docs.xml
@@ -2816,7 +2816,7 @@ any of the per-edge states being set.
<parameter_description> the surface is not shown
</parameter_description>
</parameter>
-<parameter name="GDK_SURFACE_STATE_ICONIFIED">
+<parameter name="GDK_SURFACE_STATE_MINIMIZED">
<parameter_description> the surface is minimized
</parameter_description>
</parameter>
@@ -15389,25 +15389,6 @@ If the creation of the #GdkVulkanContext failed, @error will be set.
</return>
</function>
-<function name="gdk_surface_deiconify">
-<description>
-Attempt to deiconify (unminimize) @surface. On X11 the window manager may
-choose to ignore the request to deiconify. When using GTK,
-use gtk_window_deiconify() instead of the #GdkSurface variant. Or better yet,
-you probably want to use gtk_window_present_with_time(), which raises the surface, focuses it,
-unminimizes it, and puts it on the current desktop.
-
-
-</description>
-<parameters>
-<parameter name="surface">
-<parameter_description> a toplevel #GdkSurface
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gdk_surface_destroy">
<description>
Destroys the window system resources associated with @surface and decrements @surface's
@@ -15908,25 +15889,6 @@ part of gtk_widget_hide().
<return></return>
</function>
-<function name="gdk_surface_iconify">
-<description>
-Asks to iconify (minimize) @surface. The window manager may choose
-to ignore the request, but normally will honor it. Using
-gtk_window_iconify() is preferred, if you have a #GtkWindow widget.
-
-This function only makes sense when @surface is a toplevel surface.
-
-
-</description>
-<parameters>
-<parameter name="surface">
-<parameter_description> a toplevel #GdkSurface
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gdk_surface_input_shape_combine_region">
<description>
Like gdk_surface_shape_combine_region(), but the shape applies
@@ -16102,6 +16064,27 @@ and GDK makes a best effort to get it to happen.
On Windows, reliably maximizes the surface.
+</description>
+<parameters>
+<parameter name="surface">
+<parameter_description> a toplevel #GdkSurface
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_surface_minimize">
+<description>
+Asks to minimize the @surface.
+
+The windowing system may choose to ignore the request.
+
+You can track the result of this request by using the #GdkSurface:state
+property.
+
+This function only makes sense when @surface is a toplevel surface.
+
</description>
<parameters>
<parameter name="surface">
@@ -17070,6 +17053,27 @@ managers, and GDK makes a best effort to get it to happen.
On Windows, reliably unmaximizes the surface.
+</description>
+<parameters>
+<parameter name="surface">
+<parameter_description> a toplevel #GdkSurface
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_surface_unminimize">
+<description>
+Asks to unminimize the @surface.
+
+The windowing system may choose to ignore the request.
+
+You can track the result of this request by using the #GdkSurface:state
+property.
+
+This function only makes sense when @surface is a toplevel surface.
+
</description>
<parameters>
<parameter name="surface">
diff --git a/gdk/src/gdk_enums.defs b/gdk/src/gdk_enums.defs
index b8d72768..19417ab8 100644
--- a/gdk/src/gdk_enums.defs
+++ b/gdk/src/gdk_enums.defs
@@ -648,7 +648,7 @@
;; typedef enum
;; {
;; GDK_SURFACE_STATE_WITHDRAWN = 1 << 0,
-;; GDK_SURFACE_STATE_ICONIFIED = 1 << 1,
+;; GDK_SURFACE_STATE_MINIMIZED = 1 << 1,
;; GDK_SURFACE_STATE_MAXIMIZED = 1 << 2,
;; GDK_SURFACE_STATE_STICKY = 1 << 3,
;; GDK_SURFACE_STATE_FULLSCREEN = 1 << 4,
@@ -671,7 +671,7 @@
(c-name "GdkSurfaceState")
(values
'("withdrawn" "GDK_SURFACE_STATE_WITHDRAWN" "1 << 0")
- '("iconified" "GDK_SURFACE_STATE_ICONIFIED" "1 << 1")
+ '("minimized" "GDK_SURFACE_STATE_MINIMIZED" "1 << 1")
'("maximized" "GDK_SURFACE_STATE_MAXIMIZED" "1 << 2")
'("sticky" "GDK_SURFACE_STATE_STICKY" "1 << 3")
'("fullscreen" "GDK_SURFACE_STATE_FULLSCREEN" "1 << 4")
diff --git a/gdk/src/gdk_methods.defs b/gdk/src/gdk_methods.defs
index 6c65e0f8..c7d14a8f 100644
--- a/gdk/src/gdk_methods.defs
+++ b/gdk/src/gdk_methods.defs
@@ -379,7 +379,7 @@
(gtype-id "GDK_TYPE_SURFACE_STATE")
(values
'("withdrawn" "GDK_SURFACE_STATE_WITHDRAWN")
- '("iconified" "GDK_SURFACE_STATE_ICONIFIED")
+ '("minimized" "GDK_SURFACE_STATE_MINIMIZED")
'("maximized" "GDK_SURFACE_STATE_MAXIMIZED")
'("sticky" "GDK_SURFACE_STATE_STICKY")
'("fullscreen" "GDK_SURFACE_STATE_FULLSCREEN")
@@ -4210,15 +4210,15 @@
(return-type "none")
)
-(define-method iconify
+(define-method minimize
(of-object "GdkSurface")
- (c-name "gdk_surface_iconify")
+ (c-name "gdk_surface_minimize")
(return-type "none")
)
-(define-method deiconify
+(define-method unminimize
(of-object "GdkSurface")
- (c-name "gdk_surface_deiconify")
+ (c-name "gdk_surface_unminimize")
(return-type "none")
)
diff --git a/gtk/src/gtk_docs.xml b/gtk/src/gtk_docs.xml
index 6749643a..30bea430 100644
--- a/gtk/src/gtk_docs.xml
+++ b/gtk/src/gtk_docs.xml
@@ -1101,7 +1101,13 @@ derived from the type of the composite class being extended with builder XML.
</parameter_description>
</parameter>
<parameter name="GTK_BUILDER_ERROR_INVALID_ID">
-<parameter_description> An object id is unknown
+<parameter_description> An object id is unknown.
+</parameter_description>
+</parameter>
+<parameter name="GTK_BUILDER_ERROR_INVALID_FUNCTION">
+<parameter_description> A function could not be found. This often happens
+when symbols are set to be kept private. Compiling code with -rdynamic or using the
+`gmodule-export-2.0` pkgconfig module can fix this problem.
</parameter_description>
</parameter>
</parameters>
@@ -3685,7 +3691,9 @@ When %TRUE, pasted multi-line text is truncated to the first line.
<signal name="GtkEntryBuffer::deleted-text">
<description>
-This signal is emitted after text is deleted from the buffer.
+The text is altered in the default handler for this signal. If you want
+access to the text after the text has been modified, use
+%G_CONNECT_AFTER.
</description>
<parameters>
@@ -13136,6 +13144,21 @@ See gtk_text_buffer_paste_clipboard() for more details.
<return></return>
</signal>
+<signal name="GtkTextBuffer::redo">
+<description>
+The "redo" signal is emitted when a request has been made to redo the
+previously undone operation.
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkTextBuffer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</signal>
+
<signal name="GtkTextBuffer::remove-tag">
<description>
The ::remove-tag signal is emitted to remove all occurrences of @tag from
@@ -13170,6 +13193,37 @@ gtk_text_buffer_remove_tag().
<return></return>
</signal>
+<signal name="GtkTextBuffer::undo">
+<description>
+The "undo" signal is emitted when a request has been made to undo the
+previous operation or set of operations that have been grouped together.
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkTextBuffer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</signal>
+
+<property name="GtkTextBuffer:can-redo">
+<description>
+The :can-redo property denotes that the buffer can reapply the
+last undone action.
+
+</description>
+</property>
+
+<property name="GtkTextBuffer:can-undo">
+<description>
+The :can-undo property denotes that the buffer can undo the last
+applied action.
+
+</description>
+</property>
+
<property name="GtkTextBuffer:copy-target-list">
<description>
The list of targets this buffer supports for clipboard copying
@@ -13187,6 +13241,14 @@ cursor moves.
</description>
</property>
+<property name="GtkTextBuffer:enable-undo">
+<description>
+The :enable-undo property denotes if support for undoing and redoing
+changes to the buffer is allowed.
+
+</description>
+</property>
+
<property name="GtkTextBuffer:has-selection">
<description>
Whether the buffer has some text currently selected.
@@ -21671,7 +21733,7 @@ Sets the name of the @buildable object.
<description>
Adds the @callback_symbol to the scope of @builder under the given @callback_name.
-Using this function overrides the behavior of gtk_builder_connect_signals()
+Using this function overrides the behavior of gtk_builder_create_closure()
for any callback symbols that are added. Using this method allows for better
encapsulation as it does not require that callback symbols be declared in
the global namespace.
@@ -21950,29 +22012,17 @@ its child (for instance a #GtkTreeView that depends on its
</return>
</function>
-<function name="gtk_builder_connect_signals">
+<function name="gtk_builder_create_cclosure">
<description>
-This method is a simpler variation of gtk_builder_connect_signals_full().
-It uses symbols explicitly added to @builder with prior calls to
-gtk_builder_add_callback_symbol(). In the case that symbols are not
-explicitly added; it uses #GModule’s introspective features (by opening the module %NULL)
-to look at the application’s symbol table. From here it tries to match
-the signal handler names given in the interface description with
-symbols in the application and connects the signals. Note that this
-function can only be called once, subsequent calls will do nothing.
+This is the default function used by gtk_builder_set_closure_func(). Some bindings
+with C support may want to call this function as a fallback from their closure
+function.
-Note that unless gtk_builder_add_callback_symbol() is called for
-all signal callbacks which are referenced by the loaded XML, this
-function will require that #GModule be supported on the platform.
+This function has no purpose otherwise.
-If you rely on #GModule support to lookup callbacks in the symbol table,
-the following details should be noted:
+This function will prefer callbacks added via gtk_builder_add_callback_symbol()
+to looking up public symbols.
-When compiling applications for Windows, you must declare signal callbacks
-with #G_MODULE_EXPORT, or they will not be put in the symbol table.
-On Linux and Unices, this is not necessary; applications should instead
-be compiled with the -Wl,--export-dynamic CFLAGS, and linked against
-gmodule-export-2.0.
</description>
<parameters>
@@ -21980,19 +22030,38 @@ gmodule-export-2.0.
<parameter_description> a #GtkBuilder
</parameter_description>
</parameter>
-<parameter name="user_data">
-<parameter_description> user data to pass back with all signals
+<parameter name="function_name">
+<parameter_description> name of the function to look up
+</parameter_description>
+</parameter>
+<parameter name="swapped">
+<parameter_description> %TRUE to create a swapped closure
+</parameter_description>
+</parameter>
+<parameter name="object">
+<parameter_description> Object to create the closure with
+</parameter_description>
+</parameter>
+<parameter name="error">
+<parameter_description> return location for an error, or %NULL
</parameter_description>
</parameter>
</parameters>
-<return></return>
+<return> A new closure for invoking @function_name
+</return>
</function>
-<function name="gtk_builder_connect_signals_full">
+<function name="gtk_builder_create_closure">
<description>
-This function can be thought of the interpreted language binding
-version of gtk_builder_connect_signals(), except that it does not
-require GModule to function correctly.
+Creates a closure to invoke the function called @function_name.
+
+If a closure function was set via gtk_builder_set_closure_func(),
+will be invoked.
+Otherwise, gtk_builder_create_cclosure() will be called.
+
+If no closure could be created, %NULL will be returned and @error will
+be set.
+
</description>
<parameters>
@@ -22000,16 +22069,25 @@ require GModule to function correctly.
<parameter_description> a #GtkBuilder
</parameter_description>
</parameter>
-<parameter name="func">
-<parameter_description> the function used to connect the signals
+<parameter name="function_name">
+<parameter_description> name of the function to look up
</parameter_description>
</parameter>
-<parameter name="user_data">
-<parameter_description> arbitrary data that will be passed to the connection function
+<parameter name="swapped">
+<parameter_description> %TRUE to create a swapped closure
+</parameter_description>
+</parameter>
+<parameter name="object">
+<parameter_description> Object to create the closure with
+</parameter_description>
+</parameter>
+<parameter name="error">
+<parameter_description> return location for an error, or %NULL
</parameter_description>
</parameter>
</parameters>
-<return></return>
+<return> A new closure for invoking @function_name
+</return>
</function>
<function name="gtk_builder_expose_object">
@@ -22075,30 +22153,6 @@ templates, applications have no need to call this function.
</return>
</function>
-<function name="gtk_builder_get_application">
-<description>
-Gets the #GtkApplication associated with the builder.
-
-The #GtkApplication is used for creating action proxies as requested
-from XML that the builder is loading.
-
-By default, the builder uses the default application: the one from
-g_application_get_default(). If you want to use another application
-for constructing proxies, use gtk_builder_set_application().
-
-
-</description>
-<parameters>
-<parameter name="builder">
-<parameter_description> a #GtkBuilder
-</parameter_description>
-</parameter>
-</parameters>
-<return> the application being used by the builder,
-or %NULL
-</return>
-</function>
-
<function name="gtk_builder_get_object">
<description>
Gets the object named @name. Note that this function does not
@@ -22188,8 +22242,8 @@ Fetches a symbol previously added to @builder
with gtk_builder_add_callback_symbols()
This function is intended for possible use in language bindings
-or for any case that one might be cusomizing signal connections
-using gtk_builder_connect_signals_full()
+or for any case that one might be customizing signal connections
+using gtk_builder_set_closure_func().
</description>
@@ -22296,12 +22350,13 @@ from untrusted sources.
</return>
</function>
-<function name="gtk_builder_set_application">
+<function name="gtk_builder_set_closure_func">
<description>
-Sets the application associated with @builder.
+Sets the function to call for creating closures.
+gtk_builder_create_closure() will use this function instead
+of gtk_builder_create_cclosure().
-You only need this function if there is more than one #GApplication
-in your process. @application cannot be %NULL.
+This is useful for bindings.
</description>
<parameters>
@@ -22309,8 +22364,17 @@ in your process. @application cannot be %NULL.
<parameter_description> a #GtkBuilder
</parameter_description>
</parameter>
-<parameter name="application">
-<parameter_description> a #GtkApplication
+<parameter name="closure_func">
+<parameter_description> function to call when creating
+closures or %NULL to use the default
+</parameter_description>
+</parameter>
+<parameter name="user_data">
+<parameter_description> user data to pass to @closure_func
+</parameter_description>
+</parameter>
+<parameter name="user_destroy">
+<parameter_description> destroy function for user data
</parameter_description>
</parameter>
</parameters>
@@ -31160,6 +31224,22 @@ See gtk_editable_set_editable().
</return>
</function>
+<function name="gtk_editable_get_enable_undo">
+<description>
+Gets if undo/redo actions are enabled for @editable
+
+
+</description>
+<parameters>
+<parameter name="editable">
+<parameter_description> a #GtkEditable
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if undo is enabled
+</return>
+</function>
+
<function name="gtk_editable_get_max_width_chars">
<description>
Retrieves the desired maximum width of @editable, in characters.
@@ -31409,6 +31489,28 @@ in the widget
<return></return>
</function>
+<function name="gtk_editable_set_enable_undo">
+<description>
+If enabled, changes to @editable will be saved for undo/redo actions.
+
+This results in an additional copy of text changes and are not stored in
+secure memory. As such, undo is forcefully disabled when #GtkText:visibility
+is set to %FALSE.
+
+</description>
+<parameters>
+<parameter name="editable">
+<parameter_description> a #GtkEditable
+</parameter_description>
+</parameter>
+<parameter name="enable_undo">
+<parameter_description> if undo/redo should be enabled
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_editable_set_max_width_chars">
<description>
Sets the desired maximum width in characters of @editable.
@@ -54538,28 +54640,6 @@ Returns the widget @popover is currently attached to
</return>
</function>
-<function name="gtk_popover_menu_add_submenu">
-<description>
-Adds a submenu to the popover menu.
-
-</description>
-<parameters>
-<parameter name="popover">
-<parameter_description> a #GtkPopoverMenu
-</parameter_description>
-</parameter>
-<parameter name="submenu">
-<parameter_description> a widget to add as submenu
-</parameter_description>
-</parameter>
-<parameter name="name">
-<parameter_description> the name for the submenu
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gtk_popover_menu_bar_get_menu_model">
<description>
Returns the model from which the contents of @bar are taken.
@@ -54584,7 +54664,7 @@ Creates a #GtkPopoverMenuBar from a #GMenuModel.
</description>
<parameters>
<parameter name="model">
-<parameter_description> a #GMenuModel
+<parameter_description> a #GMenuModel, or %NULL
</parameter_description>
</parameter>
</parameters>
@@ -54604,7 +54684,7 @@ its contents.
</parameter_description>
</parameter>
<parameter name="model">
-<parameter_description> a #GMenuModel
+<parameter_description> a #GMenuModel, or %NULL
</parameter_description>
</parameter>
</parameters>
@@ -54652,7 +54732,7 @@ to control this.
</parameter_description>
</parameter>
<parameter name="model">
-<parameter_description> a #GMenuModel
+<parameter_description> a #GMenuModel, or %NULL
</parameter_description>
</parameter>
</parameters>
@@ -60221,124 +60301,6 @@ value changes.
<return></return>
</function>
-<function name="gtk_rc_property_parse_border">
-<description>
-A #GtkRcPropertyParser for use with gtk_settings_install_property_parser()
-or gtk_widget_class_install_style_property_parser() which parses
-borders in the form
-`"{ left, right, top, bottom }"` for integers
-left, right, top and bottom.
-
-
-</description>
-<parameters>
-<parameter name="pspec">
-<parameter_description> a #GParamSpec
-</parameter_description>
-</parameter>
-<parameter name="gstring">
-<parameter_description> the #GString to be parsed
-</parameter_description>
-</parameter>
-<parameter name="property_value">
-<parameter_description> a #GValue which must hold boxed values.
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if @gstring could be parsed and @property_value
-has been set to the resulting #GtkBorder.
-</return>
-</function>
-
-<function name="gtk_rc_property_parse_enum">
-<description>
-A #GtkRcPropertyParser for use with gtk_settings_install_property_parser()
-or gtk_widget_class_install_style_property_parser() which parses a single
-enumeration value.
-
-The enumeration value can be specified by its name, its nickname or
-its numeric value. For consistency with flags parsing, the value
-may be surrounded by parentheses.
-
-
-</description>
-<parameters>
-<parameter name="pspec">
-<parameter_description> a #GParamSpec
-</parameter_description>
-</parameter>
-<parameter name="gstring">
-<parameter_description> the #GString to be parsed
-</parameter_description>
-</parameter>
-<parameter name="property_value">
-<parameter_description> a #GValue which must hold enum values.
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if @gstring could be parsed and @property_value
-has been set to the resulting #GEnumValue.
-</return>
-</function>
-
-<function name="gtk_rc_property_parse_flags">
-<description>
-A #GtkRcPropertyParser for use with gtk_settings_install_property_parser()
-or gtk_widget_class_install_style_property_parser() which parses flags.
-
-Flags can be specified by their name, their nickname or
-numerically. Multiple flags can be specified in the form
-`"( flag1 | flag2 | ... )"`.
-
-
-</description>
-<parameters>
-<parameter name="pspec">
-<parameter_description> a #GParamSpec
-</parameter_description>
-</parameter>
-<parameter name="gstring">
-<parameter_description> the #GString to be parsed
-</parameter_description>
-</parameter>
-<parameter name="property_value">
-<parameter_description> a #GValue which must hold flags values.
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if @gstring could be parsed and @property_value
-has been set to the resulting flags value.
-</return>
-</function>
-
-<function name="gtk_rc_property_parse_requisition">
-<description>
-A #GtkRcPropertyParser for use with gtk_settings_install_property_parser()
-or gtk_widget_class_install_style_property_parser() which parses a
-requisition in the form
-`"{ width, height }"` for integers %width and %height.
-
-
-</description>
-<parameters>
-<parameter name="pspec">
-<parameter_description> a #GParamSpec
-</parameter_description>
-</parameter>
-<parameter name="gstring">
-<parameter_description> the #GString to be parsed
-</parameter_description>
-</parameter>
-<parameter name="property_value">
-<parameter_description> a #GValue which must hold boxed values.
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if @gstring could be parsed and @property_value
-has been set to the resulting #GtkRequisition.
-</return>
-</function>
-
<function name="gtk_recent_info_create_app_info">
<description>
Creates a #GAppInfo for the specified #GtkRecentInfo
@@ -66504,6 +66466,7 @@ Stops the animation of the spinner.
Adds a child to @stack.
The child is identified by the @name.
+
</description>
<parameters>
<parameter name="stack">
@@ -66519,7 +66482,8 @@ The child is identified by the @name.
</parameter_description>
</parameter>
</parameters>
-<return></return>
+<return> the #GtkStackPage for @child
+</return>
</function>
<function name="gtk_stack_add_titled">
@@ -66529,6 +66493,7 @@ The child is identified by the @name. The @title
will be used by #GtkStackSwitcher to represent
@child in a tab bar, so it should be short.
+
</description>
<parameters>
<parameter name="stack">
@@ -66548,7 +66513,8 @@ will be used by #GtkStackSwitcher to represent
</parameter_description>
</parameter>
</parameters>
-<return></return>
+<return> the #GtkStackPage for @child
+</return>
</function>
<function name="gtk_stack_get_child_by_name">
@@ -68450,6 +68416,28 @@ re-initialized to point to the location where text was deleted.
</return>
</function>
+<function name="gtk_text_buffer_begin_irreversible_action">
+<description>
+Denotes the beginning of an action that may not be undone. This will cause
+any previous operations in the undo/redo queue to be cleared.
+
+This should be paired with a call to
+gtk_text_buffer_end_irreversible_action() after the irreversible action
+has completed.
+
+You may nest calls to gtk_text_buffer_begin_irreversible_action() and
+gtk_text_buffer_end_irreversible_action() pairs.
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #Gtktextbuffer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_text_buffer_begin_user_action">
<description>
Called to indicate that the buffer operations between here and a
@@ -68760,6 +68748,27 @@ uneditable text).
</return>
</function>
+<function name="gtk_text_buffer_end_irreversible_action">
+<description>
+Denotes the end of an action that may not be undone. This will cause
+any previous operations in the undo/redo queue to be cleared.
+
+This should be called after completing modifications to the text buffer
+after gtk_text_buffer_begin_irreversible_action() was called.
+
+You may nest calls to gtk_text_buffer_begin_irreversible_action() and
+gtk_text_buffer_end_irreversible_action() pairs.
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #Gtktextbuffer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_text_buffer_end_user_action">
<description>
Should be paired with a call to gtk_text_buffer_begin_user_action().
@@ -68817,6 +68826,25 @@ count is cached, so this function is very fast.
</return>
</function>
+<function name="gtk_text_buffer_get_enable_undo">
+<description>
+Gets whether the buffer is saving modifications to the buffer to allow for
+undo and redo actions.
+
+See gtk_text_buffer_begin_irreversible_action() and
+gtk_text_buffer_end_irreversible_action() to create changes to the buffer
+that cannot be undone.
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkTextBuffer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_text_buffer_get_end_iter">
<description>
Initializes @iter with the “end iterator,” one past the last valid
@@ -69070,6 +69098,23 @@ mark exists in the buffer.
</return>
</function>
+<function name="gtk_text_buffer_get_max_undo_levels">
+<description>
+Gets the maximum number of undo levels to perform. If 0, unlimited undo
+actions may be performed. Note that this may have a memory usage impact
+as it requires storing an additional copy of the inserted or removed text
+within the text buffer.
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkTextBuffer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_text_buffer_get_modified">
<description>
Indicates whether the buffer has been modified since the last call
@@ -69729,6 +69774,20 @@ be optimized.
<return></return>
</function>
+<function name="gtk_text_buffer_redo">
+<description>
+Redoes the next redoable action on the buffer, if there is one.
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkTextBuffer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_text_buffer_remove_all_tags">
<description>
Removes all tags in the range between @start and @end. Be careful
@@ -69858,6 +69917,26 @@ be optimized.
<return></return>
</function>
+<function name="gtk_text_buffer_set_enable_undo">
+<description>
+Sets whether or not to enable undoable actions in the text buffer. If
+enabled, the user will be able to undo the last number of actions up to
+gtk_text_buffer_get_max_undo_levels().
+
+See gtk_text_buffer_begin_irreversible_action() and
+gtk_text_buffer_end_irreversible_action() to create changes to the buffer
+that cannot be undone.
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkTextBuffer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_text_buffer_set_mark">
<description>
Move the mark to the given position, if not @should_exist,
@@ -69893,6 +69972,27 @@ immediately
</return>
</function>
+<function name="gtk_text_buffer_set_max_undo_levels">
+<description>
+Sets the maximum number of undo levels to perform. If 0, unlimited undo
+actions may be performed. Note that this may have a memory usage impact
+as it requires storing an additional copy of the inserted or removed text
+within the text buffer.
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkTextBuffer
+</parameter_description>
+</parameter>
+<parameter name="max_undo_levels">
+<parameter_description> the maximum number of undo actions to perform
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_text_buffer_set_modified">
<description>
Used to keep track of whether the buffer has been modified since the
@@ -69938,6 +70038,20 @@ Deletes current contents of @buffer, and inserts @text instead. If
<return></return>
</function>
+<function name="gtk_text_buffer_undo">
+<description>
+Undoes the last undoable action on the buffer, if there is one.
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkTextBuffer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_text_child_anchor_get_deleted">
<description>
Determines whether a child anchor has been deleted from
@@ -84406,9 +84520,9 @@ This function should only be called from class init functions of widgets.
<return></return>
</function>
-<function name="gtk_widget_class_set_connect_func">
+<function name="gtk_widget_class_set_closure_func">
<description>
-For use in language bindings, this will override the default #GtkBuilderConnectFunc to be
+For use in language bindings, this will override the default #GtkBuilderClosureFunc to be
used when parsing GtkBuilder XML from this class’s template data.
Note that this must be called from a composite widget classes class
@@ -84420,16 +84534,16 @@ initializer after calling gtk_widget_class_set_template().
<parameter_description> A #GtkWidgetClass
</parameter_description>
</parameter>
-<parameter name="connect_func">
-<parameter_description> The #GtkBuilderConnectFunc to use when connecting signals in the class template
+<parameter name="closure_func">
+<parameter_description> The #GtkBuilderClosureFunc to use when creating closure in the class template
</parameter_description>
</parameter>
-<parameter name="connect_data">
-<parameter_description> The data to pass to @connect_func
+<parameter name="closure_data">
+<parameter_description> The data to pass to @closure_func
</parameter_description>
</parameter>
-<parameter name="connect_data_destroy">
-<parameter_description> The #GDestroyNotify to free @connect_data, this will only be used at
+<parameter name="closure_data_destroy">
+<parameter_description> The #GDestroyNotify to free @closure_data, this will only be used at
class finalization time, when no classes of type @widget_type are in use anymore.
</parameter_description>
</parameter>
@@ -89063,26 +89177,6 @@ titlebars.
<return></return>
</function>
-<function name="gtk_window_deiconify">
-<description>
-Asks to deiconify (i.e. unminimize) the specified @window. Note
-that you shouldn’t assume the window is definitely deiconified
-afterward, because other entities (e.g. the user or
-[window manager][gtk-X11-arch])) could iconify it
-again before your code which assumes deiconification gets to run.
-
-You can track iconification via the #GdkSurface::state property.
-
-</description>
-<parameters>
-<parameter name="window">
-<parameter_description> a #GtkWindow
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gtk_window_fullscreen">
<description>
Asks to place @window in the fullscreen state. Note that you
@@ -89779,32 +89873,6 @@ Returns whether @window has an explicit window group.
</return>
</function>
-<function name="gtk_window_iconify">
-<description>
-Asks to iconify (i.e. minimize) the specified @window. Note that
-you shouldn’t assume the window is definitely iconified afterward,
-because other entities (e.g. the user or
-[window manager][gtk-X11-arch]) could deiconify it
-again, or there may not be a window manager in which case
-iconification isn’t possible, etc. But normally the window will end
-up iconified. Just don’t write code that crashes if not.
-
-It’s permitted to call this function before showing a window,
-in which case the window will be iconified before it ever appears
-onscreen.
-
-You can track iconification via the #GdkSurface::state property.
-
-</description>
-<parameters>
-<parameter name="window">
-<parameter_description> a #GtkWindow
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gtk_window_is_active">
<description>
Returns whether the window is part of the current active toplevel.
@@ -89878,8 +89946,36 @@ It’s permitted to call this function before showing a window,
in which case the window will be maximized when it appears onscreen
initially.
-You can track iconification via the #GdkSurface::state property
-or by listening to notifications on the #GtkWindow:is-maximized property.
+You can track the result of this operation via the #GdkSurface:state
+property, or by listening to notifications on the #GtkWindow:is-maximized
+property.
+
+</description>
+<parameters>
+<parameter name="window">
+<parameter_description> a #GtkWindow
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_window_minimize">
+<description>
+Asks to minimize the specified @window.
+
+Note that you shouldn’t assume the window is definitely minimized
+afterward, because the windowing system might not support this
+functionality; other entities (e.g. the user or the [window manager][gtk-X11-arch])
+could unminimize it again, or there may not be a window manager in
+which case minimization isn’t possible, etc.
+
+It’s permitted to call this function before showing a window,
+in which case the window will be minimized before it ever appears
+onscreen.
+
+You can track result of this operation via the #GdkSurface:state
+property.
</description>
<parameters>
@@ -89969,7 +90065,7 @@ to allow focus stealing prevention to work correctly.
<function name="gtk_window_present_with_time">
<description>
Presents a window to the user. This may mean raising the window
-in the stacking order, deiconifying it, moving it to the current
+in the stacking order, unminimizing it, moving it to the current
desktop, and/or giving it the keyboard focus, possibly dependent
on the user’s platform, window manager, and preferences.
@@ -90847,7 +90943,8 @@ write code that crashes if not.
It’s permitted to call this function before showing a window.
-You can track iconification via the #GdkSurface::state property.
+You can track result of this operation via the #GdkSurface:state
+property.
</description>
<parameters>
@@ -90890,7 +90987,32 @@ could maximize it again, and not all window
managers honor requests to unmaximize. But normally the window will
end up unmaximized. Just don’t write code that crashes if not.
-You can track iconification via the #GdkSurface::state property
+You can track the result of this operation via the #GdkSurface:state
+property, or by listening to notifications on the #GtkWindow:is-maximized
+property.
+
+</description>
+<parameters>
+<parameter name="window">
+<parameter_description> a #GtkWindow
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_window_unminimize">
+<description>
+Asks to unminimize the specified @window.
+
+Note that you shouldn’t assume the window is definitely unminimized
+afterward, because the windowing system might not support this
+functionality; other entities (e.g. the user or the [window manager][gtk-X11-arch])
+could minimize it again, or there may not be a window manager in
+which case minimization isn’t possible, etc.
+
+You can track result of this operation via the #GdkSurface:state
+property.
</description>
<parameters>
@@ -90911,7 +91033,8 @@ window is definitely unstuck afterward, because other entities
stick it again. But normally the window will
end up stuck. Just don’t write code that crashes if not.
-You can track iconification via the #GdkSurface::state property.
+You can track result of this operation via the #GdkSurface:state
+property.
</description>
<parameters>
diff --git a/gtk/src/gtk_docs_override.xml b/gtk/src/gtk_docs_override.xml
index 0fd053a0..1771cfda 100644
--- a/gtk/src/gtk_docs_override.xml
+++ b/gtk/src/gtk_docs_override.xml
@@ -1725,4 +1725,31 @@ See gtk_selection_data_set() and gtk_selection_data_set_text().
<return></return>
</signal>
+<!-- TODO: Remove this function description when gtk+'s description contains -->
+<!-- the correct number of parameters (@enable_undo). -->
+<function name="gtk_text_buffer_set_enable_undo">
+<description>
+Sets whether or not to enable undoable actions in the text buffer. If
+enabled, the user will be able to undo the last number of actions up to
+gtk_text_buffer_get_max_undo_levels().
+
+See gtk_text_buffer_begin_irreversible_action() and
+gtk_text_buffer_end_irreversible_action() to create changes to the buffer
+that cannot be undone.
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkTextBuffer
+</parameter_description>
+</parameter>
+<parameter name="enable_undo">
+<parameter_description> %TRUE to enable undoable actions
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+
</root>
diff --git a/gtk/src/gtk_enums.defs b/gtk/src/gtk_enums.defs
index 59a4ae56..846b1772 100644
--- a/gtk/src/gtk_enums.defs
+++ b/gtk/src/gtk_enums.defs
@@ -153,7 +153,8 @@
;; GTK_BUILDER_ERROR_TEMPLATE_MISMATCH,
;; GTK_BUILDER_ERROR_INVALID_PROPERTY,
;; GTK_BUILDER_ERROR_INVALID_SIGNAL,
-;; GTK_BUILDER_ERROR_INVALID_ID
+;; GTK_BUILDER_ERROR_INVALID_ID,
+;; GTK_BUILDER_ERROR_INVALID_FUNCTION
;; } GtkBuilderError;
(define-enum-extended GtkBuilderError
@@ -174,6 +175,7 @@
'("invalid-property" "GTK_BUILDER_ERROR_INVALID_PROPERTY" "11")
'("invalid-signal" "GTK_BUILDER_ERROR_INVALID_SIGNAL" "12")
'("invalid-id" "GTK_BUILDER_ERROR_INVALID_ID" "13")
+ '("invalid-function" "GTK_BUILDER_ERROR_INVALID_FUNCTION" "14")
)
)
@@ -401,6 +403,7 @@
;; GTK_EDITABLE_PROP_WIDTH_CHARS,
;; GTK_EDITABLE_PROP_MAX_WIDTH_CHARS,
;; GTK_EDITABLE_PROP_XALIGN,
+;; GTK_EDITABLE_PROP_ENABLE_UNDO,
;; GTK_EDITABLE_NUM_PROPERTIES
;; } GtkEditableProperties;
@@ -415,7 +418,8 @@
'("prop-width-chars" "GTK_EDITABLE_PROP_WIDTH_CHARS" "4")
'("prop-max-width-chars" "GTK_EDITABLE_PROP_MAX_WIDTH_CHARS" "5")
'("prop-xalign" "GTK_EDITABLE_PROP_XALIGN" "6")
- '("num-properties" "GTK_EDITABLE_NUM_PROPERTIES" "7")
+ '("prop-enable-undo" "GTK_EDITABLE_PROP_ENABLE_UNDO" "7")
+ '("num-properties" "GTK_EDITABLE_NUM_PROPERTIES" "8")
)
)
@@ -1885,27 +1889,6 @@
)
)
-;; From gtkmodelbutton.h
-
-;; Original typedef:
-;; typedef enum {
-;; GTK_BUTTON_ROLE_NORMAL,
-;; GTK_BUTTON_ROLE_CHECK,
-;; GTK_BUTTON_ROLE_RADIO,
-;; GTK_BUTTON_ROLE_TITLE
-;; } GtkButtonRole;
-
-(define-enum-extended GtkButtonRole
- (in-module "Gsk")
- (c-name "GtkButtonRole")
- (values
- '("normal" "GTK_BUTTON_ROLE_NORMAL" "0")
- '("check" "GTK_BUTTON_ROLE_CHECK" "1")
- '("radio" "GTK_BUTTON_ROLE_RADIO" "2")
- '("title" "GTK_BUTTON_ROLE_TITLE" "3")
- )
-)
-
;; From gtknotebook.h
;; Original typedef:
diff --git a/gtk/src/gtk_extra_objects.defs b/gtk/src/gtk_extra_objects.defs
index b1b7b6e9..5dc0e5fc 100644
--- a/gtk/src/gtk_extra_objects.defs
+++ b/gtk/src/gtk_extra_objects.defs
@@ -60,6 +60,12 @@
(gtype-id "GTK_TYPE_BOX_LAYOUT")
)
+(define-object Builder
+ (in-module "Gtk")
+ (c-name "GtkBuilder")
+ (gtype-id "GTK_TYPE_BUILDER")
+)
+
(define-object Calendar
(in-module "Gtk")
(c-name "GtkCalendar")
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index 0bacf53a..7d750eb0 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -41,13 +41,6 @@
(gtype-id "GTK_TYPE_BUILDABLE")
)
-(define-object Builder
- (in-module "Gtk")
- (parent "GObject")
- (c-name "GtkBuilder")
- (gtype-id "GTK_TYPE_BUILDER")
-)
-
(define-object CellArea
(in-module "Gtk")
(parent "GInitiallyUnowned")
@@ -633,6 +626,7 @@
'("invalid-property" "GTK_BUILDER_ERROR_INVALID_PROPERTY")
'("invalid-signal" "GTK_BUILDER_ERROR_INVALID_SIGNAL")
'("invalid-id" "GTK_BUILDER_ERROR_INVALID_ID")
+ '("invalid-function" "GTK_BUILDER_ERROR_INVALID_FUNCTION")
)
)
@@ -765,6 +759,7 @@
'("prop-width-chars" "GTK_EDITABLE_PROP_WIDTH_CHARS")
'("prop-max-width-chars" "GTK_EDITABLE_PROP_MAX_WIDTH_CHARS")
'("prop-xalign" "GTK_EDITABLE_PROP_XALIGN")
+ '("prop-enable-undo" "GTK_EDITABLE_PROP_ENABLE_UNDO")
'("num-properties" "GTK_EDITABLE_NUM_PROPERTIES")
)
)
@@ -1630,18 +1625,6 @@
)
)
-(define-enum ButtonRole
- (in-module "Gtk")
- (c-name "GtkButtonRole")
- (gtype-id "GTK_TYPE_BUTTON_ROLE")
- (values
- '("normal" "GTK_BUTTON_ROLE_NORMAL")
- '("check" "GTK_BUTTON_ROLE_CHECK")
- '("radio" "GTK_BUTTON_ROLE_RADIO")
- '("title" "GTK_BUTTON_ROLE_TITLE")
- )
-)
-
(define-enum NotebookTab
(in-module "Gtk")
(c-name "GtkNotebookTab")
@@ -4360,6 +4343,17 @@
(return-type "GtkBuilder*")
)
+(define-method set_closure_func
+ (of-object "GtkBuilder")
+ (c-name "gtk_builder_set_closure_func")
+ (return-type "none")
+ (parameters
+ '("GtkBuilderClosureFunc" "closure_func")
+ '("gpointer" "user_data")
+ '("GDestroyNotify" "user_destroy")
+ )
+)
+
(define-method add_from_file
(of-object "GtkBuilder")
(c-name "gtk_builder_add_from_file")
@@ -4450,25 +4444,6 @@
)
)
-(define-method connect_signals
- (of-object "GtkBuilder")
- (c-name "gtk_builder_connect_signals")
- (return-type "none")
- (parameters
- '("gpointer" "user_data")
- )
-)
-
-(define-method connect_signals_full
- (of-object "GtkBuilder")
- (c-name "gtk_builder_connect_signals_full")
- (return-type "none")
- (parameters
- '("GtkBuilderConnectFunc" "func")
- '("gpointer" "user_data")
- )
-)
-
(define-method set_translation_domain
(of-object "GtkBuilder")
(c-name "gtk_builder_set_translation_domain")
@@ -4572,19 +4547,28 @@
)
)
-(define-method set_application
+(define-method create_closure
(of-object "GtkBuilder")
- (c-name "gtk_builder_set_application")
- (return-type "none")
+ (c-name "gtk_builder_create_closure")
+ (return-type "GClosure*")
(parameters
- '("GtkApplication*" "application")
+ '("const-char*" "function_name")
+ '("gboolean" "swapped")
+ '("GObject*" "object")
+ '("GError**" "error")
)
)
-(define-method get_application
+(define-method create_cclosure
(of-object "GtkBuilder")
- (c-name "gtk_builder_get_application")
- (return-type "GtkApplication*")
+ (c-name "gtk_builder_create_cclosure")
+ (return-type "GClosure*")
+ (parameters
+ '("const-char*" "function_name")
+ '("gboolean" "swapped")
+ '("GObject*" "object")
+ '("GError**" "error")
+ )
)
(define-method extend_with_template
@@ -8111,6 +8095,21 @@
)
)
+(define-method get_enable_undo
+ (of-object "GtkEditable")
+ (c-name "gtk_editable_get_enable_undo")
+ (return-type "gboolean")
+)
+
+(define-method set_enable_undo
+ (of-object "GtkEditable")
+ (c-name "gtk_editable_set_enable_undo")
+ (return-type "none")
+ (parameters
+ '("gboolean" "enable_undo")
+ )
+)
+
(define-function gtk_editable_install_properties
(c-name "gtk_editable_install_properties")
(return-type "guint")
@@ -16121,21 +16120,6 @@
-;; From gtkmodelbutton.h
-
-(define-function gtk_model_button_get_type
- (c-name "gtk_model_button_get_type")
- (return-type "GType")
-)
-
-(define-function gtk_model_button_new
- (c-name "gtk_model_button_new")
- (is-constructor-of "GtkModelButton")
- (return-type "GtkWidget*")
-)
-
-
-
;; From gtkmountoperation.h
(define-function gtk_mount_operation_get_type
@@ -17826,15 +17810,6 @@
(return-type "GType")
)
-(define-function gtk_popover_menu_new
- (c-name "gtk_popover_menu_new")
- (is-constructor-of "GtkPopoverMenu")
- (return-type "GtkWidget*")
- (parameters
- '("GtkWidget*" "relative_to")
- )
-)
-
(define-function gtk_popover_menu_new_from_model
(c-name "gtk_popover_menu_new_from_model")
(return-type "GtkWidget*")
@@ -17854,23 +17829,19 @@
)
)
-(define-method add_submenu
+(define-method set_menu_model
(of-object "GtkPopoverMenu")
- (c-name "gtk_popover_menu_add_submenu")
+ (c-name "gtk_popover_menu_set_menu_model")
(return-type "none")
(parameters
- '("GtkWidget*" "submenu")
- '("const-char*" "name")
+ '("GMenuModel*" "model")
)
)
-(define-method open_submenu
+(define-method get_menu_model
(of-object "GtkPopoverMenu")
- (c-name "gtk_popover_menu_open_submenu")
- (return-type "none")
- (parameters
- '("const-char*" "name")
- )
+ (c-name "gtk_popover_menu_get_menu_model")
+ (return-type "GMenuModel*")
)
@@ -21972,56 +21943,6 @@
)
)
-(define-function gtk_rc_property_parse_color
- (c-name "gtk_rc_property_parse_color")
- (return-type "gboolean")
- (parameters
- '("const-GParamSpec*" "pspec")
- '("const-GString*" "gstring")
- '("GValue*" "property_value")
- )
-)
-
-(define-function gtk_rc_property_parse_enum
- (c-name "gtk_rc_property_parse_enum")
- (return-type "gboolean")
- (parameters
- '("const-GParamSpec*" "pspec")
- '("const-GString*" "gstring")
- '("GValue*" "property_value")
- )
-)
-
-(define-function gtk_rc_property_parse_flags
- (c-name "gtk_rc_property_parse_flags")
- (return-type "gboolean")
- (parameters
- '("const-GParamSpec*" "pspec")
- '("const-GString*" "gstring")
- '("GValue*" "property_value")
- )
-)
-
-(define-function gtk_rc_property_parse_requisition
- (c-name "gtk_rc_property_parse_requisition")
- (return-type "gboolean")
- (parameters
- '("const-GParamSpec*" "pspec")
- '("const-GString*" "gstring")
- '("GValue*" "property_value")
- )
-)
-
-(define-function gtk_rc_property_parse_border
- (c-name "gtk_rc_property_parse_border")
- (return-type "gboolean")
- (parameters
- '("const-GParamSpec*" "pspec")
- '("const-GString*" "gstring")
- '("GValue*" "property_value")
- )
-)
-
(define-method reset_property
(of-object "GtkSettings")
(c-name "gtk_settings_reset_property")
@@ -23074,7 +22995,7 @@
(define-method add_named
(of-object "GtkStack")
(c-name "gtk_stack_add_named")
- (return-type "none")
+ (return-type "GtkStackPage*")
(parameters
'("GtkWidget*" "child")
'("const-gchar*" "name")
@@ -23084,7 +23005,7 @@
(define-method add_titled
(of-object "GtkStack")
(c-name "gtk_stack_add_titled")
- (return-type "none")
+ (return-type "GtkStackPage*")
(parameters
'("GtkWidget*" "child")
'("const-gchar*" "name")
@@ -24386,6 +24307,72 @@
)
)
+(define-method get_can_undo
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_get_can_undo")
+ (return-type "gboolean")
+)
+
+(define-method get_can_redo
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_get_can_redo")
+ (return-type "gboolean")
+)
+
+(define-method get_enable_undo
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_get_enable_undo")
+ (return-type "gboolean")
+)
+
+(define-method set_enable_undo
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_set_enable_undo")
+ (return-type "none")
+ (parameters
+ '("gboolean" "enable_undo")
+ )
+)
+
+(define-method get_max_undo_levels
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_get_max_undo_levels")
+ (return-type "guint")
+)
+
+(define-method set_max_undo_levels
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_set_max_undo_levels")
+ (return-type "none")
+ (parameters
+ '("guint" "max_undo_levels")
+ )
+)
+
+(define-method undo
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_undo")
+ (return-type "none")
+)
+
+(define-method redo
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_redo")
+ (return-type "none")
+)
+
+(define-method begin_irreversible_action
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_begin_irreversible_action")
+ (return-type "none")
+)
+
+(define-method end_irreversible_action
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_end_irreversible_action")
+ (return-type "none")
+)
+
(define-method begin_user_action
(of-object "GtkTextBuffer")
(c-name "gtk_text_buffer_begin_user_action")
@@ -30848,14 +30835,14 @@
)
)
-(define-method set_connect_func
+(define-method set_closure_func
(of-object "GtkWidgetClass")
- (c-name "gtk_widget_class_set_connect_func")
+ (c-name "gtk_widget_class_set_closure_func")
(return-type "none")
(parameters
- '("GtkBuilderConnectFunc" "connect_func")
- '("gpointer" "connect_data")
- '("GDestroyNotify" "connect_data_destroy")
+ '("GtkBuilderClosureFunc" "closure_func")
+ '("gpointer" "closure_data")
+ '("GDestroyNotify" "closure_destroy")
)
)
@@ -31849,15 +31836,15 @@
)
)
-(define-method iconify
+(define-method minimize
(of-object "GtkWindow")
- (c-name "gtk_window_iconify")
+ (c-name "gtk_window_minimize")
(return-type "none")
)
-(define-method deiconify
+(define-method unminimize
(of-object "GtkWindow")
- (c-name "gtk_window_deiconify")
+ (c-name "gtk_window_unminimize")
(return-type "none")
)
@@ -32612,11 +32599,6 @@
(return-type "GType")
)
-(define-function gtk_button_role_get_type
- (c-name "gtk_button_role_get_type")
- (return-type "GType")
-)
-
(define-function gtk_notebook_tab_get_type
(c-name "gtk_notebook_tab_get_type")
(return-type "GType")
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 37f4286a..71949bf1 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -2872,6 +2872,16 @@
(default-value "TRUE")
)
+(define-property enable-undo
+ (of-object "GtkEditable")
+ (prop-type "GParamBoolean")
+ (docs "If undo/redo should be enabled for the editable")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "TRUE")
+)
+
(define-property max-width-chars
(of-object "GtkEditable")
(prop-type "GParamInt")
@@ -3479,7 +3489,7 @@
(define-signal deleted-text
(of-object "GtkEntryBuffer")
(return-type "void")
- (flags "Run First")
+ (flags "Run Last")
(parameters
'("guint" "p0")
'("guint" "p1")
@@ -6549,111 +6559,6 @@
(construct-only #f)
)
-;; From GtkModelButton
-
-(define-signal clicked
- (of-object "GtkModelButton")
- (return-type "void")
- (flags "Run First, Action")
-)
-
-(define-property role
- (of-object "GtkModelButton")
- (prop-type "GParamEnum")
- (docs "The role of this button")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "GTK_BUTTON_ROLE_NORMAL")
-)
-
-(define-property icon
- (of-object "GtkModelButton")
- (prop-type "GParamObject")
- (docs "The icon")
- (readable #t)
- (writable #t)
- (construct-only #f)
-)
-
-(define-property text
- (of-object "GtkModelButton")
- (prop-type "GParamString")
- (docs "The text")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "")
-)
-
-(define-property use-markup
- (of-object "GtkModelButton")
- (prop-type "GParamBoolean")
- (docs "The text of the button includes XML markup. See pango_parse_markup()")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "FALSE")
-)
-
-(define-property active
- (of-object "GtkModelButton")
- (prop-type "GParamBoolean")
- (docs "Active")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "FALSE")
-)
-
-(define-property menu-name
- (of-object "GtkModelButton")
- (prop-type "GParamString")
- (docs "The name of the menu to open")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "")
-)
-
-(define-property popover
- (of-object "GtkModelButton")
- (prop-type "GParamObject")
- (docs "Popover to open")
- (readable #t)
- (writable #t)
- (construct-only #f)
-)
-
-(define-property iconic
- (of-object "GtkModelButton")
- (prop-type "GParamBoolean")
- (docs "Whether to prefer the icon over text")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "FALSE")
-)
-
-(define-property accel
- (of-object "GtkModelButton")
- (prop-type "GParamString")
- (docs "The accelerator")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "")
-)
-
-(define-property indicator-size-group
- (of-object "GtkModelButton")
- (prop-type "GParamObject")
- (docs "Size group for checks and radios")
- (readable #t)
- (writable #t)
- (construct-only #f)
-)
-
;; From GtkNativeDialog
(define-signal response
@@ -7345,6 +7250,15 @@
(default-value "")
)
+(define-property menu-model
+ (of-object "GtkPopoverMenu")
+ (prop-type "GParamObject")
+ (docs "The model from which the menu is made.")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
;; From GtkPrinter
(define-signal details-acquired
@@ -9807,7 +9721,7 @@
;; From GtkStyleProvider
-(define-signal -gtk-private-changed
+(define-signal gtk-private-changed
(of-object "GtkStyleProvider")
(return-type "void")
(flags "Run Last")
@@ -10424,6 +10338,18 @@
)
)
+(define-signal redo
+ (of-object "GtkTextBuffer")
+ (return-type "void")
+ (flags "Run Last")
+)
+
+(define-signal undo
+ (of-object "GtkTextBuffer")
+ (return-type "void")
+ (flags "Run Last")
+)
+
(define-property tag-table
(of-object "GtkTextBuffer")
(prop-type "GParamObject")
@@ -10481,6 +10407,36 @@
(construct-only #f)
)
+(define-property can-undo
+ (of-object "GtkTextBuffer")
+ (prop-type "GParamBoolean")
+ (docs "If the buffer can have the last action undone")
+ (readable #t)
+ (writable #f)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
+(define-property can-redo
+ (of-object "GtkTextBuffer")
+ (prop-type "GParamBoolean")
+ (docs "If the buffer can have the last undone action reapplied")
+ (readable #t)
+ (writable #f)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
+(define-property enable-undo
+ (of-object "GtkTextBuffer")
+ (prop-type "GParamBoolean")
+ (docs "Enable support for undo and redo in the text view")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "TRUE")
+)
+
;; From GtkTextMark
(define-property name
diff --git a/tools/extra_defs_gen/generate_defs_gtk.cc b/tools/extra_defs_gen/generate_defs_gtk.cc
index f2a64e01..3ec1e26a 100644
--- a/tools/extra_defs_gen/generate_defs_gtk.cc
+++ b/tools/extra_defs_gen/generate_defs_gtk.cc
@@ -151,7 +151,6 @@ int main(int /* argc */, char** /* argv */)
<< get_defs( GTK_TYPE_MENU_SHELL )
<< get_defs( GTK_TYPE_MENU_TOOL_BUTTON )
<< get_defs( GTK_TYPE_MESSAGE_DIALOG )
- << get_defs( GTK_TYPE_MODEL_BUTTON )
<< get_defs( GTK_TYPE_NATIVE_DIALOG )
<< get_defs( GTK_TYPE_NO_SELECTION )
<< get_defs( GTK_TYPE_NOTEBOOK )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]