[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: Sun, 7 Jan 2018 09:24:29 +0000 (UTC)
commit aa741ba063365eeddc2db95f0242d1a5d0040501
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Sun Jan 7 10:18:39 2018 +0100
Gdk, Gtk: Regenerate docs.xml and .defs files
and update gdk_docs_override.xml and gtk_docs_override.xml.
gdk/src/gdk_docs.xml | 1132 +++++++++++++++++++++++++++++++++++++++--
gdk/src/gdk_docs_override.xml | 20 -
gdk/src/gdk_enums.defs | 92 ++--
gdk/src/gdk_methods.defs | 77 ++--
gtk/src/gtk_docs.xml | 460 ++++++++---------
gtk/src/gtk_docs_override.xml | 17 +-
gtk/src/gtk_enums.defs | 35 +-
gtk/src/gtk_methods.defs | 167 +++++--
gtk/src/gtk_signals.defs | 80 ++--
9 files changed, 1571 insertions(+), 509 deletions(-)
---
diff --git a/gdk/src/gdk_docs.xml b/gdk/src/gdk_docs.xml
index b73e7e6..139abd9 100644
--- a/gdk/src/gdk_docs.xml
+++ b/gdk/src/gdk_docs.xml
@@ -189,6 +189,20 @@ in memory as 0x00, 0xff, 0xee, 0xcc.
</parameters>
</enum>
+<signal name="GdkClipboard::changed">
+<description>
+The ::changed signal is emitted when the clipboard changes ownership.
+
+</description>
+<parameters>
+<parameter name="clipboard">
+<parameter_description> the object on which the signal was emitted
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</signal>
+
<property name="GdkClipboard:content">
<description>
The #GdkContentProvider or %NULL if the clipboard is empty or contents are
@@ -269,7 +283,7 @@ Since: 3.94
<enum name="GdkCrossingMode">
<description>
-Specifies the crossing mode for #GdkEventCrossing.
+Specifies the crossing mode for enter and leave events.
</description>
<parameters>
@@ -678,6 +692,27 @@ Since: 3.20
<return></return>
</signal>
+<signal name="GdkDisplay::setting-changed">
+<description>
+The ::setting-changed signal is emitted whenever a setting
+changes its value.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="display">
+<parameter_description> the object on which the signal is emitted
+</parameter_description>
+</parameter>
+<parameter name="setting">
+<parameter_description> the name of the setting that changed
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</signal>
+
<property name="GdkDisplay:composited">
<description>
%TRUE if the display properly composits the alpha channel.
@@ -1971,9 +2006,24 @@ between (keyval, modifiers) pairs from key press and release events.
</parameters>
</enum>
+<signal name="GdkMonitor::invalidate">
+<description>
+The ::invalidate signal gets emitted when the output represented
+by @monitor gets disconnected.
+
+</description>
+<parameters>
+<parameter name="monitor">
+<parameter_description> the object on which this signal was emitted
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</signal>
+
<enum name="GdkNotifyType">
<description>
-Specifies the kind of crossing for #GdkEventCrossing.
+Specifies the kind of crossing for enter and leave events.
See the X11 protocol specification of LeaveNotify for
full details of crossing event generation.
@@ -2380,7 +2430,7 @@ which must be repeated.
<enum name="GdkScrollDirection">
<description>
-Specifies the direction for #GdkEventScroll.
+Specifies the direction for scroll events.
</description>
<parameters>
@@ -2402,7 +2452,7 @@ Specifies the direction for #GdkEventScroll.
</parameter>
<parameter name="GDK_SCROLL_SMOOTH">
<parameter_description> the scrolling is determined by the delta values
-in #GdkEventScroll. See gdk_event_get_scroll_deltas(). Since: 3.4
+in scroll events. See gdk_event_get_scroll_deltas(). Since: 3.4
</parameter_description>
</parameter>
</parameters>
@@ -2621,9 +2671,6 @@ a pinch gesture). In these cases, the last event will report the phase
to undo any visible/permanent changes that were done throughout the
progress of the gesture.
-See also #GdkEventTouchpadSwipe and #GdkEventTouchpadPinch.
-
-
</description>
<parameters>
<parameter name="GDK_TOUCHPAD_GESTURE_PHASE_BEGIN">
@@ -4009,6 +4056,254 @@ ignore.
</return>
</function>
+<function name="gdk_content_deserialize_async">
+<description>
+Read content from the given input stream and deserialize it, asynchronously.
+When the operation is finished, @callback will be called. You can then
+call gdk_content_deserialize_finish() to get the result of the operation.
+
+</description>
+<parameters>
+<parameter name="stream">
+<parameter_description> a #GInputStream to read the serialized content from
+</parameter_description>
+</parameter>
+<parameter name="mime_type">
+<parameter_description> the mime type to deserialize from
+</parameter_description>
+</parameter>
+<parameter name="type">
+<parameter_description> the GType to deserialize from
+</parameter_description>
+</parameter>
+<parameter name="io_priority">
+<parameter_description> the io priority of the operation
+</parameter_description>
+</parameter>
+<parameter name="cancellable">
+<parameter_description> optional #GCancellable object
+</parameter_description>
+</parameter>
+<parameter name="callback">
+<parameter_description> callback to call when the operation is done
+</parameter_description>
+</parameter>
+<parameter name="user_data">
+<parameter_description> data to pass to the callback function
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_content_deserialize_finish">
+<description>
+Finishes a content deserialization operation.
+
+
+</description>
+<parameters>
+<parameter name="result">
+<parameter_description> the #GAsyncResult
+</parameter_description>
+</parameter>
+<parameter name="value">
+<parameter_description> return location for the result of the operation
+</parameter_description>
+</parameter>
+<parameter name="error">
+<parameter_description> return location for an error
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the operation was successful. In this case, @value is set.
+%FALSE if an error occurred. In this case, @error is set
+</return>
+</function>
+
+<function name="gdk_content_deserializer_get_cancellable">
+<description>
+Gets the cancellable that was passed to gdk_content_deserialize_async().
+
+
+</description>
+<parameters>
+<parameter name="deserializer">
+<parameter_description> a #GdkContentDeserializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the cancellable for the current operation
+</return>
+</function>
+
+<function name="gdk_content_deserializer_get_gtype">
+<description>
+Gets the GType to create an instance of.
+
+
+</description>
+<parameters>
+<parameter name="deserializer">
+<parameter_description> a #GdkContentDeserializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the GType for the current operation
+</return>
+</function>
+
+<function name="gdk_content_deserializer_get_input_stream">
+<description>
+Gets the input stream that was passed to gdk_content_deserialize_async().
+
+
+</description>
+<parameters>
+<parameter name="deserializer">
+<parameter_description> a #GdkContentDeserializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the input stream for the current operation
+</return>
+</function>
+
+<function name="gdk_content_deserializer_get_mime_type">
+<description>
+Gets the mime type to deserialize from.
+
+
+</description>
+<parameters>
+<parameter name="deserializer">
+<parameter_description> a #GdkContentDeserializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the mime type for the current operation
+</return>
+</function>
+
+<function name="gdk_content_deserializer_get_priority">
+<description>
+Gets the io priority that was passed to gdk_content_deserialize_async().
+
+
+</description>
+<parameters>
+<parameter name="deserializer">
+<parameter_description> a #GdkContentDeserializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the io priority for the current operation
+</return>
+</function>
+
+<function name="gdk_content_deserializer_get_task_data">
+<description>
+Gets the data that was associated with @deserializer via gdk_content_deserializer_set_task_data().
+
+
+</description>
+<parameters>
+<parameter name="deserializer">
+<parameter_description> a #GdkContentDeserializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the task data for @deserializer
+</return>
+</function>
+
+<function name="gdk_content_deserializer_get_user_data">
+<description>
+Gets the user data that was passed when the deserializer was registered.
+
+
+</description>
+<parameters>
+<parameter name="deserializer">
+<parameter_description> a #GdkContentDeserializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the user data for this deserializer
+</return>
+</function>
+
+<function name="gdk_content_deserializer_get_value">
+<description>
+Gets the #GValue to store the deserialized object in.
+
+
+</description>
+<parameters>
+<parameter name="deserializer">
+<parameter_description> a #GdkContentDeserializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #GValue for the current operation
+</return>
+</function>
+
+<function name="gdk_content_deserializer_return_error">
+<description>
+Indicate that the deserialization has ended with an error.
+This function consumes @error.
+
+</description>
+<parameters>
+<parameter name="deserializer">
+<parameter_description> a #GdkContentDeserializer
+</parameter_description>
+</parameter>
+<parameter name="error">
+<parameter_description> a #GError
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_content_deserializer_return_success">
+<description>
+Indicate that the deserialization has been successfully completed.
+
+</description>
+<parameters>
+<parameter name="deserializer">
+<parameter_description> a #GdkContentDeserializer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_content_deserializer_set_task_data">
+<description>
+Associate data with the current deserialization operation.
+
+</description>
+<parameters>
+<parameter name="deserializer">
+<parameter_description> a #GdkContentDeserializer
+</parameter_description>
+</parameter>
+<parameter name="data">
+<parameter_description> data to associate with this operation
+</parameter_description>
+</parameter>
+<parameter name="notify">
+<parameter_description> destroy notify for @data
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gdk_content_formats_builder_add_formats">
<description>
Appends all formats from @formats to @builder, skipping those that
@@ -4365,6 +4660,74 @@ they had in @second.
</return>
</function>
+<function name="gdk_content_formats_union_deserialize_gtypes">
+<description>
+Add GTypes for mime types in @formats for which deserializers are
+registered.
+
+Return: a new #GdkContentFormats
+
+</description>
+<parameters>
+<parameter name="formats">
+<parameter_description> a #GdkContentFormats
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_content_formats_union_deserialize_mime_types">
+<description>
+Add mime types for GTypes in @formats for which deserializers are
+registered.
+
+Return: a new #GdkContentFormats
+
+</description>
+<parameters>
+<parameter name="formats">
+<parameter_description> a #GdkContentFormats
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_content_formats_union_serialize_gtypes">
+<description>
+Add GTypes for the mime types in @formats for which serializers are
+registered.
+
+Return: a new #GdkContentFormats
+
+</description>
+<parameters>
+<parameter name="formats">
+<parameter_description> a #GdkContentFormats
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_content_formats_union_serialize_mime_types">
+<description>
+Add mime types for GTypes in @formats for which serializers are
+registered.
+
+Return: a new #GdkContentFormats
+
+</description>
+<parameters>
+<parameter name="formats">
+<parameter_description> a #GdkContentFormats
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gdk_content_formats_unref">
<description>
Decreases the reference count of a #GdkContentFormats by one.
@@ -4574,6 +4937,312 @@ ignore.
</return>
</function>
+<function name="gdk_content_register_deserializer">
+<description>
+Registers a function to create objects of a given @type from
+a serialized representation with the given mime type.
+
+</description>
+<parameters>
+<parameter name="mime_type">
+<parameter_description> the mime type which the function can deserialize from
+</parameter_description>
+</parameter>
+<parameter name="type">
+<parameter_description> the type of objects that the function creates
+</parameter_description>
+</parameter>
+<parameter name="deserialize">
+<parameter_description> the callback
+</parameter_description>
+</parameter>
+<parameter name="data">
+<parameter_description> data that @deserialize can access
+</parameter_description>
+</parameter>
+<parameter name="notify">
+<parameter_description> destroy notify for @data
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_content_register_serializer">
+<description>
+Registers a function to convert objects of the given @type to
+a serialized representation with the given mime type.
+
+</description>
+<parameters>
+<parameter name="type">
+<parameter_description> the type of objects that the function can serialize
+</parameter_description>
+</parameter>
+<parameter name="mime_type">
+<parameter_description> the mime type to serialize to
+</parameter_description>
+</parameter>
+<parameter name="serialize">
+<parameter_description> the callback
+</parameter_description>
+</parameter>
+<parameter name="data">
+<parameter_description> data that @serialize can access
+</parameter_description>
+</parameter>
+<parameter name="notify">
+<parameter_description> destroy notify for @data
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_content_serialize_async">
+<description>
+Serialize content and write it to the given output stream, asynchronously.
+When the operation is finished, @callback will be called. You can then
+call gdk_content_serialize_finish() to get the result of the operation.
+
+</description>
+<parameters>
+<parameter name="stream">
+<parameter_description> a #GOutputStream to write the serialized content to
+</parameter_description>
+</parameter>
+<parameter name="mime_type">
+<parameter_description> the mime type to serialize to
+</parameter_description>
+</parameter>
+<parameter name="value">
+<parameter_description> the content to serialize
+</parameter_description>
+</parameter>
+<parameter name="io_priority">
+<parameter_description> the io priority of the operation
+</parameter_description>
+</parameter>
+<parameter name="cancellable">
+<parameter_description> optional #GCancellable object
+</parameter_description>
+</parameter>
+<parameter name="callback">
+<parameter_description> callback to call when the operation is done
+</parameter_description>
+</parameter>
+<parameter name="user_data">
+<parameter_description> data to pass to the callback function
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_content_serialize_finish">
+<description>
+Finishes a content serialization operation.
+
+
+</description>
+<parameters>
+<parameter name="result">
+<parameter_description> the #GAsyncResult
+</parameter_description>
+</parameter>
+<parameter name="error">
+<parameter_description> return location for an error
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the operation was successful, %FALSE if an
+error occurred. In this case, @error is set
+</return>
+</function>
+
+<function name="gdk_content_serializer_get_cancellable">
+<description>
+Gets the cancellable that was passed to gdk_content_serialize_async().
+
+
+</description>
+<parameters>
+<parameter name="serializer">
+<parameter_description> a #GdkContentSerializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the cancellable for the current operation
+</return>
+</function>
+
+<function name="gdk_content_serializer_get_gtype">
+<description>
+Gets the GType to of the object to serialize.
+
+
+</description>
+<parameters>
+<parameter name="serializer">
+<parameter_description> a #GdkContentSerializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the GType for the current operation
+</return>
+</function>
+
+<function name="gdk_content_serializer_get_mime_type">
+<description>
+Gets the mime type to serialize to.
+
+
+</description>
+<parameters>
+<parameter name="serializer">
+<parameter_description> a #GdkContentSerializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the mime type for the current operation
+</return>
+</function>
+
+<function name="gdk_content_serializer_get_output_stream">
+<description>
+Gets the output stream that was passed to gdk_content_serialize_async().
+
+
+</description>
+<parameters>
+<parameter name="serializer">
+<parameter_description> a #GdkContentSerializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the output stream for the current operation
+</return>
+</function>
+
+<function name="gdk_content_serializer_get_priority">
+<description>
+Gets the io priority that was passed to gdk_content_serialize_async().
+
+
+</description>
+<parameters>
+<parameter name="serializer">
+<parameter_description> a #GdkContentSerializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the io priority for the current operation
+</return>
+</function>
+
+<function name="gdk_content_serializer_get_task_data">
+<description>
+Gets the data that was associated with @serializer via gdk_content_serializer_set_task_data().
+
+
+</description>
+<parameters>
+<parameter name="serializer">
+<parameter_description> a #GdkContentSerializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the task data for @serializer
+</return>
+</function>
+
+<function name="gdk_content_serializer_get_user_data">
+<description>
+Gets the user data that was passed when the serializer was registered.
+
+
+</description>
+<parameters>
+<parameter name="serializer">
+<parameter_description> a #GdkContentSerializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the user data for this serializer
+</return>
+</function>
+
+<function name="gdk_content_serializer_get_value">
+<description>
+Gets the #GValue to read the object to serialize from.
+
+
+</description>
+<parameters>
+<parameter name="serializer">
+<parameter_description> a #GdkContentSerializer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #GValue for the current operation
+</return>
+</function>
+
+<function name="gdk_content_serializer_return_error">
+<description>
+Indicate that the serialization has ended with an error.
+This function consumes @error.
+
+</description>
+<parameters>
+<parameter name="serializer">
+<parameter_description> a #GdkContentSerializer
+</parameter_description>
+</parameter>
+<parameter name="error">
+<parameter_description> a #GError
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_content_serializer_return_success">
+<description>
+Indicate that the serialization has been successfully completed.
+
+</description>
+<parameters>
+<parameter name="serializer">
+<parameter_description> a #GdkContentSerializer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_content_serializer_set_task_data">
+<description>
+Associate data with the current serialization operation.
+
+</description>
+<parameters>
+<parameter name="serializer">
+<parameter_description> a #GdkContentSerializer
+</parameter_description>
+</parameter>
+<parameter name="data">
+<parameter_description> data to associate with this operation
+</parameter_description>
+</parameter>
+<parameter name="notify">
+<parameter_description> destroy notify for @data
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gdk_cursor_get_fallback">
<description>
Returns the fallback for this @cursor. The fallback will be used if this
@@ -6018,9 +6687,8 @@ Since: 2.2
</parameter_description>
</parameter>
</parameters>
-<return> the next #GdkEvent to be processed, or %NULL
-if no events are pending. The returned #GdkEvent should be freed
-with gdk_event_free().
+<return> the next #GdkEvent to be processed,
+or %NULL if no events are pending
</return>
</function>
@@ -6223,6 +6891,34 @@ primary monitor is configured by the user
</return>
</function>
+<function name="gdk_display_get_setting">
+<description>
+Retrieves a desktop-wide setting such as double-click time
+for the @display.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="display">
+<parameter_description> a #GdkDisplay
+</parameter_description>
+</parameter>
+<parameter name="name">
+<parameter_description> the name of the setting
+</parameter_description>
+</parameter>
+<parameter name="value">
+<parameter_description> location to store the value of the setting
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the setting existed and a value was stored
+in @value, %FALSE otherwise
+
+</return>
+</function>
+
<function name="gdk_display_has_pending">
<description>
Returns whether the display has events that are waiting
@@ -6504,9 +7200,8 @@ Since: 2.2
</parameter_description>
</parameter>
</parameters>
-<return> a copy of the first #GdkEvent on the event
-queue, or %NULL if no events are in the queue. The returned
-#GdkEvent should be freed with g_object_unref().
+<return> the first #GdkEvent on the
+event queue
</return>
</function>
@@ -7119,6 +7814,68 @@ This function is called by the drag destination.
<return></return>
</function>
+<function name="gdk_drop_read_async">
+<description>
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkDragContext
+</parameter_description>
+</parameter>
+<parameter name="mime_types">
+<parameter_description>
+</parameter_description>
+</parameter>
+<parameter name="io_priority">
+<parameter_description>
+</parameter_description>
+</parameter>
+<parameter name="cancellable">
+<parameter_description>
+</parameter_description>
+</parameter>
+<parameter name="callback">
+<parameter_description>
+</parameter_description>
+</parameter>
+<parameter name="user_data">
+<parameter_description>
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gdk_drop_read_finish">
+<description>
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkDragContext
+</parameter_description>
+</parameter>
+<parameter name="out_mime_type">
+<parameter_description>
+</parameter_description>
+</parameter>
+<parameter name="result">
+<parameter_description>
+</parameter_description>
+</parameter>
+<parameter name="error">
+<parameter_description>
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #GInputStream, or %NULL
+
+</return>
+</function>
+
<function name="gdk_drop_reply">
<description>
Accepts or rejects a drop.
@@ -7157,17 +7914,15 @@ resources associated with it (e.g. #GdkWindow’s and strings).
</parameter_description>
</parameter>
</parameters>
-<return> a copy of @event. The returned #GdkEvent should be freed with
-gdk_event_free().
+<return> a copy of @event. Free with g_object_unref()
</return>
</function>
<function name="gdk_event_free">
<description>
Frees a #GdkEvent, freeing or decrementing any resources associated with it.
-Note that this function should only be called with events returned from
-functions such as gdk_event_peek(), gdk_event_get(), gdk_event_copy()
-and gdk_event_new().
+
+This is equivalent to g_object_unref().
</description>
<parameters>
@@ -7181,6 +7936,8 @@ and gdk_event_new().
<function name="gdk_event_get_axes">
<description>
+Extracts all axis values from an event.
+
</description>
<parameters>
@@ -7296,6 +8053,8 @@ Extract the event window relative x/y coordinates from an event.
<function name="gdk_event_get_crossing_detail">
<description>
+Extracts the crossing detail from an event.
+
</description>
<parameters>
@@ -7304,7 +8063,7 @@ Extract the event window relative x/y coordinates from an event.
</parameter_description>
</parameter>
<parameter name="detail">
-<parameter_description>
+<parameter_description> return location for the crossing detail
</parameter_description>
</parameter>
</parameters>
@@ -7314,6 +8073,8 @@ Extract the event window relative x/y coordinates from an event.
<function name="gdk_event_get_crossing_mode">
<description>
+Extracts the crossing mode from an event.
+
</description>
<parameters>
@@ -7322,7 +8083,7 @@ Extract the event window relative x/y coordinates from an event.
</parameter_description>
</parameter>
<parameter name="mode">
-<parameter_description>
+<parameter_description> return location for the crossing mode
</parameter_description>
</parameter>
</parameters>
@@ -7374,8 +8135,26 @@ Since: 3.22
</return>
</function>
+<function name="gdk_event_get_display">
+<description>
+Retrieves the #GdkDisplay associated to the @event.
+
+
+</description>
+<parameters>
+<parameter name="event">
+<parameter_description> a #GdkEvent
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GdkDisplay
+</return>
+</function>
+
<function name="gdk_event_get_drag_context">
<description>
+Gets the drag context from a DND event.
+
</description>
<parameters>
@@ -7384,7 +8163,7 @@ Since: 3.22
</parameter_description>
</parameter>
<parameter name="context">
-<parameter_description>
+<parameter_description> return location for the drag context
</parameter_description>
</parameter>
</parameters>
@@ -7432,6 +8211,8 @@ Since: 3.10
<function name="gdk_event_get_focus_in">
<description>
+Extracts whether this is a focus-in or focus-out event.
+
</description>
<parameters>
@@ -7440,7 +8221,7 @@ Since: 3.10
</parameter_description>
</parameter>
<parameter name="focus_in">
-<parameter_description>
+<parameter_description> return location for focus direction
</parameter_description>
</parameter>
</parameters>
@@ -7450,6 +8231,8 @@ Since: 3.10
<function name="gdk_event_get_grab_window">
<description>
+Extracts the grab window from a grab broken event.
+
</description>
<parameters>
@@ -7458,7 +8241,7 @@ Since: 3.10
</parameter_description>
</parameter>
<parameter name="window">
-<parameter_description>
+<parameter_description> Return location for the grab window
</parameter_description>
</parameter>
</parameters>
@@ -7466,8 +8249,28 @@ Since: 3.10
</return>
</function>
+<function name="gdk_event_get_history">
+<description>
+Retrieves the history of the @event motion, as a list of time and
+coordinates.
+
+
+</description>
+<parameters>
+<parameter name="event">
+<parameter_description> a #GdkEvent of type %GDK_MOTION_NOTIFY
+</parameter_description>
+</parameter>
+</parameters>
+<return> a list
+of time and coordinates
+</return>
+</function>
+
<function name="gdk_event_get_key_group">
<description>
+Extracts the key group from an event.
+
</description>
<parameters>
@@ -7476,7 +8279,7 @@ Since: 3.10
</parameter_description>
</parameter>
<parameter name="group">
-<parameter_description>
+<parameter_description> return location for the key group
</parameter_description>
</parameter>
</parameters>
@@ -7486,6 +8289,9 @@ Since: 3.10
<function name="gdk_event_get_key_is_modifier">
<description>
+Extracts whether the event is a key event for
+a modifier key.
+
</description>
<parameters>
@@ -7494,7 +8300,7 @@ Since: 3.10
</parameter_description>
</parameter>
<parameter name="is_modifier">
-<parameter_description>
+<parameter_description> return location for the value
</parameter_description>
</parameter>
</parameters>
@@ -7550,6 +8356,8 @@ Since: 3.2
<function name="gdk_event_get_pad_axis_value">
<description>
+Extracts the information from a pad event.
+
</description>
<parameters>
@@ -7558,11 +8366,11 @@ Since: 3.2
</parameter_description>
</parameter>
<parameter name="index">
-<parameter_description>
+<parameter_description> Return location for the axis index
</parameter_description>
</parameter>
<parameter name="value">
-<parameter_description>
+<parameter_description> Return location for the axis value
</parameter_description>
</parameter>
</parameters>
@@ -7572,6 +8380,9 @@ Since: 3.2
<function name="gdk_event_get_pad_button">
<description>
+Extracts information about the pressed button from
+a pad event.
+
</description>
<parameters>
@@ -7580,7 +8391,7 @@ Since: 3.2
</parameter_description>
</parameter>
<parameter name="button">
-<parameter_description>
+<parameter_description> Return location for the button
</parameter_description>
</parameter>
</parameters>
@@ -7590,6 +8401,8 @@ Since: 3.2
<function name="gdk_event_get_pad_group_mode">
<description>
+Extracts group and mode information from a pad event.
+
</description>
<parameters>
@@ -7598,11 +8411,11 @@ Since: 3.2
</parameter_description>
</parameter>
<parameter name="group">
-<parameter_description>
+<parameter_description> return location for the group
</parameter_description>
</parameter>
<parameter name="mode">
-<parameter_description>
+<parameter_description> return location for the mode
</parameter_description>
</parameter>
</parameters>
@@ -7612,12 +8425,17 @@ Since: 3.2
<function name="gdk_event_get_pointer_emulated">
<description>
-#event: a #GdkEvent
+Returns whether this event is an 'emulated' pointer event (typically
+from a touch event), as opposed to a real one.
Since: 3.22
</description>
<parameters>
+<parameter name="event">
+<parameter_description> a #GdkEvent
+</parameter_description>
+</parameter>
</parameters>
<return> %TRUE if this event is emulated
@@ -7764,9 +8582,10 @@ Since: 3.0
<function name="gdk_event_get_state">
<description>
-If the event contains a “state” field, puts that field in @state. Otherwise
-stores an empty state (0). Returns %TRUE if there was a state field
-in the event. @event may be %NULL, in which case it’s treated
+If the event contains a “state” field, puts that field in @state.
+
+Otherwise stores an empty state (0).
+@event may be %NULL, in which case it’s treated
as if the event had no state field.
@@ -7781,12 +8600,15 @@ as if the event had no state field.
</parameter_description>
</parameter>
</parameters>
-<return> %TRUE if there was a state field in the event
+<return> %TRUE if there was a state field in the event
</return>
</function>
<function name="gdk_event_get_string">
<description>
+Extracts a string from an event. The string is an
+approximation of the keyval in a key event.
+
</description>
<parameters>
@@ -7795,7 +8617,7 @@ as if the event had no state field.
</parameter_description>
</parameter>
<parameter name="string">
-<parameter_description>
+<parameter_description> return location for the string
</parameter_description>
</parameter>
</parameters>
@@ -7822,6 +8644,8 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
<function name="gdk_event_get_touch_emulating_pointer">
<description>
+Extracts whether a touch event is emulating a pointer event.
+
</description>
<parameters>
@@ -7830,7 +8654,7 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
</parameter_description>
</parameter>
<parameter name="emulating">
-<parameter_description>
+<parameter_description> Return location for information
</parameter_description>
</parameter>
</parameters>
@@ -7840,6 +8664,8 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
<function name="gdk_event_get_touchpad_angle_delta">
<description>
+Extracts the angle from a touchpad event.
+
</description>
<parameters>
@@ -7848,7 +8674,7 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
</parameter_description>
</parameter>
<parameter name="delta">
-<parameter_description>
+<parameter_description> Return location for angle
</parameter_description>
</parameter>
</parameters>
@@ -7858,6 +8684,8 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
<function name="gdk_event_get_touchpad_deltas">
<description>
+Extracts delta information from a touchpad event.
+
</description>
<parameters>
@@ -7866,11 +8694,11 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
</parameter_description>
</parameter>
<parameter name="dx">
-<parameter_description>
+<parameter_description> return location for x
</parameter_description>
</parameter>
<parameter name="dy">
-<parameter_description>
+<parameter_description> return location for y
</parameter_description>
</parameter>
</parameters>
@@ -7880,6 +8708,8 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
<function name="gdk_event_get_touchpad_gesture_n_fingers">
<description>
+Extracts the number of fingers from a touchpad event.
+
</description>
<parameters>
@@ -7888,7 +8718,7 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
</parameter_description>
</parameter>
<parameter name="n_fingers">
-<parameter_description>
+<parameter_description> return location for the number of fingers
</parameter_description>
</parameter>
</parameters>
@@ -7898,6 +8728,8 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
<function name="gdk_event_get_touchpad_gesture_phase">
<description>
+Extracts the touchpad gesture phase from a touchpad event.
+
</description>
<parameters>
@@ -7906,7 +8738,7 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
</parameter_description>
</parameter>
<parameter name="phase">
-<parameter_description>
+<parameter_description> Return location for the gesture phase
</parameter_description>
</parameter>
</parameters>
@@ -7916,6 +8748,8 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
<function name="gdk_event_get_touchpad_scale">
<description>
+Extracts the scale from a touchpad event.
+
</description>
<parameters>
@@ -7924,7 +8758,7 @@ returns #GDK_CURRENT_TIME. If @event is %NULL, returns #GDK_CURRENT_TIME.
</parameter_description>
</parameter>
<parameter name="scale">
-<parameter_description>
+<parameter_description> Return location for scale
</parameter_description>
</parameter>
</parameters>
@@ -8002,6 +8836,22 @@ Since: 3.20
</return>
</function>
+<function name="gdk_event_is_sent">
+<description>
+Returns whether the event was sent explicitly.
+
+
+</description>
+<parameters>
+<parameter name="event">
+<parameter_description> a #GdkEvent
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the event was sent explicitly
+</return>
+</function>
+
<function name="gdk_event_new">
<description>
Creates a new event of the given type. All fields are set to 0.
@@ -8015,9 +8865,7 @@ Since: 2.2
</parameter_description>
</parameter>
</parameters>
-<return> a newly-allocated #GdkEvent. The returned #GdkEvent
-should be freed with gdk_event_free().
-
+<return> a newly-allocated #GdkEvent. Free with g_object_unref()
</return>
</function>
@@ -8063,6 +8911,24 @@ Since: 3.22
<return></return>
</function>
+<function name="gdk_event_set_display">
+<description>
+Sets the display that an event is associated with.
+
+</description>
+<parameters>
+<parameter name="event">
+<parameter_description> a #GdkEvent
+</parameter_description>
+</parameter>
+<parameter name="display">
+<parameter_description> a #GdkDisplay
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gdk_event_set_source_device">
<description>
Sets the slave device for @event to @device.
@@ -14983,6 +15849,180 @@ file descriptors are exceeded.)
</return>
</function>
+<function name="gdk_vulkan_context_get_device">
+<description>
+Gets the Vulkan device that this context is using.
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkVulkanContext
+</parameter_description>
+</parameter>
+</parameters>
+<return> the VkDevice
+</return>
+</function>
+
+<function name="gdk_vulkan_context_get_draw_index">
+<description>
+Gets the index of the image that is currently being drawn.
+
+This function can only be used between gdk_window_begin_draw_frame() and
+gdk_window_end_draw_frame() calls for the toplevel window that the
+@context is associated with.
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkVulkanContext
+</parameter_description>
+</parameter>
+</parameters>
+<return> the index of the images that is being drawn
+</return>
+</function>
+
+<function name="gdk_vulkan_context_get_draw_semaphore">
+<description>
+Gets the Vulkan semaphore that protects access to the image that is
+currently being drawn.
+
+This function can only be used between gdk_window_begin_draw_frame() and
+gdk_window_end_draw_frame() calls for the toplevel window that the
+@context is associated with.
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkVulkanContext
+</parameter_description>
+</parameter>
+</parameters>
+<return> the VkSemaphore
+</return>
+</function>
+
+<function name="gdk_vulkan_context_get_image">
+<description>
+Gets the image with index @id that this context is using.
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkVulkanContext
+</parameter_description>
+</parameter>
+<parameter name="id">
+<parameter_description> the index of the image to return
+</parameter_description>
+</parameter>
+</parameters>
+<return> the VkImage
+</return>
+</function>
+
+<function name="gdk_vulkan_context_get_image_format">
+<description>
+Gets the image format that this context is using.
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkVulkanContext
+</parameter_description>
+</parameter>
+</parameters>
+<return> the VkFormat
+</return>
+</function>
+
+<function name="gdk_vulkan_context_get_instance">
+<description>
+Gets the Vulkan instance that is associated with @context.
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkVulkanContext
+</parameter_description>
+</parameter>
+</parameters>
+<return> the VkInstance
+</return>
+</function>
+
+<function name="gdk_vulkan_context_get_n_images">
+<description>
+Gets the number of images that this context is using in its swap chain.
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkVulkanContext
+</parameter_description>
+</parameter>
+</parameters>
+<return> the number of images
+</return>
+</function>
+
+<function name="gdk_vulkan_context_get_physical_device">
+<description>
+Gets the Vulkan physical device that this context is using.
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkVulkanContext
+</parameter_description>
+</parameter>
+</parameters>
+<return> the VkPhysicalDevice
+</return>
+</function>
+
+<function name="gdk_vulkan_context_get_queue">
+<description>
+Gets the Vulkan queue that this context is using.
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkVulkanContext
+</parameter_description>
+</parameter>
+</parameters>
+<return> the VkQueue
+</return>
+</function>
+
+<function name="gdk_vulkan_context_get_queue_family_index">
+<description>
+Gets the family index for the queue that this context is using.
+See vkGetPhysicalDeviceQueueFamilyProperties().
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> a #GdkVulkanContext
+</parameter_description>
+</parameter>
+</parameters>
+<return> the index
+</return>
+</function>
+
<function name="gdk_window_add_filter">
<description>
Adds an event filter to @window, allowing you to intercept events
diff --git a/gdk/src/gdk_docs_override.xml b/gdk/src/gdk_docs_override.xml
index cdd68c2..53ece44 100644
--- a/gdk/src/gdk_docs_override.xml
+++ b/gdk/src/gdk_docs_override.xml
@@ -244,24 +244,4 @@ get_update_area() returns an invalid Region.
</description>
</function>
-<!-- TODO: Remove this function description when gtk+'s description contains -->
-<!-- the correct number of parameters (@event). -->
-<function name="gdk_event_get_pointer_emulated">
-<description>
-Returns whether this event is an 'emulated' pointer event (typically
-from a touch event), as opposed to a real one.
-
-Since: 3.22
-</description>
-<parameters>
-<parameter name="event">
-<parameter_description> a #GdkEvent
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if this event is emulated
-
-</return>
-</function>
-
</root>
diff --git a/gdk/src/gdk_enums.defs b/gdk/src/gdk_enums.defs
index 84d03ed..ea12356 100644
--- a/gdk/src/gdk_enums.defs
+++ b/gdk/src/gdk_enums.defs
@@ -355,52 +355,6 @@
)
)
-;; Original typedef:
-;; typedef enum
-;; {
-;; GDK_WINDOW_STATE_WITHDRAWN = 1 << 0,
-;; GDK_WINDOW_STATE_ICONIFIED = 1 << 1,
-;; GDK_WINDOW_STATE_MAXIMIZED = 1 << 2,
-;; GDK_WINDOW_STATE_STICKY = 1 << 3,
-;; GDK_WINDOW_STATE_FULLSCREEN = 1 << 4,
-;; GDK_WINDOW_STATE_ABOVE = 1 << 5,
-;; GDK_WINDOW_STATE_BELOW = 1 << 6,
-;; GDK_WINDOW_STATE_FOCUSED = 1 << 7,
-;; GDK_WINDOW_STATE_TILED = 1 << 8,
-;; GDK_WINDOW_STATE_TOP_TILED = 1 << 9,
-;; GDK_WINDOW_STATE_TOP_RESIZABLE = 1 << 10,
-;; GDK_WINDOW_STATE_RIGHT_TILED = 1 << 11,
-;; GDK_WINDOW_STATE_RIGHT_RESIZABLE = 1 << 12,
-;; GDK_WINDOW_STATE_BOTTOM_TILED = 1 << 13,
-;; GDK_WINDOW_STATE_BOTTOM_RESIZABLE = 1 << 14,
-;; GDK_WINDOW_STATE_LEFT_TILED = 1 << 15,
-;; GDK_WINDOW_STATE_LEFT_RESIZABLE = 1 << 16
-;; } GdkWindowState;
-
-(define-flags-extended WindowState
- (in-module "Gdk")
- (c-name "GdkWindowState")
- (values
- '("withdrawn" "GDK_WINDOW_STATE_WITHDRAWN" "1 << 0")
- '("iconified" "GDK_WINDOW_STATE_ICONIFIED" "1 << 1")
- '("maximized" "GDK_WINDOW_STATE_MAXIMIZED" "1 << 2")
- '("sticky" "GDK_WINDOW_STATE_STICKY" "1 << 3")
- '("fullscreen" "GDK_WINDOW_STATE_FULLSCREEN" "1 << 4")
- '("above" "GDK_WINDOW_STATE_ABOVE" "1 << 5")
- '("below" "GDK_WINDOW_STATE_BELOW" "1 << 6")
- '("focused" "GDK_WINDOW_STATE_FOCUSED" "1 << 7")
- '("tiled" "GDK_WINDOW_STATE_TILED" "1 << 8")
- '("top-tiled" "GDK_WINDOW_STATE_TOP_TILED" "1 << 9")
- '("top-resizable" "GDK_WINDOW_STATE_TOP_RESIZABLE" "1 << 10")
- '("right-tiled" "GDK_WINDOW_STATE_RIGHT_TILED" "1 << 11")
- '("right-resizable" "GDK_WINDOW_STATE_RIGHT_RESIZABLE" "1 << 12")
- '("bottom-tiled" "GDK_WINDOW_STATE_BOTTOM_TILED" "1 << 13")
- '("bottom-resizable" "GDK_WINDOW_STATE_BOTTOM_RESIZABLE" "1 << 14")
- '("left-tiled" "GDK_WINDOW_STATE_LEFT_TILED" "1 << 15")
- '("left-resizable" "GDK_WINDOW_STATE_LEFT_RESIZABLE" "1 << 16")
- )
-)
-
;; From gdkframeclock.h
;; Original typedef:
@@ -1091,3 +1045,49 @@
)
)
+;; Original typedef:
+;; typedef enum
+;; {
+;; GDK_WINDOW_STATE_WITHDRAWN = 1 << 0,
+;; GDK_WINDOW_STATE_ICONIFIED = 1 << 1,
+;; GDK_WINDOW_STATE_MAXIMIZED = 1 << 2,
+;; GDK_WINDOW_STATE_STICKY = 1 << 3,
+;; GDK_WINDOW_STATE_FULLSCREEN = 1 << 4,
+;; GDK_WINDOW_STATE_ABOVE = 1 << 5,
+;; GDK_WINDOW_STATE_BELOW = 1 << 6,
+;; GDK_WINDOW_STATE_FOCUSED = 1 << 7,
+;; GDK_WINDOW_STATE_TILED = 1 << 8,
+;; GDK_WINDOW_STATE_TOP_TILED = 1 << 9,
+;; GDK_WINDOW_STATE_TOP_RESIZABLE = 1 << 10,
+;; GDK_WINDOW_STATE_RIGHT_TILED = 1 << 11,
+;; GDK_WINDOW_STATE_RIGHT_RESIZABLE = 1 << 12,
+;; GDK_WINDOW_STATE_BOTTOM_TILED = 1 << 13,
+;; GDK_WINDOW_STATE_BOTTOM_RESIZABLE = 1 << 14,
+;; GDK_WINDOW_STATE_LEFT_TILED = 1 << 15,
+;; GDK_WINDOW_STATE_LEFT_RESIZABLE = 1 << 16
+;; } GdkWindowState;
+
+(define-flags-extended WindowState
+ (in-module "Gdk")
+ (c-name "GdkWindowState")
+ (values
+ '("withdrawn" "GDK_WINDOW_STATE_WITHDRAWN" "1 << 0")
+ '("iconified" "GDK_WINDOW_STATE_ICONIFIED" "1 << 1")
+ '("maximized" "GDK_WINDOW_STATE_MAXIMIZED" "1 << 2")
+ '("sticky" "GDK_WINDOW_STATE_STICKY" "1 << 3")
+ '("fullscreen" "GDK_WINDOW_STATE_FULLSCREEN" "1 << 4")
+ '("above" "GDK_WINDOW_STATE_ABOVE" "1 << 5")
+ '("below" "GDK_WINDOW_STATE_BELOW" "1 << 6")
+ '("focused" "GDK_WINDOW_STATE_FOCUSED" "1 << 7")
+ '("tiled" "GDK_WINDOW_STATE_TILED" "1 << 8")
+ '("top-tiled" "GDK_WINDOW_STATE_TOP_TILED" "1 << 9")
+ '("top-resizable" "GDK_WINDOW_STATE_TOP_RESIZABLE" "1 << 10")
+ '("right-tiled" "GDK_WINDOW_STATE_RIGHT_TILED" "1 << 11")
+ '("right-resizable" "GDK_WINDOW_STATE_RIGHT_RESIZABLE" "1 << 12")
+ '("bottom-tiled" "GDK_WINDOW_STATE_BOTTOM_TILED" "1 << 13")
+ '("bottom-resizable" "GDK_WINDOW_STATE_BOTTOM_RESIZABLE" "1 << 14")
+ '("left-tiled" "GDK_WINDOW_STATE_LEFT_TILED" "1 << 15")
+ '("left-resizable" "GDK_WINDOW_STATE_LEFT_RESIZABLE" "1 << 16")
+ )
+)
+
diff --git a/gdk/src/gdk_methods.defs b/gdk/src/gdk_methods.defs
index fda100e..2ef81da 100644
--- a/gdk/src/gdk_methods.defs
+++ b/gdk/src/gdk_methods.defs
@@ -224,31 +224,6 @@
)
)
-(define-flags WindowState
- (in-module "Gdk")
- (c-name "GdkWindowState")
- (gtype-id "GDK_TYPE_WINDOW_STATE")
- (values
- '("withdrawn" "GDK_WINDOW_STATE_WITHDRAWN")
- '("iconified" "GDK_WINDOW_STATE_ICONIFIED")
- '("maximized" "GDK_WINDOW_STATE_MAXIMIZED")
- '("sticky" "GDK_WINDOW_STATE_STICKY")
- '("fullscreen" "GDK_WINDOW_STATE_FULLSCREEN")
- '("above" "GDK_WINDOW_STATE_ABOVE")
- '("below" "GDK_WINDOW_STATE_BELOW")
- '("focused" "GDK_WINDOW_STATE_FOCUSED")
- '("tiled" "GDK_WINDOW_STATE_TILED")
- '("top-tiled" "GDK_WINDOW_STATE_TOP_TILED")
- '("top-resizable" "GDK_WINDOW_STATE_TOP_RESIZABLE")
- '("right-tiled" "GDK_WINDOW_STATE_RIGHT_TILED")
- '("right-resizable" "GDK_WINDOW_STATE_RIGHT_RESIZABLE")
- '("bottom-tiled" "GDK_WINDOW_STATE_BOTTOM_TILED")
- '("bottom-resizable" "GDK_WINDOW_STATE_BOTTOM_RESIZABLE")
- '("left-tiled" "GDK_WINDOW_STATE_LEFT_TILED")
- '("left-resizable" "GDK_WINDOW_STATE_LEFT_RESIZABLE")
- )
-)
-
(define-flags FrameClockPhase
(in-module "Gdk")
(c-name "GdkFrameClockPhase")
@@ -632,6 +607,31 @@
)
)
+(define-flags WindowState
+ (in-module "Gdk")
+ (c-name "GdkWindowState")
+ (gtype-id "GDK_TYPE_WINDOW_STATE")
+ (values
+ '("withdrawn" "GDK_WINDOW_STATE_WITHDRAWN")
+ '("iconified" "GDK_WINDOW_STATE_ICONIFIED")
+ '("maximized" "GDK_WINDOW_STATE_MAXIMIZED")
+ '("sticky" "GDK_WINDOW_STATE_STICKY")
+ '("fullscreen" "GDK_WINDOW_STATE_FULLSCREEN")
+ '("above" "GDK_WINDOW_STATE_ABOVE")
+ '("below" "GDK_WINDOW_STATE_BELOW")
+ '("focused" "GDK_WINDOW_STATE_FOCUSED")
+ '("tiled" "GDK_WINDOW_STATE_TILED")
+ '("top-tiled" "GDK_WINDOW_STATE_TOP_TILED")
+ '("top-resizable" "GDK_WINDOW_STATE_TOP_RESIZABLE")
+ '("right-tiled" "GDK_WINDOW_STATE_RIGHT_TILED")
+ '("right-resizable" "GDK_WINDOW_STATE_RIGHT_RESIZABLE")
+ '("bottom-tiled" "GDK_WINDOW_STATE_BOTTOM_TILED")
+ '("bottom-resizable" "GDK_WINDOW_STATE_BOTTOM_RESIZABLE")
+ '("left-tiled" "GDK_WINDOW_STATE_LEFT_TILED")
+ '("left-resizable" "GDK_WINDOW_STATE_LEFT_RESIZABLE")
+ )
+)
+
;; From gdkapplaunchcontext.h
@@ -2650,14 +2650,6 @@
(return-type "GdkDevice*")
)
-(define-function gdk_event_request_motions
- (c-name "gdk_event_request_motions")
- (return-type "none")
- (parameters
- '("const-GdkEventMotion*" "event")
- )
-)
-
(define-method triggers_context_menu
(of-object "GdkEvent")
(c-name "gdk_event_triggers_context_menu")
@@ -4414,15 +4406,6 @@
(return-type "cairo_region_t*")
)
-(define-method mark_paint_from_clip
- (of-object "GdkWindow")
- (c-name "gdk_window_mark_paint_from_clip")
- (return-type "none")
- (parameters
- '("cairo_t*" "cr")
- )
-)
-
(define-method begin_draw_frame
(of-object "GdkWindow")
(c-name "gdk_window_begin_draw_frame")
@@ -5180,11 +5163,6 @@
(return-type "GType")
)
-(define-function gdk_window_state_get_type
- (c-name "gdk_window_state_get_type")
- (return-type "GType")
-)
-
(define-function gdk_frame_clock_phase_get_type
(c-name "gdk_frame_clock_phase_get_type")
(return-type "GType")
@@ -5300,6 +5278,11 @@
(return-type "GType")
)
+(define-function gdk_window_state_get_type
+ (c-name "gdk_window_state_get_type")
+ (return-type "GType")
+)
+
;; From gdkmarshalers.h
diff --git a/gtk/src/gtk_docs.xml b/gtk/src/gtk_docs.xml
index ce91e8c..8ab1e65 100644
--- a/gtk/src/gtk_docs.xml
+++ b/gtk/src/gtk_docs.xml
@@ -5526,7 +5526,7 @@ to find out which font was just selected.
Note that this signal is only emitted when the user
changes the font. If you need to react to programmatic font changes
-as well, use the notify::font-name signal.
+as well, use the notify::font signal.
Since: 2.4
@@ -5540,37 +5540,6 @@ Since: 2.4
<return></return>
</signal>
-<property name="GtkFontButton:font-name">
-<description>
-The name of the currently selected font.
-
-Since: 2.4
-
-</description>
-</property>
-
-<property name="GtkFontButton:show-size">
-<description>
-If this property is set to %TRUE, the selected font size will be shown
-in the label. For a more WYSIWYG way to show the selected size, see the
-::use-size property.
-
-Since: 2.4
-
-</description>
-</property>
-
-<property name="GtkFontButton:show-style">
-<description>
-If this property is set to %TRUE, the name of the selected font style
-will be shown in the label. For a more WYSIWYG way to show the selected
-style, see the ::use-font property.
-
-Since: 2.4
-
-</description>
-</property>
-
<property name="GtkFontButton:title">
<description>
The title of the font chooser dialog.
@@ -5635,6 +5604,36 @@ The font description as a #PangoFontDescription.
</description>
</property>
+<property name="GtkFontChooser:font-features">
+<description>
+The selected font features, in a format that is compatible with
+CSS and with Pango attributes.
+
+Since: 3.94
+
+</description>
+</property>
+
+<property name="GtkFontChooser:language">
+<description>
+The language for which the #GtkFontChooser:font-features were
+selected, in a format that is compatible with CSS and with Pango
+attributes.
+
+Since: 3.94
+
+</description>
+</property>
+
+<property name="GtkFontChooser:level">
+<description>
+The level of granularity to offer for selecting fonts.
+
+Since: 3.94
+
+</description>
+</property>
+
<property name="GtkFontChooser:preview-text">
<description>
The string with which to preview the font.
@@ -5649,6 +5648,31 @@ Whether to show an entry to change the preview text.
</description>
</property>
+<enum name="GtkFontChooserLevel">
+<description>
+This enumeration specifies the granularity of font selection
+that is desired in a font chooser.
+
+</description>
+<parameters>
+<parameter name="GTK_FONT_CHOOSER_LEVEL_FONT">
+<parameter_description> Select an individual
+font, including a size. An example would be: "Arial Bold 11"
+</parameter_description>
+</parameter>
+<parameter name="GTK_FONT_CHOOSER_LEVEL_FACE">
+<parameter_description> Select a font face,
+without a size. An example would be: "Arial Bold"
+</parameter_description>
+</parameter>
+<parameter name="GTK_FONT_CHOOSER_LEVEL_FAMILY">
+<parameter_description> Select a font family, without
+specifying the face. An example would be: "Arial"
+</parameter_description>
+</parameter>
+</parameters>
+</enum>
+
<signal name="GtkGLArea::create-context">
<description>
The ::create-context signal is emitted when the widget is being
@@ -6534,6 +6558,10 @@ Built-in icon sizes.
Icon sizes default to being inherited. Where they cannot be
inherited, text size is the default.
+All widgets which use GtkIconSize set the normal-icons or large-icons
+style classes correspondingly, and let themes determine the actual size
+to be used with the -gtk-icon-size CSS property.
+
</description>
<parameters>
<parameter name="GTK_ICON_SIZE_INHERIT">
@@ -9642,7 +9670,11 @@ Since: 3.22.26
</description>
<parameters>
<parameter name="sidebar">
-<parameter_description> the object which received the signal.
+<parameter_description> the object which received the signal
+</parameter_description>
+</parameter>
+<parameter name="flags">
+<parameter_description> the flags for the operation
</parameter_description>
</parameter>
</parameters>
@@ -14658,14 +14690,6 @@ drawing with the ::draw_layer vfunc.
</description>
<parameters>
-<parameter name="GTK_TEXT_VIEW_LAYER_BELOW">
-<parameter_description> Old deprecated layer, use %GTK_TEXT_VIEW_LAYER_BELOW_TEXT instead
-</parameter_description>
-</parameter>
-<parameter name="GTK_TEXT_VIEW_LAYER_ABOVE">
-<parameter_description> Old deprecated layer, use %GTK_TEXT_VIEW_LAYER_ABOVE_TEXT instead
-</parameter_description>
-</parameter>
<parameter name="GTK_TEXT_VIEW_LAYER_BELOW_TEXT">
<parameter_description> The layer rendered below the text (but above the background). Since: 3.20
</parameter_description>
@@ -16632,7 +16656,7 @@ Since: 2.12
</parameters>
<return> %TRUE if stopping keyboard navigation is fine, %FALSE
if the emitting widget should try to handle the keyboard
-navigation attempt in its parent container(s).
+navigation attempt in its parent widget(s).
</return>
</signal>
@@ -31178,6 +31202,7 @@ so the first button in the list will be the leftmost button in the dialog.
Here’s a simple example:
|[<!-- language="C" -->
+GtkWidget *main_app_window; // Window the dialog should show up on
GtkWidget *dialog;
GtkDialogFlags flags = GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT;
dialog = gtk_dialog_new_with_buttons ("My dialog",
@@ -31265,14 +31290,17 @@ destroying the dialog if you wish to do so.
Typical usage of this function might be:
|[<!-- language="C" -->
-gint result = gtk_dialog_run (GTK_DIALOG (dialog));
+GtkWidget *dialog = gtk_dialog_new ();
+// Set up dialog...
+
+int result = gtk_dialog_run (GTK_DIALOG (dialog));
switch (result)
{
case GTK_RESPONSE_ACCEPT:
-do_application_specific_something ();
+// do_application_specific_something ();
break;
default:
-do_nothing_since_dialog_was_cancelled ();
+// do_nothing_since_dialog_was_cancelled ();
break;
}
gtk_widget_destroy (dialog);
@@ -31395,28 +31423,6 @@ Initiates a drag on the source side. The function only needs to be used
when the application is starting drags itself, and is not needed when
gtk_drag_source_set() is used.
-The @event is used to retrieve the timestamp that will be used internally to
-grab the pointer. If @event is %NULL, then %GDK_CURRENT_TIME will be used.
-However, you should try to pass a real event in all cases, since that can be
-used to get information about the drag.
-
-Generally there are three cases when you want to start a drag by hand by
-calling this function:
-
-1. During a #GtkWidget::button-press-event handler, if you want to start a drag
-immediately when the user presses the mouse button. Pass the @event
-that you have in your #GtkWidget::button-press-event handler.
-
-2. During a #GtkWidget::motion-notify-event handler, if you want to start a drag
-when the mouse moves past a certain threshold distance after a button-press.
-Pass the @event that you have in your #GtkWidget::motion-notify-event handler.
-
-3. During a timeout handler, if you want to start a drag after the mouse
-button is held down for some time. Try to save the last event that you got
-from the mouse, using g_object_ref(), and pass it to this function
-(remember to free the event with g_object_unref() when you are done).
-If you can really not pass a real event, pass %NULL instead.
-
Since: 3.10
</description>
@@ -34053,13 +34059,8 @@ indices in the layout to byte indices in the entry contents.
Retrieves the maximum allowed length of the text in
@entry. See gtk_entry_set_max_length().
-This is equivalent to:
-
-|[<!-- language="C" -->
-GtkEntryBuffer *buffer;
-buffer = gtk_entry_get_buffer (entry);
-gtk_entry_buffer_get_max_length (buffer);
-]|
+This is equivalent to getting @entry's #GtkEntryBuffer and
+calling gtk_entry_buffer_get_max_length() on it.
</description>
@@ -34191,13 +34192,8 @@ Since: 3.10
Retrieves the contents of the entry widget.
See also gtk_editable_get_chars().
-This is equivalent to:
-
-|[<!-- language="C" -->
-GtkEntryBuffer *buffer;
-buffer = gtk_entry_get_buffer (entry);
-gtk_entry_buffer_get_text (buffer);
-]|
+This is equivalent to getting @entry's #GtkEntryBuffer and calling
+gtk_entry_buffer_get_text() on it.
</description>
@@ -34219,13 +34215,9 @@ stored.
Retrieves the current length of the text in
@entry.
-This is equivalent to:
+This is equivalent to getting @entry's #GtkEntryBuffer and
+calling gtk_entry_buffer_get_length() on it.
-|[<!-- language="C" -->
-GtkEntryBuffer *buffer;
-buffer = gtk_entry_get_buffer (entry);
-gtk_entry_buffer_get_length (buffer);
-]|
Since: 2.14
@@ -34892,12 +34884,8 @@ Sets the maximum allowed length of the contents of the widget. If
the current contents are longer than the given length, then they
will be truncated to fit.
-This is equivalent to:
-
-|[<!-- language="C" -->
-GtkEntryBuffer *buffer;
-buffer = gtk_entry_get_buffer (entry);
-gtk_entry_buffer_set_max_length (buffer, max);
+This is equivalent to getting @entry's #GtkEntryBuffer and
+calling gtk_entry_buffer_set_max_length() on it.
]|
</description>
@@ -38785,65 +38773,6 @@ Since: 3.12
<return></return>
</function>
-<function name="gtk_font_button_get_font_name">
-<description>
-Retrieves the name of the currently selected font. This name includes
-style and size information as well. If you want to render something
-with the font, use this string with pango_font_description_from_string() .
-If you’re interested in peeking certain values (family name,
-style, size, weight) just query these properties from the
-#PangoFontDescription object.
-
-Since: 2.4
-
-</description>
-<parameters>
-<parameter name="font_button">
-<parameter_description> a #GtkFontButton
-</parameter_description>
-</parameter>
-</parameters>
-<return> an internal copy of the font name which must not be freed.
-
-</return>
-</function>
-
-<function name="gtk_font_button_get_show_size">
-<description>
-Returns whether the font size will be shown in the label.
-
-Since: 2.4
-
-</description>
-<parameters>
-<parameter name="font_button">
-<parameter_description> a #GtkFontButton
-</parameter_description>
-</parameter>
-</parameters>
-<return> whether the font size will be shown in the label.
-
-</return>
-</function>
-
-<function name="gtk_font_button_get_show_style">
-<description>
-Returns whether the name of the font style will be shown in the label.
-
-Since: 2.4
-
-</description>
-<parameters>
-<parameter name="font_button">
-<parameter_description> a #GtkFontButton
-</parameter_description>
-</parameter>
-</parameters>
-<return> whether the font style will be shown in the label.
-
-</return>
-</function>
-
<function name="gtk_font_button_get_title">
<description>
Retrieves the title of the font chooser dialog.
@@ -38930,68 +38859,6 @@ Since: 2.4
</return>
</function>
-<function name="gtk_font_button_set_font_name">
-<description>
-Sets or updates the currently-displayed font in font picker dialog.
-
-Since: 2.4
-
-</description>
-<parameters>
-<parameter name="font_button">
-<parameter_description> a #GtkFontButton
-</parameter_description>
-</parameter>
-<parameter name="fontname">
-<parameter_description> Name of font to display in font chooser dialog
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE
-
-</return>
-</function>
-
-<function name="gtk_font_button_set_show_size">
-<description>
-If @show_size is %TRUE, the font size will be displayed along with the name of the selected font.
-
-Since: 2.4
-
-</description>
-<parameters>
-<parameter name="font_button">
-<parameter_description> a #GtkFontButton
-</parameter_description>
-</parameter>
-<parameter name="show_size">
-<parameter_description> %TRUE if font size should be displayed in dialog.
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
-<function name="gtk_font_button_set_show_style">
-<description>
-If @show_style is %TRUE, the font style will be displayed along with name of the selected font.
-
-Since: 2.4
-
-</description>
-<parameters>
-<parameter name="font_button">
-<parameter_description> a #GtkFontButton
-</parameter_description>
-</parameter>
-<parameter name="show_style">
-<parameter_description> %TRUE if font style should be displayed in label.
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gtk_font_button_set_title">
<description>
Sets the title for the font chooser dialog.
@@ -39177,6 +39044,23 @@ and must not be modified or freed.
</return>
</function>
+<function name="gtk_font_chooser_get_font_features">
+<description>
+Gets the currently-selected font features.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="fontchooser">
+<parameter_description> a #GtkFontChooser
+</parameter_description>
+</parameter>
+</parameters>
+<return> the currently selected font features
+</return>
+</function>
+
<function name="gtk_font_chooser_get_font_map">
<description>
Gets the custom font map of this font chooser widget,
@@ -39215,6 +39099,40 @@ or -1 if no font size is selected.
</return>
</function>
+<function name="gtk_font_chooser_get_language">
+<description>
+Gets the currently-selected language for font features.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="fontchooser">
+<parameter_description> a #GtkFontChooser
+</parameter_description>
+</parameter>
+</parameters>
+<return> the currently selected language
+</return>
+</function>
+
+<function name="gtk_font_chooser_get_level">
+<description>
+Returns the current level of granularity for selecting fonts.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="fontchooser">
+<parameter_description> a #GtkFontChooser
+</parameter_description>
+</parameter>
+</parameters>
+<return> the current granularity level
+</return>
+</function>
+
<function name="gtk_font_chooser_get_preview_text">
<description>
Gets the text displayed in the preview area.
@@ -39365,6 +39283,26 @@ Since: 3.18
<return></return>
</function>
+<function name="gtk_font_chooser_set_level">
+<description>
+Sets the desired level of granularity for selecting fonts.
+
+Since: 3.94
+
+</description>
+<parameters>
+<parameter name="fontchooser">
+<parameter_description> a #GtkFontChooser
+</parameter_description>
+</parameter>
+<parameter name="level">
+<parameter_description> the desired level of granularity
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_font_chooser_set_preview_text">
<description>
Sets the text displayed in the preview area.
@@ -48961,8 +48899,17 @@ Calling
`gtk_list_store_insert_with_values (list_store, iter, position...)`
has the same effect as calling
|[<!-- language="C" -->
+static void
+insert_value (GtkListStore *list_store,
+GtkTreeIter *iter,
+int position)
+{
gtk_list_store_insert (list_store, iter, position);
-gtk_list_store_set (list_store, iter, ...);
+gtk_list_store_set (list_store,
+iter
+// ...
+);
+}
]|
with the difference that the former will only emit a row_inserted signal,
while the latter will emit row_inserted, row_changed and, if the list store
@@ -53051,7 +52998,8 @@ GtkWidget **child;
notebook = gtk_drag_get_source_widget (context);
child = (void*) gtk_selection_data_get_data (data);
-process_widget (*child);
+// process_widget (*child);
+
gtk_notebook_detach_tab (GTK_NOTEBOOK (notebook), *child);
}
]|
@@ -60729,9 +60677,9 @@ A common way to set up a group of radio buttons is the following:
GtkRadioButton *radio_button;
GtkRadioButton *last_button;
-while ( ...more buttons to add... )
+while (some_condition)
{
-radio_button = gtk_radio_button_new (...);
+radio_button = gtk_radio_button_new (NULL);
gtk_radio_button_join_group (radio_button, last_button);
last_button = radio_button;
@@ -66144,10 +66092,19 @@ GtkSearchBar *bar = GTK_SEARCH_BAR (user_data);
return gtk_search_bar_handle_event (bar, event);
}
+static void
+create_toplevel (void)
+{
+GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+GtkWindow *search_bar = gtk_search_bar_new ();
+
+// Add more widgets to the window...
+
g_signal_connect (window,
"key-press-event",
G_CALLBACK (on_key_press_event),
search_bar);
+}
]|
Since: 3.10
@@ -67369,7 +67326,7 @@ Since: 3.90
</parameter_description>
</parameter>
</parameters>
-<return> %TRUE is @bounds is entirely outside the clip region
+<return> %TRUE if @bounds is entirely outside the clip region
</return>
</function>
@@ -71773,7 +71730,7 @@ Creates a new text buffer.
<function name="gtk_text_buffer_paste_clipboard">
<description>
-Pastes the contents of a clipboard. If @override_location is %NULL, the
+Pastes the contents of a clipboard. If @override_location is %NULL, the
pasted text will be inserted at the cursor position, or the buffer selection
will be replaced if the selection is non-empty.
@@ -75752,9 +75709,13 @@ static gboolean
gtk_foo_bar_key_press_event (GtkWidget *widget,
GdkEventKey *event)
{
-if ((key->keyval == GDK_KEY_Return || key->keyval == GDK_KEY_KP_Enter))
+guint keyval;
+
+gdk_event_get_keyval ((GdkEvent*)event, &keyval);
+
+if (keyval == GDK_KEY_Return || keyval == GDK_KEY_KP_Enter)
{
-if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (view), event))
+if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (widget), event))
return TRUE;
}
@@ -82764,7 +82725,7 @@ gtk_tree_view_column_set_attributes() on the newly created #GtkTreeViewColumn.
Here’s a simple example:
|[<!-- language="C" -->
enum { TEXT_COLUMN, COLOR_COLUMN, N_COLUMNS };
-...
+// ...
{
GtkTreeViewColumn *column;
GtkCellRenderer *renderer = gtk_cell_renderer_text_new ();
@@ -87887,13 +87848,20 @@ window was inside a #GtkWindow-derived widget which was in turn
inside the toplevel #GtkWindow.
To reliably find the toplevel #GtkWindow, use
-gtk_widget_get_toplevel() and call gtk_widget_is_toplevel()
-on the result.
+gtk_widget_get_toplevel() and call GTK_IS_WINDOW()
+on the result. For instance, to get the title of a widget's toplevel
+window, one might use:
|[<!-- language="C" -->
+static const char *
+get_widget_toplevel_title (GtkWidget *widget)
+{
GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
-if (gtk_widget_is_toplevel (toplevel))
+if (GTK_IS_WINDOW (toplevel))
{
-// Perform action on toplevel.
+return gtk_window_get_title (GTK_WINDOW (toplevel));
+}
+
+return NULL;
}
]|
@@ -88649,6 +88617,9 @@ As an example, if @orientation is GTK_ORIENTATION_HORIZONTAL and @for_size is 30
this functions will compute the minimum and natural width of @widget if
it is allocated at a height of 300 pixels.
+See [GtkWidget’s geometry management section][geometry-management] for
+a more details on implementing #GtkWidgetClass.measure().
+
Since: 3.90
</description>
@@ -91400,8 +91371,7 @@ 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 “window-state-event” signal
-on #GtkWidget.
+You can track iconification via the #GdkWindow::state property.
</description>
<parameters>
@@ -91423,8 +91393,7 @@ again, and not all window managers honor requests to fullscreen
windows. But normally the window will end up fullscreen. Just
don’t write code that crashes if not.
-You can track the fullscreen state via the “window-state-event” signal
-on #GtkWidget.
+You can track iconification via the #GdkWindow::state property
Since: 2.2
@@ -91443,8 +91412,7 @@ Since: 2.2
Asks to place @window in the fullscreen state. Note that you shouldn't assume
the window is definitely full screen afterward.
-You can track the fullscreen state via the "window-state-event" signal
-on #GtkWidget.
+You can track iconification via the #GdkWindow::state property
</description>
<parameters>
@@ -92328,8 +92296,7 @@ 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 “window-state-event” signal
-on #GtkWidget.
+You can track iconification via the #GdkWindow::state property.
</description>
<parameters>
@@ -92418,9 +92385,8 @@ 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 maximization via the “window-state-event” signal
-on #GtkWidget, or by listening to notifications on the
-#GtkWindow:is-maximized property.
+You can track iconification via the #GdkWindow::state property
+or by listening to notifications on the #GtkWindow:is-maximized property.
</description>
<parameters>
@@ -93356,8 +93322,7 @@ It’s permitted to call this function before showing a window,
in which case the window will be kept above when it appears onscreen
initially.
-You can track the above state via the “window-state-event” signal
-on #GtkWidget.
+You can track iconification via the #GdkWindow::state property
Note that, according to the
[Extended Window Manager Hints Specification](http://www.freedesktop.org/Standards/wm-spec),
@@ -93395,8 +93360,7 @@ It’s permitted to call this function before showing a window,
in which case the window will be kept below when it appears onscreen
initially.
-You can track the below state via the “window-state-event” signal
-on #GtkWidget.
+You can track iconification via the #GdkWindow::state property
Note that, according to the
[Extended Window Manager Hints Specification](http://www.freedesktop.org/Standards/wm-spec),
@@ -93773,8 +93737,7 @@ write code that crashes if not.
It’s permitted to call this function before showing a window.
-You can track stickiness via the “window-state-event” signal
-on #GtkWidget.
+You can track iconification via the #GdkWindow::state property.
</description>
<parameters>
@@ -93796,8 +93759,7 @@ again, and not all window managers honor requests to unfullscreen
windows. But normally the window will end up restored to its normal
state. Just don’t write code that crashes if not.
-You can track the fullscreen state via the “window-state-event” signal
-on #GtkWidget.
+You can track iconification via the #GdkWindow::state property
Since: 2.2
@@ -93820,8 +93782,7 @@ 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 maximization via the “window-state-event” signal
-on #GtkWidget.
+You can track iconification via the #GdkWindow::state property
</description>
<parameters>
@@ -93842,8 +93803,7 @@ 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 stickiness via the “window-state-event” signal
-on #GtkWidget.
+You can track iconification via the #GdkWindow::state property.
</description>
<parameters>
diff --git a/gtk/src/gtk_docs_override.xml b/gtk/src/gtk_docs_override.xml
index f8e28fe..5684704 100644
--- a/gtk/src/gtk_docs_override.xml
+++ b/gtk/src/gtk_docs_override.xml
@@ -121,6 +121,7 @@
<substitute_enumerator_name from_prefix="GTK_WRAP_" to_prefix="Gtk::WrapMode::" />
<substitute_enumerator_name from_prefix="GTK_TREE_VIEW_GRID_LINES_" to_prefix="Gtk::TreeView::GridLines::" />
<substitute_enumerator_name from_prefix="GTK_SORT_" to_prefix="Gtk::SortType::" />
+<substitute_enumerator_name from_prefix="GTK_FONT_CHOOSER_LEVEL_" to_prefix="Gtk::FontChooser::Level::" />
<!-- GdkWindowWindowClass is not wrapped in gtkmm. Don't substitute its enumerator names. -->
<substitute_enumerator_name from="GDK_INPUT_ONLY" to="GDK_INPUT_ONLY" />
<substitute_enumerator_name from="GDK_INPUT_OUTPUT" to="GDK_INPUT_OUTPUT" />
@@ -1713,22 +1714,6 @@ constructed by the Gtk::Builder instance.
</function>
<!-- TODO: Remove this signal description when gtk+'s description contains -->
-<!-- the correct number of parameters (@open_flags). -->
-<signal name="GtkPlacesSidebar::show-starred-location">
-<parameters>
-<parameter name="sidebar">
-<parameter_description> the object which received the signal.
-</parameter_description>
-</parameter>
-<parameter name="open_flags">
-<parameter_description> a single value from #GtkPlacesOpenFlags specifying how it should be opened.
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</signal>
-
-<!-- TODO: Remove this signal description when gtk+'s description contains -->
<!-- the correct number of parameters (no @info). -->
<signal name="GtkWidget::drag-data-get">
<description>
diff --git a/gtk/src/gtk_enums.defs b/gtk/src/gtk_enums.defs
index 2d4878d..4c362be 100644
--- a/gtk/src/gtk_enums.defs
+++ b/gtk/src/gtk_enums.defs
@@ -1607,6 +1607,25 @@
)
)
+;; From gtkfontchooser.h
+
+;; Original typedef:
+;; typedef enum {
+;; GTK_FONT_CHOOSER_LEVEL_FONT,
+;; GTK_FONT_CHOOSER_LEVEL_FACE,
+;; GTK_FONT_CHOOSER_LEVEL_FAMILY
+;; } GtkFontChooserLevel;
+
+(define-enum-extended FontChooserLevel
+ (in-module "Gtk")
+ (c-name "GtkFontChooserLevel")
+ (values
+ '("font" "GTK_FONT_CHOOSER_LEVEL_FONT" "0")
+ '("face" "GTK_FONT_CHOOSER_LEVEL_FACE" "1")
+ '("family" "GTK_FONT_CHOOSER_LEVEL_FAMILY" "2")
+ )
+)
+
;; From gtkfontchooserutils.h
;; Original typedef:
@@ -1616,6 +1635,9 @@
;; GTK_FONT_CHOOSER_PROP_FONT_DESC,
;; GTK_FONT_CHOOSER_PROP_PREVIEW_TEXT,
;; GTK_FONT_CHOOSER_PROP_SHOW_PREVIEW_ENTRY,
+;; GTK_FONT_CHOOSER_PROP_LEVEL,
+;; GTK_FONT_CHOOSER_PROP_FONT_FEATURES,
+;; GTK_FONT_CHOOSER_PROP_LANGUAGE,
;; GTK_FONT_CHOOSER_PROP_LAST
;; } GtkFontChooserProp;
@@ -1628,7 +1650,10 @@
'("font-desc" "GTK_FONT_CHOOSER_PROP_FONT_DESC" "16386")
'("preview-text" "GTK_FONT_CHOOSER_PROP_PREVIEW_TEXT" "16387")
'("show-preview-entry" "GTK_FONT_CHOOSER_PROP_SHOW_PREVIEW_ENTRY" "16388")
- '("last" "GTK_FONT_CHOOSER_PROP_LAST" "16389")
+ '("level" "GTK_FONT_CHOOSER_PROP_LEVEL" "16389")
+ '("font-features" "GTK_FONT_CHOOSER_PROP_FONT_FEATURES" "16390")
+ '("language" "GTK_FONT_CHOOSER_PROP_LANGUAGE" "16391")
+ '("last" "GTK_FONT_CHOOSER_PROP_LAST" "16392")
)
)
@@ -2514,8 +2539,6 @@
;; Original typedef:
;; typedef enum
;; {
-;; GTK_TEXT_VIEW_LAYER_BELOW,
-;; GTK_TEXT_VIEW_LAYER_ABOVE,
;; GTK_TEXT_VIEW_LAYER_BELOW_TEXT,
;; GTK_TEXT_VIEW_LAYER_ABOVE_TEXT
;; } GtkTextViewLayer;
@@ -2524,10 +2547,8 @@
(in-module "Gtk")
(c-name "GtkTextViewLayer")
(values
- '("below" "GTK_TEXT_VIEW_LAYER_BELOW" "0")
- '("above" "GTK_TEXT_VIEW_LAYER_ABOVE" "1")
- '("below-text" "GTK_TEXT_VIEW_LAYER_BELOW_TEXT" "2")
- '("above-text" "GTK_TEXT_VIEW_LAYER_ABOVE_TEXT" "3")
+ '("below-text" "GTK_TEXT_VIEW_LAYER_BELOW_TEXT" "0")
+ '("above-text" "GTK_TEXT_VIEW_LAYER_ABOVE_TEXT" "1")
)
)
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index 8b5b7e0..bfe0283 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -2101,6 +2101,17 @@
)
)
+(define-enum FontChooserLevel
+ (in-module "Gtk")
+ (c-name "GtkFontChooserLevel")
+ (gtype-id "GTK_TYPE_FONT_CHOOSER_LEVEL")
+ (values
+ '("font" "GTK_FONT_CHOOSER_LEVEL_FONT")
+ '("face" "GTK_FONT_CHOOSER_LEVEL_FACE")
+ '("family" "GTK_FONT_CHOOSER_LEVEL_FAMILY")
+ )
+)
+
(define-enum FontChooserProp
(in-module "Gtk")
(c-name "GtkFontChooserProp")
@@ -2111,6 +2122,9 @@
'("font-desc" "GTK_FONT_CHOOSER_PROP_FONT_DESC")
'("preview-text" "GTK_FONT_CHOOSER_PROP_PREVIEW_TEXT")
'("show-preview-entry" "GTK_FONT_CHOOSER_PROP_SHOW_PREVIEW_ENTRY")
+ '("level" "GTK_FONT_CHOOSER_PROP_LEVEL")
+ '("font-features" "GTK_FONT_CHOOSER_PROP_FONT_FEATURES")
+ '("language" "GTK_FONT_CHOOSER_PROP_LANGUAGE")
'("last" "GTK_FONT_CHOOSER_PROP_LAST")
)
)
@@ -2608,8 +2622,6 @@
(c-name "GtkTextViewLayer")
(gtype-id "GTK_TYPE_TEXT_VIEW_LAYER")
(values
- '("below" "GTK_TEXT_VIEW_LAYER_BELOW")
- '("above" "GTK_TEXT_VIEW_LAYER_ABOVE")
'("below-text" "GTK_TEXT_VIEW_LAYER_BELOW_TEXT")
'("above-text" "GTK_TEXT_VIEW_LAYER_ABOVE_TEXT")
)
@@ -11049,51 +11061,6 @@
)
)
-(define-method get_font_name
- (of-object "GtkFontButton")
- (c-name "gtk_font_button_get_font_name")
- (return-type "const-gchar*")
-)
-
-(define-method set_font_name
- (of-object "GtkFontButton")
- (c-name "gtk_font_button_set_font_name")
- (return-type "gboolean")
- (parameters
- '("const-gchar*" "fontname")
- )
-)
-
-(define-method get_show_style
- (of-object "GtkFontButton")
- (c-name "gtk_font_button_get_show_style")
- (return-type "gboolean")
-)
-
-(define-method set_show_style
- (of-object "GtkFontButton")
- (c-name "gtk_font_button_set_show_style")
- (return-type "none")
- (parameters
- '("gboolean" "show_style")
- )
-)
-
-(define-method get_show_size
- (of-object "GtkFontButton")
- (c-name "gtk_font_button_get_show_size")
- (return-type "gboolean")
-)
-
-(define-method set_show_size
- (of-object "GtkFontButton")
- (c-name "gtk_font_button_set_show_size")
- (return-type "none")
- (parameters
- '("gboolean" "show_size")
- )
-)
-
;; From gtkfontchooserdialog.h
@@ -11226,6 +11193,33 @@
(return-type "PangoFontMap*")
)
+(define-method set_level
+ (of-object "GtkFontChooser")
+ (c-name "gtk_font_chooser_set_level")
+ (return-type "none")
+ (parameters
+ '("GtkFontChooserLevel" "level")
+ )
+)
+
+(define-method get_level
+ (of-object "GtkFontChooser")
+ (c-name "gtk_font_chooser_get_level")
+ (return-type "GtkFontChooserLevel")
+)
+
+(define-method get_font_features
+ (of-object "GtkFontChooser")
+ (c-name "gtk_font_chooser_get_font_features")
+ (return-type "char*")
+)
+
+(define-method get_language
+ (of-object "GtkFontChooser")
+ (c-name "gtk_font_chooser_get_language")
+ (return-type "char*")
+)
+
;; From gtkfontchooserutils.h
@@ -23017,6 +23011,36 @@
)
)
+(define-method append_linear_gradient
+ (of-object "GtkSnapshot")
+ (c-name "gtk_snapshot_append_linear_gradient")
+ (return-type "none")
+ (parameters
+ '("const-graphene_rect_t*" "bounds")
+ '("const-graphene_point_t*" "start_point")
+ '("const-graphene_point_t*" "end_point")
+ '("const-GskColorStop*" "stops")
+ '("gsize" "n_stops")
+ '("const-char*" "name")
+ )
+ (varargs #t)
+)
+
+(define-method append_repeating_linear_gradient
+ (of-object "GtkSnapshot")
+ (c-name "gtk_snapshot_append_repeating_linear_gradient")
+ (return-type "none")
+ (parameters
+ '("const-graphene_rect_t*" "bounds")
+ '("const-graphene_point_t*" "start_point")
+ '("const-graphene_point_t*" "end_point")
+ '("const-GskColorStop*" "stops")
+ '("gsize" "n_stops")
+ '("const-char*" "name")
+ )
+ (varargs #t)
+)
+
;; From gtkspinbutton.h
@@ -32277,6 +32301,50 @@
+;; From language-names.h
+
+(define-function get_language_name
+ (c-name "get_language_name")
+ (return-type "const-char*")
+ (parameters
+ '("PangoLanguage*" "language")
+ )
+)
+
+(define-function get_language_name_for_tag
+ (c-name "get_language_name_for_tag")
+ (return-type "const-char*")
+ (parameters
+ '("guint32" "tag")
+ )
+)
+
+
+
+;; From open-type-layout.h
+
+
+
+;; From script-names.h
+
+(define-function get_script_name
+ (c-name "get_script_name")
+ (return-type "const-char*")
+ (parameters
+ '("GUnicodeScript" "script")
+ )
+)
+
+(define-function get_script_name_for_tag
+ (c-name "get_script_name_for_tag")
+ (return-type "const-char*")
+ (parameters
+ '("guint32" "tag")
+ )
+)
+
+
+
;; From xembed.h
@@ -32634,6 +32702,11 @@
(return-type "GType")
)
+(define-function gtk_font_chooser_level_get_type
+ (c-name "gtk_font_chooser_level_get_type")
+ (return-type "GType")
+)
+
(define-function gtk_icon_lookup_flags_get_type
(c-name "gtk_icon_lookup_flags_get_type")
(return-type "GType")
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 90a8e01..7fe60de 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -3928,6 +3928,16 @@
(default-value "TRUE")
)
+(define-property accept-unpaired-release
+ (of-object "GtkFlowBox")
+ (prop-type "GParamBoolean")
+ (docs "Accept an unpaired release event")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
;; From GtkFlowBoxChild
(define-signal activate
@@ -3954,16 +3964,6 @@
(default-value "Pick a Font")
)
-(define-property font-name
- (of-object "GtkFontButton")
- (prop-type "GParamString")
- (docs "The name of the selected font")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "Sans 12")
-)
-
(define-property use-font
(of-object "GtkFontButton")
(prop-type "GParamBoolean")
@@ -3984,26 +3984,6 @@
(default-value "FALSE")
)
-(define-property show-style
- (of-object "GtkFontButton")
- (prop-type "GParamBoolean")
- (docs "Whether the selected font style is shown in the label")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "TRUE")
-)
-
-(define-property show-size
- (of-object "GtkFontButton")
- (prop-type "GParamBoolean")
- (docs "Whether selected font size is shown in the label")
- (readable #t)
- (writable #t)
- (construct-only #f)
- (default-value "TRUE")
-)
-
;; From GtkFontChooser
(define-signal font-activated
@@ -4034,6 +4014,36 @@
(construct-only #f)
)
+(define-property font-features
+ (of-object "GtkFontChooser")
+ (prop-type "GParamString")
+ (docs "Font features as a string")
+ (readable #t)
+ (writable #f)
+ (construct-only #f)
+ (default-value "")
+)
+
+(define-property language
+ (of-object "GtkFontChooser")
+ (prop-type "GParamString")
+ (docs "Language for which features have been selected")
+ (readable #t)
+ (writable #f)
+ (construct-only #f)
+ (default-value "")
+)
+
+(define-property level
+ (of-object "GtkFontChooser")
+ (prop-type "GParamEnum")
+ (docs "Whether to select family, face or font")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "GTK_FONT_CHOOSER_LEVEL_FONT")
+)
+
(define-property preview-text
(of-object "GtkFontChooser")
(prop-type "GParamString")
@@ -5410,6 +5420,16 @@
(default-value "TRUE")
)
+(define-property accept-unpaired-release
+ (of-object "GtkListBox")
+ (prop-type "GParamBoolean")
+ (docs "Accept unpaired release")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+ (default-value "FALSE")
+)
+
;; From GtkListBoxRow
(define-signal activate
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]