[gtkmm] Gtk: Regenerate docs.xml and .defs files
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk: Regenerate docs.xml and .defs files
- Date: Wed, 13 Feb 2019 09:34:31 +0000 (UTC)
commit c40dfa91ab5a409e064b6136d878bb53e1097515
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Wed Feb 13 10:29:03 2019 +0100
Gtk: Regenerate docs.xml and .defs files
and update gtk_docs_override.xml and generate_defs_gtk.cc.
gtk/src/gtk_docs.xml | 438 +++++++++++++++++++++++++++++-
gtk/src/gtk_docs_override.xml | 3 +-
gtk/src/gtk_enums.defs | 16 ++
gtk/src/gtk_methods.defs | 225 +++++++++++++++
gtk/src/gtk_signals.defs | 212 ++++++++-------
tools/extra_defs_gen/generate_defs_gtk.cc | 10 +-
6 files changed, 790 insertions(+), 114 deletions(-)
---
diff --git a/gtk/src/gtk_docs.xml b/gtk/src/gtk_docs.xml
index 40c5585d..ea007ab7 100644
--- a/gtk/src/gtk_docs.xml
+++ b/gtk/src/gtk_docs.xml
@@ -837,36 +837,36 @@ necessary before showing @page.
<return></return>
</signal>
-<property name="GtkAssistant:complete">
+<property name="GtkAssistant:use-header-bar">
<description>
-Setting the "complete" child property to %TRUE marks a page as
-complete (i.e.: all the required fields are filled out). GTK+ uses
-this information to control the sensitivity of the navigation buttons.
+%TRUE if the assistant uses a #GtkHeaderBar for action buttons
+instead of the action-area.
+
+For technical reasons, this property is declared as an integer
+property, but you should only set it to %TRUE or %FALSE.
</description>
</property>
-<property name="GtkAssistant:page-type">
+<property name="GtkAssistantPage:complete">
<description>
-The type of the assistant page.
+Setting the "complete" property to %TRUE marks a page as
+complete (i.e.: all the required fields are filled out). GTK+ uses
+this information to control the sensitivity of the navigation buttons.
</description>
</property>
-<property name="GtkAssistant:title">
+<property name="GtkAssistantPage:page-type">
<description>
-The title of the page.
+The type of the assistant page.
</description>
</property>
-<property name="GtkAssistant:use-header-bar">
+<property name="GtkAssistantPage:title">
<description>
-%TRUE if the assistant uses a #GtkHeaderBar for action buttons
-instead of the action-area.
-
-For technical reasons, this property is declared as an integer
-property, but you should only set it to %TRUE or %FALSE.
+The title of the page.
</description>
</property>
@@ -8544,6 +8544,27 @@ between horizontal and vertical orientation on the fly, like #GtkToolbar or
</parameters>
</enum>
+<enum name="GtkOverflow">
+<description>
+Defines how content overflowing a given area should be handled, such as
+with gtk_widget_set_overflow(). This property is modeled after the CSS overflow
+property, but implements it only partially.
+
+</description>
+<parameters>
+<parameter name="GTK_OVERFLOW_VISIBLE">
+<parameter_description> No change is applied. Content is drawn at the specified
+position.
+</parameter_description>
+</parameter>
+<parameter name="GTK_OVERFLOW_HIDDEN">
+<parameter_description> Content is clipped to the bounds of the area. Content
+outside the area is not drawn and cannot be interacted with.
+</parameter_description>
+</parameter>
+</parameters>
+</enum>
+
<signal name="GtkOverlay::get-child-position">
<description>
The ::get-child-position signal is emitted to determine
@@ -10991,6 +11012,34 @@ Some widgets may also allow Click-drag to select a range of elements.
</parameters>
</enum>
+<signal name="GtkSelectionModel::selection-changed">
+<description>
+Emitted when the selection state of some of the items in @model changes.
+
+Note that this signal does not specify the new selection state of the items,
+they need to be queried manually.
+It is also not necessary for a model to change the selection state of any of
+the items in the selection model, though it would be rather useless to emit
+such a signal.
+
+</description>
+<parameters>
+<parameter name="model">
+<parameter_description> a #GtkSelectionModel
+</parameter_description>
+</parameter>
+<parameter name="position">
+<parameter_description> The first item that may have changed
+</parameter_description>
+</parameter>
+<parameter name="n_items">
+<parameter_description> number of items with changes
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</signal>
+
<enum name="GtkSensitivityType">
<description>
Determines how GTK+ handles the sensitivity of stepper arrows
@@ -11659,6 +11708,34 @@ Set this to %NULL to show all groups.
</description>
</property>
+<property name="GtkSingleSelection:autoselect">
+<description>
+If the selection will always select an item
+
+</description>
+</property>
+
+<property name="GtkSingleSelection:can-unselect">
+<description>
+If unselecting the selected item is allowed
+
+</description>
+</property>
+
+<property name="GtkSingleSelection:selected">
+<description>
+Position of the selected item
+
+</description>
+</property>
+
+<property name="GtkSingleSelection:selected-item">
+<description>
+The selected item
+
+</description>
+</property>
+
<enum name="GtkSizeGroupMode">
<description>
The mode of the size group determines the directions in which the size
@@ -15438,6 +15515,13 @@ Before 3.8 this was only available in GtkWindow
</description>
</property>
+<property name="GtkWidget:overflow">
+<description>
+How content outside the widget's content area is treated.
+
+</description>
+</property>
+
<property name="GtkWidget:scale-factor">
<description>
The scale factor of the widget. See gtk_widget_get_scale_factor() for
@@ -19763,6 +19847,26 @@ if @page_num is out of bounds
</return>
</function>
+<function name="gtk_assistant_get_page">
+<description>
+Returns the #GtkAssistantPage object for @child.
+
+
+</description>
+<parameters>
+<parameter name="assistant">
+<parameter_description> a #GtkAssistant
+</parameter_description>
+</parameter>
+<parameter name="child">
+<parameter_description> a child of @assistant
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #GtkAssistantPage for @child
+</return>
+</function>
+
<function name="gtk_assistant_get_page_complete">
<description>
Gets whether @page is complete.
@@ -19900,6 +20004,22 @@ This function is for use when creating pages of the
<return></return>
</function>
+<function name="gtk_assistant_page_get_child">
+<description>
+Returns the child to which @page belongs.
+
+
+</description>
+<parameters>
+<parameter name="page">
+<parameter_description> a #GtkAssistantPage
+</parameter_description>
+</parameter>
+</parameters>
+<return> the child to which @page belongs
+</return>
+</function>
+
<function name="gtk_assistant_prepend_page">
<description>
Prepends a page to the @assistant.
@@ -61105,6 +61225,53 @@ and a suitable target for URI lists is included, otherwise %FALSE.
</return>
</function>
+<function name="gtk_selection_model_is_selected">
+<description>
+Checks if the given item is selected.
+
+
+</description>
+<parameters>
+<parameter name="model">
+<parameter_description> a #GtkSelectionModel
+</parameter_description>
+</parameter>
+<parameter name="position">
+<parameter_description> the position of the item to query
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the item is selected
+</return>
+</function>
+
+<function name="gtk_selection_model_query_range">
+<description>
+This function allows to query the selection status of multiple elements at once.
+It is passed a position and returns a range of elements of uniform selection status.
+The returned range is guaranteed to include the passed-in position.
+The selection status is returned from this function.
+
+
+</description>
+<parameters>
+<parameter name="model">
+<parameter_description> a #GtkSelectionModel
+</parameter_description>
+</parameter>
+<parameter name="position">
+<parameter_description> specifies the position on input, and the first element of the range on output
+</parameter_description>
+</parameter>
+<parameter name="n_items">
+<parameter_description> returns the size of the range
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the elements in the returned range are selected, %FALSE otherwise
+</return>
+</function>
+
<function name="gtk_separator_menu_item_new">
<description>
Creates a new #GtkSeparatorMenuItem.
@@ -61394,6 +61561,154 @@ necessary for sandbox helpers to parent their dialogs properly.
</return>
</function>
+<function name="gtk_single_selection_get_autoselect">
+<description>
+Checks if autoselect has been enabled or disabled via
+gtk_single_selection_set_autoselect().
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkSingleSelection
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if autoselect is enabled
+</return>
+</function>
+
+<function name="gtk_single_selection_get_can_unselect">
+<description>
+If %TRUE, gtk_selection_model_unselect_item() is supported and allows
+unselecting the selected item.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkSingleSelection
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE to support unselecting
+</return>
+</function>
+
+<function name="gtk_single_selection_get_selected">
+<description>
+Gets the position of the selected item. If no item is selected,
+#GTK_INVALID_LIST_POSITION is returned.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkSingleSelection
+</parameter_description>
+</parameter>
+</parameters>
+<return> The position of the selected item
+</return>
+</function>
+
+<function name="gtk_single_selection_get_selected_item">
+<description>
+Gets the selected item. If no item is selected, %NULL is returned.
+
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkSingleSelection
+</parameter_description>
+</parameter>
+</parameters>
+<return> The selected item
+</return>
+</function>
+
+<function name="gtk_single_selection_new">
+<description>
+Creates a new selection to handle @model.
+
+
+</description>
+<parameters>
+<parameter name="model">
+<parameter_description> the #GListModel to manage
+</parameter_description>
+</parameter>
+</parameters>
+<return> a new #GtkSingleSelection
+</return>
+</function>
+
+<function name="gtk_single_selection_set_autoselect">
+<description>
+If @autoselect is %TRUE, @self will enforce that an item is always
+selected. It will select a new item when the currently selected
+item is deleted and it will disallow unselecting the current item.
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkSingleSelection
+</parameter_description>
+</parameter>
+<parameter name="autoselect">
+<parameter_description> %TRUE to always select an item
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_single_selection_set_can_unselect">
+<description>
+If %TRUE, unselecting the current item via
+gtk_selection_model_unselect_item() is supported.
+
+Note that setting GtkSingleSelection:autoselect will cause the
+unselecting to not work, so it practically makes no sense to set
+both at the same time the same time..
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkSingleSelection
+</parameter_description>
+</parameter>
+<parameter name="can_unselect">
+<parameter_description> %TRUE to allow unselecting
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_single_selection_set_selected">
+<description>
+Selects the item at the given position. If the list does not have an item at
+@position or #GTK_INVALID_LIST_POSITION is given, the behavior depends on the
+value of the GtkSingleSelection:autoselect property: If it is set, no change
+will occur and the old item will stay selected. If it is unset, the selection
+will be unset and no item will be selected.
+
+</description>
+<parameters>
+<parameter name="self">
+<parameter_description> a #GtkSingleSelection
+</parameter_description>
+</parameter>
+<parameter name="position">
+<parameter_description> the item to select or #GTK_INVALID_LIST_POSITION
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_size_group_add_widget">
<description>
Adds a widget to a #GtkSizeGroup. In the future, the requisition
@@ -63138,6 +63453,45 @@ the sizes of children on page switch.
</return>
</function>
+<function name="gtk_stack_get_page">
+<description>
+Returns the #GtkStackPage object for @child.
+
+
+</description>
+<parameters>
+<parameter name="stack">
+<parameter_description> a #GtkStack
+</parameter_description>
+</parameter>
+<parameter name="child">
+<parameter_description> a child of @stack
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #GtkStackPage for @child
+</return>
+</function>
+
+<function name="gtk_stack_get_pages">
+<description>
+Returns a #GListModel that contains the pages of the stack,
+and can be used to keep and up-to-date view. The model also
+implements #GtkSelectionModel and can be used to track and
+modify the visible page..
+
+
+</description>
+<parameters>
+<parameter name="stack">
+<parameter_description> a #GtkStack
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GtkSelectionModel for the stack's children
+</return>
+</function>
+
<function name="gtk_stack_get_transition_duration">
<description>
Returns the amount of time (in milliseconds) that
@@ -63252,6 +63606,22 @@ Creates a new #GtkStack container.
</return>
</function>
+<function name="gtk_stack_page_get_child">
+<description>
+Returns the stack child to which @page belongs.
+
+
+</description>
+<parameters>
+<parameter name="page">
+<parameter_description> a #GtkStackPage
+</parameter_description>
+</parameter>
+</parameters>
+<return> the child to which @page belongs
+</return>
+</function>
+
<function name="gtk_stack_set_hhomogeneous">
<description>
Sets the #GtkStack to be horizontally homogeneous or not.
@@ -81263,6 +81633,22 @@ See gtk_widget_set_opacity().
</return>
</function>
+<function name="gtk_widget_get_overflow">
+<description>
+Returns the value set via gtk_widget_set_overflow().
+
+
+</description>
+<parameters>
+<parameter name="widget">
+<parameter_description> a #GtkWidget
+</parameter_description>
+</parameter>
+</parameters>
+<return> The widget's overflow.
+</return>
+</function>
+
<function name="gtk_widget_get_pango_context">
<description>
Gets a #PangoContext with the appropriate font map, font description,
@@ -84175,6 +84561,30 @@ For child widgets it doesn’t work if any affected widget has a native window.
<return></return>
</function>
+<function name="gtk_widget_set_overflow">
+<description>
+Sets how @widget treats content that is drawn outside the widget's content area.
+See the definition of #GtkOverflow for details.
+
+This setting is provided for widget implementations and should not be used by
+application code.
+
+The default value is %GTK_OVERFLOW_VISIBLE.
+
+</description>
+<parameters>
+<parameter name="widget">
+<parameter_description> a #GtkWidget
+</parameter_description>
+</parameter>
+<parameter name="overflow">
+<parameter_description> desired overflow
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_widget_set_parent">
<description>
This function is useful only when implementing subclasses of
diff --git a/gtk/src/gtk_docs_override.xml b/gtk/src/gtk_docs_override.xml
index 649882c1..4eb9b7b9 100644
--- a/gtk/src/gtk_docs_override.xml
+++ b/gtk/src/gtk_docs_override.xml
@@ -47,7 +47,7 @@
<substitute_type_name from="GtkTreeViewGridLines" to="Gtk::TreeView::GridLines" />
<substitute_enumerator_name from_prefix="GTK_LICENSE_" to_prefix="Gtk::License::" />
-<substitute_enumerator_name from_prefix="GTK_ASSISTANT_PAGE_" to_prefix="Gtk::Assistant::PageType::" />
+<substitute_enumerator_name from_prefix="GTK_ASSISTANT_PAGE_" to_prefix="Gtk::AssistantPage::Type::" />
<substitute_enumerator_name from_prefix="GTK_PACK_" to_prefix="Gtk::PackType::" />
<substitute_enumerator_name from_prefix="GTK_PACK_DIRECTION_" to_prefix="Gtk::PackDirection::" />
<substitute_enumerator_name from_prefix="GTK_RELIEF_" to_prefix="Gtk::ReliefStyle::" />
@@ -96,6 +96,7 @@
<substitute_enumerator_name from_prefix="GTK_TREE_MODEL_" to_prefix="Gtk::TreeModel::Flags::" />
<substitute_enumerator_name from_prefix="GTK_TREE_VIEW_COLUMN_" to_prefix="Gtk::TreeViewColumn::Sizing::" />
<substitute_enumerator_name from_prefix="GTK_ORIENTATION_" to_prefix="Gtk::Orientation::" />
+<substitute_enumerator_name from_prefix="GTK_OVERFLOW_" to_prefix="Gtk::Overflow::" />
<substitute_enumerator_name from_prefix="GTK_ACCEL_" to_prefix="Gtk::AccelFlags::" />
<substitute_enumerator_name from_prefix="GTK_DIR_" to_prefix="Gtk::DirectionType::" />
<substitute_enumerator_name from_prefix="GTK_DEST_DEFAULT_" to_prefix="Gtk::DestDefaults::" />
diff --git a/gtk/src/gtk_enums.defs b/gtk/src/gtk_enums.defs
index c87383a1..e0e85a42 100644
--- a/gtk/src/gtk_enums.defs
+++ b/gtk/src/gtk_enums.defs
@@ -748,6 +748,22 @@
)
)
+;; Original typedef:
+;; typedef enum
+;; {
+;; GTK_OVERFLOW_VISIBLE,
+;; GTK_OVERFLOW_HIDDEN
+;; } GtkOverflow;
+
+(define-enum-extended Overflow
+ (in-module "Gtk")
+ (c-name "GtkOverflow")
+ (values
+ '("visible" "GTK_OVERFLOW_VISIBLE" "0")
+ '("hidden" "GTK_OVERFLOW_HIDDEN" "1")
+ )
+)
+
;; Original typedef:
;; typedef enum
;; {
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index ff9f6b94..061c9746 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -1549,6 +1549,16 @@
)
)
+(define-enum Overflow
+ (in-module "Gtk")
+ (c-name "GtkOverflow")
+ (gtype-id "GTK_TYPE_OVERFLOW")
+ (values
+ '("visible" "GTK_OVERFLOW_VISIBLE")
+ '("hidden" "GTK_OVERFLOW_HIDDEN")
+ )
+)
+
(define-enum PackType
(in-module "Gtk")
(c-name "GtkPackType")
@@ -4221,6 +4231,11 @@
;; From gtkassistant.h
+(define-function gtk_assistant_page_get_type
+ (c-name "gtk_assistant_page_get_type")
+ (return-type "GType")
+)
+
(define-function gtk_assistant_get_type
(c-name "gtk_assistant_get_type")
(return-type "GType")
@@ -4428,6 +4443,21 @@
)
)
+(define-method get_page
+ (of-object "GtkAssistant")
+ (c-name "gtk_assistant_get_page")
+ (return-type "GtkAssistantPage*")
+ (parameters
+ '("GtkWidget*" "child")
+ )
+)
+
+(define-method get_child
+ (of-object "GtkAssistantPage")
+ (c-name "gtk_assistant_page_get_child")
+ (return-type "GtkWidget*")
+)
+
;; From gtk-autocleanups.h
@@ -21998,6 +22028,91 @@
+;; From gtkselectionmodel.h
+
+(define-method is_selected
+ (of-object "GtkSelectionModel")
+ (c-name "gtk_selection_model_is_selected")
+ (return-type "gboolean")
+ (parameters
+ '("guint" "position")
+ )
+)
+
+(define-method select_item
+ (of-object "GtkSelectionModel")
+ (c-name "gtk_selection_model_select_item")
+ (return-type "gboolean")
+ (parameters
+ '("guint" "position")
+ '("gboolean" "exclusive")
+ )
+)
+
+(define-method unselect_item
+ (of-object "GtkSelectionModel")
+ (c-name "gtk_selection_model_unselect_item")
+ (return-type "gboolean")
+ (parameters
+ '("guint" "position")
+ )
+)
+
+(define-method select_range
+ (of-object "GtkSelectionModel")
+ (c-name "gtk_selection_model_select_range")
+ (return-type "gboolean")
+ (parameters
+ '("guint" "position")
+ '("guint" "n_items")
+ '("gboolean" "exclusive")
+ )
+)
+
+(define-method unselect_range
+ (of-object "GtkSelectionModel")
+ (c-name "gtk_selection_model_unselect_range")
+ (return-type "gboolean")
+ (parameters
+ '("guint" "position")
+ '("guint" "n_items")
+ )
+)
+
+(define-method select_all
+ (of-object "GtkSelectionModel")
+ (c-name "gtk_selection_model_select_all")
+ (return-type "gboolean")
+)
+
+(define-method unselect_all
+ (of-object "GtkSelectionModel")
+ (c-name "gtk_selection_model_unselect_all")
+ (return-type "gboolean")
+)
+
+(define-method query_range
+ (of-object "GtkSelectionModel")
+ (c-name "gtk_selection_model_query_range")
+ (return-type "gboolean")
+ (parameters
+ '("guint*" "position")
+ '("guint*" "n_items")
+ )
+)
+
+(define-method selection_changed
+ (of-object "GtkSelectionModel")
+ (c-name "gtk_selection_model_selection_changed")
+ (return-type "none")
+ (parameters
+ '("guint" "position")
+ '("guint" "n_items")
+ )
+)
+
+
+
;; From gtkseparator.h
(define-function gtk_separator_get_type
@@ -22241,6 +22356,70 @@
+;; From gtksingleselection.h
+
+(define-function gtk_single_selection_new
+ (c-name "gtk_single_selection_new")
+ (is-constructor-of "GtkSingleSelection")
+ (return-type "GtkSingleSelection*")
+ (parameters
+ '("GListModel*" "model")
+ )
+)
+
+(define-method get_selected
+ (of-object "GtkSingleSelection")
+ (c-name "gtk_single_selection_get_selected")
+ (return-type "guint")
+)
+
+(define-method set_selected
+ (of-object "GtkSingleSelection")
+ (c-name "gtk_single_selection_set_selected")
+ (return-type "none")
+ (parameters
+ '("guint" "position")
+ )
+)
+
+(define-method get_selected_item
+ (of-object "GtkSingleSelection")
+ (c-name "gtk_single_selection_get_selected_item")
+ (return-type "gpointer")
+)
+
+(define-method get_autoselect
+ (of-object "GtkSingleSelection")
+ (c-name "gtk_single_selection_get_autoselect")
+ (return-type "gboolean")
+)
+
+(define-method set_autoselect
+ (of-object "GtkSingleSelection")
+ (c-name "gtk_single_selection_set_autoselect")
+ (return-type "none")
+ (parameters
+ '("gboolean" "autoselect")
+ )
+)
+
+(define-method get_can_unselect
+ (of-object "GtkSingleSelection")
+ (c-name "gtk_single_selection_get_can_unselect")
+ (return-type "gboolean")
+)
+
+(define-method set_can_unselect
+ (of-object "GtkSingleSelection")
+ (c-name "gtk_single_selection_set_can_unselect")
+ (return-type "none")
+ (parameters
+ '("gboolean" "can_unselect")
+ )
+)
+
+
+
;; From gtksizegroup.h
(define-function gtk_size_group_get_type
@@ -23032,6 +23211,11 @@
;; From gtkstack.h
+(define-function gtk_stack_page_get_type
+ (c-name "gtk_stack_page_get_type")
+ (return-type "GType")
+)
+
(define-function gtk_stack_get_type
(c-name "gtk_stack_get_type")
(return-type "GType")
@@ -23064,6 +23248,21 @@
)
)
+(define-method get_page
+ (of-object "GtkStack")
+ (c-name "gtk_stack_get_page")
+ (return-type "GtkStackPage*")
+ (parameters
+ '("GtkWidget*" "child")
+ )
+)
+
+(define-method get_child
+ (of-object "GtkStackPage")
+ (c-name "gtk_stack_page_get_child")
+ (return-type "GtkWidget*")
+)
+
(define-method get_child_by_name
(of-object "GtkStack")
(c-name "gtk_stack_get_child_by_name")
@@ -23209,6 +23408,12 @@
(return-type "gboolean")
)
+(define-method get_pages
+ (of-object "GtkStack")
+ (c-name "gtk_stack_get_pages")
+ (return-type "GtkSelectionModel*")
+)
+
;; From gtkstacksidebar.h
@@ -29994,6 +30199,21 @@
(return-type "double")
)
+(define-method set_overflow
+ (of-object "GtkWidget")
+ (c-name "gtk_widget_set_overflow")
+ (return-type "none")
+ (parameters
+ '("GtkOverflow" "overflow")
+ )
+)
+
+(define-method get_overflow
+ (of-object "GtkWidget")
+ (c-name "gtk_widget_get_overflow")
+ (return-type "GtkOverflow")
+)
+
(define-method get_toplevel
(of-object "GtkWidget")
(c-name "gtk_widget_get_toplevel")
@@ -32104,6 +32324,11 @@
(return-type "GType")
)
+(define-function gtk_overflow_get_type
+ (c-name "gtk_overflow_get_type")
+ (return-type "GType")
+)
+
(define-function gtk_pack_type_get_type
(c-name "gtk_pack_type_get_type")
(return-type "GType")
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index b8933fca..717ab22b 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -695,7 +695,56 @@
(default-value "-1")
)
-;; From GtkBin
+;; From GtkAssistantPage
+
+(define-property child
+ (of-object "GtkAssistantPage")
+ (prop-type "GParamObject")
+ (docs "The content the assistant page")
+ (readable #t)
+ (writable #t)
+ (construct-only #t)
+)
+
+(define-property page-type
+ (of-object "GtkAssistantPage")
+ (prop-type "GParamEnum")
+ (docs "The type of the assistant page")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "GTK_ASSISTANT_PAGE_CONTENT")
+)
+
+(define-property title
+ (of-object "GtkAssistantPage")
+ (prop-type "GParamString")
+ (docs "The title of the assistant page")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "")
+)
+
+(define-property complete
+ (of-object "GtkAssistantPage")
+ (prop-type "GParamBoolean")
+ (docs "Whether all required fields on the page have been filled out")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
+(define-property has-padding
+ (of-object "GtkAssistantPage")
+ (prop-type "GParamBoolean")
+ (docs "Whether the assistant adds padding around the page")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "TRUE")
+)
;; GtkBorder is neither a GObject nor a GInterface. Not checked for signals and properties.
@@ -9029,6 +9078,67 @@
(default-value "FALSE")
)
+;; From GtkStackPage
+
+(define-property child
+ (of-object "GtkStackPage")
+ (prop-type "GParamObject")
+ (docs "The child of the page")
+ (readable #t)
+ (writable #t)
+ (construct-only #t)
+)
+
+(define-property name
+ (of-object "GtkStackPage")
+ (prop-type "GParamString")
+ (docs "The name of the child page")
+ (readable #t)
+ (writable #t)
+ (construct-only #t)
+ (default-value "")
+)
+
+(define-property title
+ (of-object "GtkStackPage")
+ (prop-type "GParamString")
+ (docs "The title of the child page")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "")
+)
+
+(define-property icon-name
+ (of-object "GtkStackPage")
+ (prop-type "GParamString")
+ (docs "The icon name of the child page")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "")
+)
+
+(define-property needs-attention
+ (of-object "GtkStackPage")
+ (prop-type "GParamBoolean")
+ (docs "Whether this page needs attention")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
+(define-property visible
+ (of-object "GtkStackPage")
+ (prop-type "GParamBoolean")
+ (docs "Whether this page is visible")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "TRUE")
+)
+
;; From GtkStackSidebar
(define-property stack
@@ -11757,6 +11867,16 @@
(default-value "1")
)
+(define-property overflow
+ (of-object "GtkWidget")
+ (prop-type "GParamEnum")
+ (docs "How content outside the widget’s content area is treated")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "GTK_OVERFLOW_VISIBLE")
+)
+
(define-property halign
(of-object "GtkWidget")
(prop-type "GParamEnum")
@@ -12248,46 +12368,6 @@
(default-value "GTK_PACK_START")
)
-(define-child-property page-type
- (of-object "GtkAssistant")
- (prop-type "GParamEnum")
- (docs "The type of the assistant page")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "GTK_ASSISTANT_PAGE_CONTENT")
-)
-
-(define-child-property title
- (of-object "GtkAssistant")
- (prop-type "GParamString")
- (docs "The title of the assistant page")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "")
-)
-
-(define-child-property complete
- (of-object "GtkAssistant")
- (prop-type "GParamBoolean")
- (docs "Whether all required fields on the page have been filled out")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "FALSE")
-)
-
-(define-child-property has-padding
- (of-object "GtkAssistant")
- (prop-type "GParamBoolean")
- (docs "Whether the assistant adds padding around the page")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "TRUE")
-)
-
(define-child-property x
(of-object "GtkFixed")
(prop-type "GParamInt")
@@ -12528,56 +12608,6 @@
(default-value "")
)
-(define-child-property name
- (of-object "GtkStack")
- (prop-type "GParamString")
- (docs "The name of the child page")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "")
-)
-
-(define-child-property title
- (of-object "GtkStack")
- (prop-type "GParamString")
- (docs "The title of the child page")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "")
-)
-
-(define-child-property icon-name
- (of-object "GtkStack")
- (prop-type "GParamString")
- (docs "The icon name of the child page")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "")
-)
-
-(define-child-property position
- (of-object "GtkStack")
- (prop-type "GParamInt")
- (docs "The index of the child in the parent")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "0")
-)
-
-(define-child-property needs-attention
- (of-object "GtkStack")
- (prop-type "GParamBoolean")
- (docs "Whether this page needs attention")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "FALSE")
-)
-
(define-child-property expand
(of-object "GtkToolbar")
(prop-type "GParamBoolean")
diff --git a/tools/extra_defs_gen/generate_defs_gtk.cc b/tools/extra_defs_gen/generate_defs_gtk.cc
index a411f56e..d17d93f9 100644
--- a/tools/extra_defs_gen/generate_defs_gtk.cc
+++ b/tools/extra_defs_gen/generate_defs_gtk.cc
@@ -56,7 +56,7 @@ int main(int /* argc */, char** /* argv */)
<< get_defs( GTK_TYPE_APPLICATION_WINDOW )
<< get_defs( GTK_TYPE_ASPECT_FRAME )
<< get_defs( GTK_TYPE_ASSISTANT )
- << get_defs( GTK_TYPE_BIN )
+ << get_defs( GTK_TYPE_ASSISTANT_PAGE )
<< get_defs( GTK_TYPE_BORDER )
<< get_defs( GTK_TYPE_BOX )
<< get_defs( GTK_TYPE_BUILDER )
@@ -193,6 +193,7 @@ int main(int /* argc */, char** /* argv */)
<< get_defs( GTK_TYPE_SPINNER )
<< get_defs( GTK_TYPE_SPIN_BUTTON )
<< get_defs( GTK_TYPE_STACK )
+ << get_defs( GTK_TYPE_STACK_PAGE )
<< get_defs( GTK_TYPE_STACK_SIDEBAR )
<< get_defs( GTK_TYPE_STACK_SWITCHER )
<< get_defs( GTK_TYPE_STATUSBAR )
@@ -228,24 +229,17 @@ int main(int /* argc */, char** /* argv */)
;
std::cout << get_child_properties( GTK_TYPE_ACTION_BAR )
- << get_child_properties( GTK_TYPE_ASSISTANT )
- << get_child_properties( GTK_TYPE_BIN )
<< get_child_properties( GTK_TYPE_FIXED )
- << get_child_properties( GTK_TYPE_FLOW_BOX )
<< get_child_properties( GTK_TYPE_GRID )
<< get_child_properties( GTK_TYPE_HEADER_BAR )
- << get_child_properties( GTK_TYPE_ICON_VIEW )
<< get_child_properties( GTK_TYPE_LAYOUT )
- << get_child_properties( GTK_TYPE_LIST_BOX )
<< get_child_properties( GTK_TYPE_MENU_SHELL )
<< get_child_properties( GTK_TYPE_NOTEBOOK )
<< get_child_properties( GTK_TYPE_OVERLAY )
<< get_child_properties( GTK_TYPE_PANED )
<< get_child_properties( GTK_TYPE_POPOVER_MENU )
- << get_child_properties( GTK_TYPE_STACK )
<< get_child_properties( GTK_TYPE_TEXT_VIEW )
<< get_child_properties( GTK_TYPE_TOOLBAR )
- << get_child_properties( GTK_TYPE_TREE_VIEW )
;
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]