summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-05-19 23:39:18 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-05-22 17:25:26 -0400
commitfff2b3c71051bf30c175e9e50a54439812029a59 (patch)
tree40253a0e483a0efb4c31a101e3227868301f71e3
parent2d0957b7324c51144cee78c2c1aa33c38e7883d9 (diff)
downloadgtk+-fff2b3c71051bf30c175e9e50a54439812029a59.tar.gz
gdk: Clean up docs syntax
Replace leftover gtk-doc syntax (#Type) with backquotes.
-rw-r--r--gdk/gdk.c8
-rw-r--r--gdk/gdkapplaunchcontext.c2
-rw-r--r--gdk/gdkcairo.c12
-rw-r--r--gdk/gdkcairocontext.c2
-rw-r--r--gdk/gdkclipboard.c2
-rw-r--r--gdk/gdkcontentdeserializer.h2
-rw-r--r--gdk/gdkcontentformats.c4
-rw-r--r--gdk/gdkcontentprovider.c8
-rw-r--r--gdk/gdkcontentprovider.h4
-rw-r--r--gdk/gdkcontentproviderimpl.c2
-rw-r--r--gdk/gdkcontentserializer.c2
-rw-r--r--gdk/gdkcontentserializer.h2
-rw-r--r--gdk/gdkcursor.c2
-rw-r--r--gdk/gdkdevice.c4
-rw-r--r--gdk/gdkdevice.h4
-rw-r--r--gdk/gdkdevicepad.c2
-rw-r--r--gdk/gdkdisplay.c12
-rw-r--r--gdk/gdkdisplaymanager.c2
-rw-r--r--gdk/gdkdragsurface.c2
-rw-r--r--gdk/gdkdrawcontext.c4
-rw-r--r--gdk/gdkevents.c43
-rw-r--r--gdk/gdkeventsprivate.h24
-rw-r--r--gdk/gdkgl.c8
-rw-r--r--gdk/gdkkeys.c68
-rw-r--r--gdk/gdkmemorytexture.h2
-rw-r--r--gdk/gdkpaintable.c2
-rw-r--r--gdk/gdkpaintable.h2
-rw-r--r--gdk/gdkpipeiostream.c7
-rw-r--r--gdk/gdkpixbuf-drawable.c2
-rw-r--r--gdk/gdkpopup.c2
-rw-r--r--gdk/gdkrectangle.c4
-rw-r--r--gdk/gdkseat.c2
-rw-r--r--gdk/gdksurface.c4
-rw-r--r--gdk/gdktoplevel.c2
-rw-r--r--gdk/gdktoplevellayout.c28
-rw-r--r--gdk/gdktypes.h4
-rw-r--r--gdk/gdkvulkancontext.c2
-rw-r--r--gdk/macos/gdkdisplaylinksource.c4
-rw-r--r--gdk/wayland/gdkdisplay-wayland.c2
-rw-r--r--gdk/wayland/gdksurface-wayland.c4
-rw-r--r--gdk/win32/gdkcursor-win32.c14
-rw-r--r--gdk/win32/gdkdisplay-win32.c8
-rw-r--r--gdk/win32/gdkglcontext-win32.c2
-rw-r--r--gdk/win32/gdkwin32display.h8
-rw-r--r--gdk/x11/gdkcursor-x11.c14
-rw-r--r--gdk/x11/gdkdevicemanager-x11.c12
-rw-r--r--gdk/x11/gdkdisplay-x11.c71
-rw-r--r--gdk/x11/gdkdrag-x11.c2
-rw-r--r--gdk/x11/gdkglcontext-egl.c2
-rw-r--r--gdk/x11/gdkglcontext-glx.c2
-rw-r--r--gdk/x11/gdkkeys-x11.c8
-rw-r--r--gdk/x11/gdkmain-x11.c4
-rw-r--r--gdk/x11/gdkmonitor-x11.c2
-rw-r--r--gdk/x11/gdkproperty-x11.c8
-rw-r--r--gdk/x11/gdkscreen-x11.c16
-rw-r--r--gdk/x11/gdkselection-x11.c6
-rw-r--r--gdk/x11/gdksurface-x11.c32
-rw-r--r--gdk/x11/gdkvisual-x11.c10
-rw-r--r--gdk/x11/gdkx11display.h4
-rw-r--r--gdk/x11/gdkx11surface.h8
-rw-r--r--gdk/x11/gdkx11utils.h2
61 files changed, 266 insertions, 267 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 0970cbc8d1..0607d8f8e2 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -50,7 +50,7 @@
/**
* GDK_WINDOWING_X11:
*
- * The #GDK_WINDOWING_X11 macro is defined if the X11 backend
+ * The `GDK_WINDOWING_X11` macro is defined if the X11 backend
* is supported.
*
* Use this macro to guard code that is specific to the X11 backend.
@@ -59,7 +59,7 @@
/**
* GDK_WINDOWING_WIN32:
*
- * The #GDK_WINDOWING_WIN32 macro is defined if the Win32 backend
+ * The `GDK_WINDOWING_WIN32` macro is defined if the Win32 backend
* is supported.
*
* Use this macro to guard code that is specific to the Win32 backend.
@@ -68,7 +68,7 @@
/**
* GDK_WINDOWING_MACOS:
*
- * The #GDK_WINDOWING_MACOS macro is defined if the MacOS backend
+ * The `GDK_WINDOWING_MACOS` macro is defined if the MacOS backend
* is supported.
*
* Use this macro to guard code that is specific to the MacOS backend.
@@ -77,7 +77,7 @@
/**
* GDK_WINDOWING_WAYLAND:
*
- * The #GDK_WINDOWING_WAYLAND macro is defined if the Wayland backend
+ * The `GDK_WINDOWING_WAYLAND` macro is defined if the Wayland backend
* is supported.
*
* Use this macro to guard code that is specific to the Wayland backend.
diff --git a/gdk/gdkapplaunchcontext.c b/gdk/gdkapplaunchcontext.c
index b842026a74..9c9e99d58e 100644
--- a/gdk/gdkapplaunchcontext.c
+++ b/gdk/gdkapplaunchcontext.c
@@ -237,7 +237,7 @@ gdk_app_launch_context_set_timestamp (GdkAppLaunchContext *context,
/**
* gdk_app_launch_context_set_icon:
* @context: a `GdkAppLaunchContext`
- * @icon: (nullable): a #GIcon
+ * @icon: (nullable): a `GIcon`
*
* Sets the icon for applications that are launched with this
* context.
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 3db47ac755..955a31cbf1 100644
--- a/gdk/gdkcairo.c
+++ b/gdk/gdkcairo.c
@@ -26,9 +26,9 @@
/**
* gdk_cairo_set_source_rgba:
* @cr: a cairo context
- * @rgba: a #GdkRGBA
+ * @rgba: a `GdkRGBA`
*
- * Sets the specified #GdkRGBA as the source color of @cr.
+ * Sets the specified `GdkRGBA` as the source color of @cr.
*/
void
gdk_cairo_set_source_rgba (cairo_t *cr,
@@ -47,7 +47,7 @@ gdk_cairo_set_source_rgba (cairo_t *cr,
/**
* gdk_cairo_rectangle:
* @cr: a cairo context
- * @rectangle: a #GdkRectangle
+ * @rectangle: a `GdkRectangle`
*
* Adds the given rectangle to the current path of @cr.
*/
@@ -66,7 +66,7 @@ gdk_cairo_rectangle (cairo_t *cr,
/**
* gdk_cairo_region:
* @cr: a cairo context
- * @region: a #cairo_region_t
+ * @region: a `cairo_region_t`
*
* Adds the given region to the current path of @cr.
*/
@@ -185,7 +185,7 @@ gdk_cairo_surface_paint_pixbuf (cairo_surface_t *surface,
/**
* gdk_cairo_set_source_pixbuf:
* @cr: a cairo context
- * @pixbuf: a #GdkPixbuf
+ * @pixbuf: a `GdkPixbuf`
* @pixbuf_x: X coordinate of location to place upper left corner of @pixbuf
* @pixbuf_y: Y coordinate of location to place upper left corner of @pixbuf
*
@@ -232,7 +232,7 @@ gdk_cairo_set_source_pixbuf (cairo_t *cr,
* You must explicitly check the return value of you want to handle
* that case.
*
- * Returns: %TRUE if the extents fit in a #GdkRectangle, %FALSE if not
+ * Returns: %TRUE if the extents fit in a `GdkRectangle`, %FALSE if not
*/
gboolean
_gdk_cairo_surface_extents (cairo_surface_t *surface,
diff --git a/gdk/gdkcairocontext.c b/gdk/gdkcairocontext.c
index bfb7c24452..995ade74a4 100644
--- a/gdk/gdkcairocontext.c
+++ b/gdk/gdkcairocontext.c
@@ -59,7 +59,7 @@ gdk_cairo_context_init (GdkCairoContext *self)
/**
* gdk_cairo_context_cairo_create:
- * @self: a #GdkCairoContext that is currently drawing
+ * @self: a `GdkCairoContext` that is currently drawing
*
* Retrieves a Cairo context to be used to draw on the `GdkSurface`
* of @context.
diff --git a/gdk/gdkclipboard.c b/gdk/gdkclipboard.c
index 1f97994fd5..18b5b7b490 100644
--- a/gdk/gdkclipboard.c
+++ b/gdk/gdkclipboard.c
@@ -833,7 +833,7 @@ gdk_clipboard_read_value_internal (GdkClipboard *clipboard,
* @clipboard: a `GdkClipboard`
* @type: a `GType` to read
* @io_priority: the I/O priority of the request
- * @cancellable: (nullable): optional #GCancellable object, %NULL to ignore.
+ * @cancellable: (nullable): optional `GCancellable` object
* @callback: (scope async): callback to call when the request is satisfied
* @user_data: (closure): the data to pass to callback function
*
diff --git a/gdk/gdkcontentdeserializer.h b/gdk/gdkcontentdeserializer.h
index 4ff7028424..9c3946e0a1 100644
--- a/gdk/gdkcontentdeserializer.h
+++ b/gdk/gdkcontentdeserializer.h
@@ -36,7 +36,7 @@ typedef struct _GdkContentDeserializer GdkContentDeserializer;
/**
* GdkContentDeserializeFunc:
- * @deserializer: a #GdkContentDeserializer
+ * @deserializer: a `GdkContentDeserializer`
*
* The type of a function that can be registered with gdk_content_register_deserializer().
*
diff --git a/gdk/gdkcontentformats.c b/gdk/gdkcontentformats.c
index d7bc490465..8a0ca88f7e 100644
--- a/gdk/gdkcontentformats.c
+++ b/gdk/gdkcontentformats.c
@@ -411,7 +411,7 @@ gdk_content_formats_match_mime_type (const GdkContentFormats *first,
*
* Checks if a given `GType` is part of the given @formats.
*
- * Returns: %TRUE if the #GType was found
+ * Returns: %TRUE if the `GType` was found
*/
gboolean
gdk_content_formats_contain_gtype (const GdkContentFormats *formats,
@@ -458,7 +458,7 @@ gdk_content_formats_contain_mime_type (const GdkContentFormats *formats,
*
* Gets the `GType`s included in @formats.
*
- * Note that @formats may not contain any #GTypes, in particular when
+ * Note that @formats may not contain any `GType`s, in particular when
* they are empty. In that case %NULL will be returned.
*
* Returns: (transfer none) (nullable) (array length=n_gtypes zero-terminated=1):
diff --git a/gdk/gdkcontentprovider.c b/gdk/gdkcontentprovider.c
index af96695c84..97368a1dd6 100644
--- a/gdk/gdkcontentprovider.c
+++ b/gdk/gdkcontentprovider.c
@@ -218,7 +218,7 @@ gdk_content_provider_init (GdkContentProvider *provider)
/**
* gdk_content_provider_ref_formats: (attributes org.gtk.Method.get_property=formats)
- * @provider: a #GdkContentProvider
+ * @provider: a `GdkContentProvider`
*
* Gets the formats that the provider can provide its current contents in.
*
@@ -234,7 +234,7 @@ gdk_content_provider_ref_formats (GdkContentProvider *provider)
/**
* gdk_content_provider_ref_storable_formats: (attributes org.gtk.Method.get_property=storable-formats)
- * @provider: a #GdkContentProvider
+ * @provider: a `GdkContentProvider`
*
* Gets the formats that the provider suggests other applications to store
* the data in.
@@ -288,7 +288,7 @@ gdk_content_provider_content_changed (GdkContentProvider *provider)
*
* The given mime type does not need to be listed in the formats returned by
* [method@Gdk.ContentProvider.ref_formats]. However, if the given `GType` is
- * not supported, #G_IO_ERROR_NOT_SUPPORTED will be reported.
+ * not supported, `G_IO_ERROR_NOT_SUPPORTED` will be reported.
*
* The given @stream will not be closed.
*/
@@ -351,7 +351,7 @@ gdk_content_provider_write_mime_type_finish (GdkContentProvider *provider,
* provided in. This given `GType` does not need to be listed in the formats
* returned by [method@Gdk.ContentProvider.ref_formats]. However, if the
* given `GType` is not supported, this operation can fail and
- * #G_IO_ERROR_NOT_SUPPORTED will be reported.
+ * `G_IO_ERROR_NOT_SUPPORTED` will be reported.
*
* Returns: %TRUE if the value was set successfully. Otherwise
* @error will be set to describe the failure.
diff --git a/gdk/gdkcontentprovider.h b/gdk/gdkcontentprovider.h
index f4be04238e..d9c6370fed 100644
--- a/gdk/gdkcontentprovider.h
+++ b/gdk/gdkcontentprovider.h
@@ -45,9 +45,9 @@ struct _GdkContentProvider
/**
* GdkContentProviderClass:
- * @content_changed: Signal class closure for #GdkContentProvider::content-changed
+ * @content_changed: Signal class closure for `GdkContentProvider::content-changed`
*
- * Class structure for #GdkContentProvider.
+ * Class structure for `GdkContentProvider`.
*/
struct _GdkContentProviderClass
{
diff --git a/gdk/gdkcontentproviderimpl.c b/gdk/gdkcontentproviderimpl.c
index 25c5404a17..2275792ac3 100644
--- a/gdk/gdkcontentproviderimpl.c
+++ b/gdk/gdkcontentproviderimpl.c
@@ -394,7 +394,7 @@ gdk_content_provider_union_init (GdkContentProviderUnion *self)
/**
* gdk_content_provider_new_union:
* @providers: (nullable) (array length=n_providers) (transfer full):
- * The #GdkContentProviders to present the union of
+ * The `GdkContentProvider`s to present the union of
* @n_providers: the number of providers
*
* Creates a content provider that represents all the given @providers.
diff --git a/gdk/gdkcontentserializer.c b/gdk/gdkcontentserializer.c
index 29f9b2d203..ccfb033a86 100644
--- a/gdk/gdkcontentserializer.c
+++ b/gdk/gdkcontentserializer.c
@@ -533,7 +533,7 @@ serialize_not_found (GdkContentSerializer *serializer)
* @mime_type: the mime type to serialize to
* @value: the content to serialize
* @io_priority: the I/O priority of the operation
- * @cancellable: (nullable): optional #GCancellable object
+ * @cancellable: (nullable): optional `GCancellable` object
* @callback: (scope async): callback to call when the operation is done
* @user_data: (closure): data to pass to the callback function
*
diff --git a/gdk/gdkcontentserializer.h b/gdk/gdkcontentserializer.h
index 17b5c7c36e..f7dedccebf 100644
--- a/gdk/gdkcontentserializer.h
+++ b/gdk/gdkcontentserializer.h
@@ -36,7 +36,7 @@ typedef struct _GdkContentSerializer GdkContentSerializer;
/**
* GdkContentSerializeFunc:
- * @serializer: a #GdkContentSerializer
+ * @serializer: a `GdkContentSerializer`
*
* The type of a function that can be registered with gdk_content_register_serializer().
*
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c
index 105009ce82..1c9fc9b4b1 100644
--- a/gdk/gdkcursor.c
+++ b/gdk/gdkcursor.c
@@ -410,7 +410,7 @@ gdk_cursor_get_name (GdkCursor *cursor)
/**
* gdk_cursor_get_texture:
- * @cursor: a #GdkCursor.
+ * @cursor: a `GdkCursor`
*
* Returns the texture for the cursor.
*
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c
index f3e754ee03..3869b6d9bc 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -107,7 +107,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
/**
* GdkDevice:display: (attributes org.gtk.Property.get=gdk_device_get_display)
*
- * The #GdkDisplay the #GdkDevice pertains to.
+ * The `GdkDisplay` the `GdkDevice` pertains to.
*/
device_props[PROP_DISPLAY] =
g_param_spec_object ("display",
@@ -1190,7 +1190,7 @@ gdk_device_set_seat (GdkDevice *device,
/**
* gdk_device_get_seat: (attributes org.gtk.Method.get_property=seat)
- * @device: A #GdkDevice
+ * @device: A `GdkDevice`
*
* Returns the `GdkSeat` the device belongs to.
*
diff --git a/gdk/gdkdevice.h b/gdk/gdkdevice.h
index 156d5d6eba..1a849a8ac4 100644
--- a/gdk/gdkdevice.h
+++ b/gdk/gdkdevice.h
@@ -64,11 +64,11 @@ typedef enum
/**
* GdkTimeCoord:
- * @time: The timestamp for this event.
+ * @time: The timestamp for this event
* @flags: Flags indicating what axes are present
* @axes: (array fixed-size=12): axis values
*
- * A #GdkTimeCoord stores a single event in a motion history.
+ * A `GdkTimeCoord` stores a single event in a motion history.
*/
struct _GdkTimeCoord
{
diff --git a/gdk/gdkdevicepad.c b/gdk/gdkdevicepad.c
index 16ed4d58f9..ed0bcb9ab4 100644
--- a/gdk/gdkdevicepad.c
+++ b/gdk/gdkdevicepad.c
@@ -36,7 +36,7 @@
* (current) for each given group, different groups may have different
* current modes. The number of available modes in a group can be found
* out through [method@Gdk.DevicePad.get_group_n_modes], and the current mode
- * for a given group will be notified through events of type #GDK_PAD_GROUP_MODE.
+ * for a given group will be notified through events of type `GDK_PAD_GROUP_MODE`.
*/
#include "config.h"
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index a88e9437be..0def0da75c 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -1141,13 +1141,13 @@ gdk_display_create_surface (GdkDisplay *display,
x, y, width, height);
}
-/**
+/*< private >
* gdk_display_get_keymap:
* @display: the `GdkDisplay`
*
- * Returns the #GdkKeymap attached to @display.
+ * Returns the `GdkKeymap` attached to @display.
*
- * Returns: (transfer none): the #GdkKeymap attached to @display.
+ * Returns: (transfer none): the `GdkKeymap` attached to @display.
*/
GdkKeymap *
gdk_display_get_keymap (GdkDisplay *display)
@@ -1159,8 +1159,8 @@ gdk_display_get_keymap (GdkDisplay *display)
/*< private >
* gdk_display_make_gl_context_current:
- * @display: a #GdkDisplay
- * @context: (optional): a #GdkGLContext
+ * @display: a `GdkDisplay`
+ * @context: (optional): a `GdkGLContext`
*
* Makes the given @context the current GL context, or unsets
* the current GL context if @context is %NULL.
@@ -1365,7 +1365,7 @@ gdk_display_list_seats (GdkDisplay *display)
* You can listen to the GListModel::items-changed signal on
* this list to monitor changes to the monitor of this display.
*
- * Returns: (transfer none): a #GListModel of `GdkMonitor`
+ * Returns: (transfer none): a `GListModel` of `GdkMonitor`
*/
GListModel *
gdk_display_get_monitors (GdkDisplay *self)
diff --git a/gdk/gdkdisplaymanager.c b/gdk/gdkdisplaymanager.c
index c7e3769e92..6935f7ada9 100644
--- a/gdk/gdkdisplaymanager.c
+++ b/gdk/gdkdisplaymanager.c
@@ -76,7 +76,7 @@
*
* When writing backend-specific code that is supposed to work with
* multiple GDK backends, you have to consider both compile time and
- * runtime. At compile time, use the #GDK_WINDOWING_X11, #GDK_WINDOWING_WIN32
+ * runtime. At compile time, use the `GDK_WINDOWING_X11`, `GDK_WINDOWING_WIN32`
* macros, etc. to find out which backends are present in the GDK library
* you are building your application against. At runtime, use type-check
* macros like GDK_IS_X11_DISPLAY() to find out which backend is in use:
diff --git a/gdk/gdkdragsurface.c b/gdk/gdkdragsurface.c
index 7000337551..ec5431b03e 100644
--- a/gdk/gdkdragsurface.c
+++ b/gdk/gdkdragsurface.c
@@ -26,7 +26,7 @@
/**
* GdkDragSurface:
*
- * A #GdkDragSurface is an interface for surfaces used during DND.
+ * A `GdkDragSurface` is an interface for surfaces used during DND.
*/
/**
diff --git a/gdk/gdkdrawcontext.c b/gdk/gdkdrawcontext.c
index a0942add71..c1833468a8 100644
--- a/gdk/gdkdrawcontext.c
+++ b/gdk/gdkdrawcontext.c
@@ -237,7 +237,7 @@ gdk_draw_context_get_display (GdkDrawContext *context)
*
* Retrieves the surface that @context is bound to.
*
- * Returns: (nullable) (transfer none): the #GdkSurface
+ * Returns: (nullable) (transfer none): a `GdkSurface`
*/
GdkSurface *
gdk_draw_context_get_surface (GdkDrawContext *context)
@@ -382,7 +382,7 @@ gdk_draw_context_end_frame (GdkDrawContext *context)
/**
* gdk_draw_context_get_frame_region:
- * @context: a #GdkDrawContext
+ * @context: a `GdkDrawContext`
*
* Retrieves the region that is currently being repainted.
*
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 4775c95635..99e3dc8941 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -258,7 +258,7 @@ gdk_event_get_type (void)
* @instance_size: the size of the instance of a GdkEvent subclass
* @instance_init: (nullable): the function to initialize the instance data
* @finalize: (nullable): the function to free the instance data
- * @get_state: (nullable): the function to retrieve the #GdkModifierType
+ * @get_state: (nullable): the function to retrieve the `GdkModifierType`:w
* associated to the event
* @get_position: (nullable): the function to retrieve the event coordinates
* @get_sequence: (nullable): the function to retrieve the event sequence
@@ -358,7 +358,7 @@ static GType gdk_event_types[GDK_EVENT_LAST];
* Similarly to %G_DEFINE_TYPE_WITH_CODE, this macro will generate a `get_type()`
* function that registers the event type.
*
- * You can specify code to be run after the type registration; the #GType of
+ * You can specify code to be run after the type registration; the `GType` of
* the event is available in the `gdk_define_event_type_id` variable.
*/
#define GDK_DEFINE_EVENT_TYPE(TypeName, type_name, type_info, _C_) \
@@ -382,8 +382,8 @@ type_name ## _get_type (void) \
/*< private >
* gdk_event_alloc:
* @event_type: the `GdkEvent`Type to allocate
- * @surface: (nullable): the #GdkSurface of the event
- * @device: (nullable): the #GdkDevice of the event
+ * @surface: (nullable): the `GdkSurface` of the event
+ * @device: (nullable): the `GdkDevice` of the event
* @time_: the event serial
*
* Allocates a `GdkEvent` for the given @event_type, and sets its
@@ -496,14 +496,13 @@ _gdk_event_emit (GdkEvent *event)
/**
* _gdk_event_queue_find_first:
- * @display: a #GdkDisplay
- *
+ * @display: a `GdkDisplay`
+ *
* Find the first event on the queue that is not still
* being filled in.
- *
- * Returns: (nullable): Pointer to the list node for that event, or
- * %NULL.
- **/
+ *
+ * Returns: (nullable): Pointer to the list node for that event
+ */
GList*
_gdk_event_queue_find_first (GdkDisplay *display)
{
@@ -537,13 +536,13 @@ _gdk_event_queue_find_first (GdkDisplay *display)
/**
* _gdk_event_queue_append:
- * @display: a #GdkDisplay
- * @event: Event to append.
- *
+ * @display: a `GdkDisplay`
+ * @event: Event to append
+ *
* Appends an event onto the tail of the event queue.
*
* Returns: the newly appended list node.
- **/
+ */
GList *
_gdk_event_queue_append (GdkDisplay *display,
GdkEvent *event)
@@ -555,11 +554,11 @@ _gdk_event_queue_append (GdkDisplay *display,
/*
* _gdk_event_queue_remove_link:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
* @node: node to remove
*
* Removes a specified list node from the event queue.
- **/
+ */
void
_gdk_event_queue_remove_link (GdkDisplay *display,
GList *node)
@@ -569,12 +568,12 @@ _gdk_event_queue_remove_link (GdkDisplay *display,
/*
* _gdk_event_unqueue:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
*
* Removes and returns the first event from the event
* queue that is not still being filled in.
*
- * Returns: (nullable) (transfer full): the event
+ * Returns: (nullable): the event
*/
GdkEvent*
_gdk_event_unqueue (GdkDisplay *display)
@@ -1180,7 +1179,7 @@ gdk_event_get_event_type (GdkEvent *event)
*
* Extracts the surface associated with an event.
*
- * Returns: (transfer none): The #GdkSurface associated with the event
+ * Returns: (transfer none): The `GdkSurface` associated with the event
*/
GdkSurface *
gdk_event_get_surface (GdkEvent *event)
@@ -1196,7 +1195,7 @@ gdk_event_get_surface (GdkEvent *event)
*
* Returns the seat that originated the event.
*
- * Returns: (nullable) (transfer none): a #GdkSeat.
+ * Returns: (nullable) (transfer none): a `GdkSeat`.
*/
GdkSeat *
gdk_event_get_seat (GdkEvent *event)
@@ -1212,7 +1211,7 @@ gdk_event_get_seat (GdkEvent *event)
*
* Returns the device of an event.
*
- * Returns: (nullable) (transfer none): a #GdkDevice.
+ * Returns: (nullable) (transfer none): a `GdkDevice`
*/
GdkDevice *
gdk_event_get_device (GdkEvent *event)
@@ -1272,7 +1271,7 @@ gdk_event_get_time (GdkEvent *event)
*
* Retrieves the display associated to the @event.
*
- * Returns: (transfer none) (nullable): a #GdkDisplay
+ * Returns: (transfer none) (nullable): a `GdkDisplay`
*/
GdkDisplay *
gdk_event_get_display (GdkEvent *event)
diff --git a/gdk/gdkeventsprivate.h b/gdk/gdkeventsprivate.h
index aca69d551f..1ed555661f 100644
--- a/gdk/gdkeventsprivate.h
+++ b/gdk/gdkeventsprivate.h
@@ -105,7 +105,7 @@ struct _GdkDeleteEvent
* GdkMotionEvent:
* @state: (type GdkModifierType): a bit-mask representing the state of
* the modifier keys (e.g. Control, Shift and Alt) set during the motion
- * event. See #GdkModifierType.
+ * event. See [enum@Gdk.ModifierType]
* @x: the x coordinate of the pointer relative to the surface.
* @y: the y coordinate of the pointer relative to the surface.
* @axes: @x, @y translated to the axes of @device, or %NULL if @device is
@@ -132,7 +132,7 @@ struct _GdkMotionEvent
* GdkButtonEvent:
* @state: (type GdkModifierType): a bit-mask representing the state of
* the modifier keys (e.g. Control, Shift and Alt) and the pointer
- * buttons. See #GdkModifierType.
+ * buttons. See [enum@Gdk.ModifierType]
* @button: the button which was pressed or released, numbered from 1 to 5.
* Normally button 1 is the left mouse button, 2 is the middle button,
* and 3 is the right button. On 2-button mice, the middle button can
@@ -141,7 +141,7 @@ struct _GdkMotionEvent
* @y: the y coordinate of the pointer relative to the surface.
* @axes: @x, @y translated to the axes of @device, or %NULL if @device is
* the mouse.
- * @tool: a #GdkDeviceTool
+ * @tool: a `GdkDeviceTool`
*
* Used for button press and button release events. The
* @type field will be one of %GDK_BUTTON_PRESS or %GDK_BUTTON_RELEASE,
@@ -162,7 +162,7 @@ struct _GdkButtonEvent
* GdkTouchEvent:
* @state: (type GdkModifierType): a bit-mask representing the state of
* the modifier keys (e.g. Control, Shift and Alt) and the pointer
- * buttons. See #GdkModifierType
+ * buttons. See [enum@Gdk.ModifierType]
* @x: the x coordinate of the pointer relative to the surface
* @y: the y coordinate of the pointer relative to the surface
* @axes: @x, @y translated to the axes of the event's device, or %NULL
@@ -200,7 +200,7 @@ struct _GdkTouchEvent
* @y: the y coordinate of the pointer relative to the surface.
* @state: (type GdkModifierType): a bit-mask representing the state of
* the modifier keys (e.g. Control, Shift and Alt) and the pointer
- * buttons. See #GdkModifierType.
+ * buttons. See [enum@Gdk.ModifierType]
* @direction: the direction to scroll to (one of %GDK_SCROLL_UP,
* %GDK_SCROLL_DOWN, %GDK_SCROLL_LEFT, %GDK_SCROLL_RIGHT or
* %GDK_SCROLL_SMOOTH).
@@ -208,7 +208,7 @@ struct _GdkTouchEvent
* @delta_y: the y coordinate of the scroll delta
* @pointer_emulated: whether the scroll event was the result of
* a pointer emulation
- * @tool: a #GdkDeviceTool
+ * @tool: a `GdkDeviceTool`
* @history: (element-type GdkScrollHistory): array of times and deltas
* for other scroll events that were compressed before delivering the
* current event
@@ -256,7 +256,7 @@ typedef struct {
* GdkKeyEvent:
* @state: (type GdkModifierType): a bit-mask representing the state of
* the modifier keys (e.g. Control, Shift and Alt) and the pointer
- * buttons. See #GdkModifierType.
+ * buttons. See [enum@Gdk.ModifierType]
* @keycode: the raw code of the key that was pressed or released.
* @translated: the result of translating @keycode. First with the full
* @state, then while ignoring Caps Lock.
@@ -277,7 +277,7 @@ struct _GdkKeyEvent
* GdkCrossingEvent:
* @state: (type GdkModifierType): a bit-mask representing the state of
* the modifier keys (e.g. Control, Shift and Alt) and the pointer
- * buttons. See #GdkModifierType.
+ * buttons. See [enum@Gdk.ModifierType]
* @mode: the crossing mode (%GDK_CROSSING_NORMAL, %GDK_CROSSING_GRAB,
* %GDK_CROSSING_UNGRAB, %GDK_CROSSING_GTK_GRAB, %GDK_CROSSING_GTK_UNGRAB or
* %GDK_CROSSING_STATE_CHANGED). %GDK_CROSSING_GTK_GRAB, %GDK_CROSSING_GTK_UNGRAB,
@@ -324,7 +324,7 @@ struct _GdkFocusEvent
/*
* GdkProximityEvent:
- * @tool: the #GdkDeviceTool associated to the event
+ * @tool: the `GdkDeviceTool` associated to the event
*
* A proximity event indicates that a tool of a graphic tablet, or similar
* devices that report proximity, has moved in or out of contact with the
@@ -351,7 +351,7 @@ struct _GdkProximityEvent
* when the grab surface becomes unviewable (i.e. it or one of its ancestors
* is unmapped), or if the same application grabs the pointer or keyboard
* again. Note that implicit grabs (which are initiated by button presses)
- * can also cause #GdkGrabBrokenEvent events.
+ * can also cause `GdkGrabBrokenEvent` events.
*/
struct _GdkGrabBrokenEvent
{
@@ -364,7 +364,7 @@ struct _GdkGrabBrokenEvent
/*
* GdkDNDEvent:
- * @drop: the #GdkDrop for the current DND operation.
+ * @drop: the `GdkDrop` for the current DND operation.
* @x: the X coordinate of the pointer
* @y: the Y coordinate of the pointer
*
@@ -383,7 +383,7 @@ struct _GdkDNDEvent
* GdkTouchpadEvent:
* @state: (type GdkModifierType): a bit-mask representing the state of
* the modifier keys (e.g. Control, Shift and Alt) and the pointer
- * buttons. See #GdkModifierType.
+ * buttons. See [enum@Gdk.ModifierType]
* @phase: (type GdkTouchpadGesturePhase): the current phase of the gesture
* @n_fingers: The number of fingers triggering the pinch
* @time: the time of the event in milliseconds
diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c
index eb16ec8d17..4e57853afb 100644
--- a/gdk/gdkgl.c
+++ b/gdk/gdkgl.c
@@ -303,8 +303,8 @@ gdk_gl_texture_quads (GdkGLContext *paint_context,
*
* The main way to draw GL content in GTK.
*
- * It takes a render buffer ID (@source_type == #GL_RENDERBUFFER) or a texture
- * id (@source_type == #GL_TEXTURE) and draws it onto @cr with an OVER operation,
+ * It takes a render buffer ID (@source_type == GL_RENDERBUFFER) or a texture
+ * id (@source_type == GL_TEXTURE) and draws it onto @cr with an OVER operation,
* respecting the current clip. The top left corner of the rectangle specified
* by @x, @y, @width and @height will be drawn at the current (0,0) position of
* the `cairo_t`.
@@ -315,8 +315,8 @@ gdk_gl_texture_quads (GdkGLContext *paint_context,
* no special effects applied to @cr it will however use a more efficient
* approach.
*
- * For #GL_RENDERBUFFER the code will always fall back to software for buffers
- * with alpha components, so make sure you use #GL_TEXTURE if using alpha.
+ * For GL_RENDERBUFFER the code will always fall back to software for buffers
+ * with alpha components, so make sure you use GL_TEXTURE if using alpha.
*
* Calling this may change the current GL context.
*/
diff --git a/gdk/gdkkeys.c b/gdk/gdkkeys.c
index d47c4589f2..b8e925a46e 100644
--- a/gdk/gdkkeys.c
+++ b/gdk/gdkkeys.c
@@ -201,13 +201,13 @@ gdk_keymap_init (GdkKeymap *keymap)
keymap->cache = g_hash_table_new (g_direct_hash, g_direct_equal);
}
-/**
+/*< private >
* gdk_keymap_get_display:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
*
- * Retrieves the #GdkDisplay associated to the @keymap.
+ * Retrieves the `GdkDisplay` associated to the @keymap.
*
- * Returns: (transfer none): a #GdkDisplay
+ * Returns: (transfer none): a `GdkDisplay`
*/
GdkDisplay *
gdk_keymap_get_display (GdkKeymap *keymap)
@@ -302,9 +302,9 @@ gdk_keyval_is_lower (guint keyval)
return FALSE;
}
-/**
+/*< private >
* gdk_keymap_get_direction:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
*
* Returns the direction of effective layout of the keymap.
*
@@ -314,7 +314,7 @@ gdk_keyval_is_lower (guint keyval)
* Returns: %PANGO_DIRECTION_LTR or %PANGO_DIRECTION_RTL
* if it can determine the direction. %PANGO_DIRECTION_NEUTRAL
* otherwise.
- **/
+ */
PangoDirection
gdk_keymap_get_direction (GdkKeymap *keymap)
{
@@ -323,15 +323,15 @@ gdk_keymap_get_direction (GdkKeymap *keymap)
return GDK_KEYMAP_GET_CLASS (keymap)->get_direction (keymap);
}
-/**
+/*< private >
* gdk_keymap_have_bidi_layouts:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
*
* Determines if keyboard layouts for both right-to-left and left-to-right
* languages are in use.
*
* Returns: %TRUE if there are layouts in both directions, %FALSE otherwise
- **/
+ */
gboolean
gdk_keymap_have_bidi_layouts (GdkKeymap *keymap)
{
@@ -340,9 +340,9 @@ gdk_keymap_have_bidi_layouts (GdkKeymap *keymap)
return GDK_KEYMAP_GET_CLASS (keymap)->have_bidi_layouts (keymap);
}
-/**
+/*< private >
* gdk_keymap_get_caps_lock_state:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
*
* Returns whether the Caps Lock modifier is locked.
*
@@ -356,9 +356,9 @@ gdk_keymap_get_caps_lock_state (GdkKeymap *keymap)
return GDK_KEYMAP_GET_CLASS (keymap)->get_caps_lock_state (keymap);
}
-/**
+/*< private >
* gdk_keymap_get_num_lock_state:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
*
* Returns whether the Num Lock modifier is locked.
*
@@ -372,9 +372,9 @@ gdk_keymap_get_num_lock_state (GdkKeymap *keymap)
return GDK_KEYMAP_GET_CLASS (keymap)->get_num_lock_state (keymap);
}
-/**
+/*< private >
* gdk_keymap_get_scroll_lock_state:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
*
* Returns whether the Scroll Lock modifier is locked.
*
@@ -388,9 +388,9 @@ gdk_keymap_get_scroll_lock_state (GdkKeymap *keymap)
return GDK_KEYMAP_GET_CLASS (keymap)->get_scroll_lock_state (keymap);
}
-/**
+/*< private >
* gdk_keymap_get_modifier_state:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
*
* Returns the current modifier state.
*
@@ -407,12 +407,12 @@ gdk_keymap_get_modifier_state (GdkKeymap *keymap)
return 0;
}
-/**
+/*< private >
* gdk_keymap_get_entries_for_keyval:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
* @keyval: a keyval, such as %GDK_KEY_a, %GDK_KEY_Up, %GDK_KEY_Return, etc.
* @keys: (out) (array length=n_keys) (transfer full): return location
- * for an array of #GdkKeymapKey
+ * for an array of `GdkKeymapKey`
* @n_keys: return location for number of elements in returned array
*
* Obtains a list of keycode/group/level combinations that will
@@ -422,7 +422,7 @@ gdk_keymap_get_modifier_state (GdkKeymap *keymap)
* right symbol is used. On US keyboards, the shift key changes the
* keyboard level, and there are no groups. A group switch key might
* convert a keyboard between Hebrew to English modes, for example.
- * #GdkEventKey contains a %group field that indicates the active
+ * `GdkEventKey` contains a %group field that indicates the active
* keyboard group. The level is computed from the modifier mask.
* The returned array should be freed
* with g_free().
@@ -489,18 +489,18 @@ gdk_keymap_get_cached_entries_for_keyval (GdkKeymap *keymap,
*keys = (GdkKeymapKey *)&g_array_index (keymap->cached_keys, GdkKeymapKey, offset);
}
-/**
+/*< private >
* gdk_keymap_get_entries_for_keycode:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
* @hardware_keycode: a keycode
* @keys: (out) (array length=n_entries) (transfer full) (optional): return
- * location for array of #GdkKeymapKey
+ * location for array of `GdkKeymapKey`
* @keyvals: (out) (array length=n_entries) (transfer full) (optional): return
* location for array of keyvals
* @n_entries: length of @keys and @keyvals
*
* Returns the keyvals bound to @hardware_keycode.
- * The Nth #GdkKeymapKey in @keys is bound to the Nth
+ * The Nth `GdkKeymapKey` in @keys is bound to the Nth
* keyval in @keyvals. Free the returned arrays with g_free().
* When a keycode is pressed by the user, the keyval from
* this list of entries is selected by considering the effective
@@ -522,10 +522,10 @@ gdk_keymap_get_entries_for_keycode (GdkKeymap *keymap,
keys, keyvals, n_entries);
}
-/**
+/*< private >
* gdk_keymap_lookup_key:
- * @keymap: a #GdkKeymap
- * @key: a #GdkKeymapKey with keycode, group, and level initialized
+ * @keymap: a `GdkKeymap`
+ * @key: a `GdkKeymapKey` with keycode, group, and level initialized
*
* Looks up the keyval mapped to a keycode/group/level triplet.
* If no keyval is bound to @key, returns 0. For normal user input,
@@ -545,9 +545,9 @@ gdk_keymap_lookup_key (GdkKeymap *keymap,
return GDK_KEYMAP_GET_CLASS (keymap)->lookup_key (keymap, key);
}
-/**
+/*< private >
* gdk_keymap_translate_keyboard_state:
- * @keymap: a #GdkKeymap
+ * @keymap: a `GdkKeymap`
* @hardware_keycode: a keycode
* @state: a modifier state
* @group: active keyboard group
@@ -557,7 +557,7 @@ gdk_keymap_lookup_key (GdkKeymap *keymap,
* @consumed_modifiers: (out) (optional): return location for modifiers
* that were used to determine the group or level
*
- * Translates the contents of a #GdkEventKey into a keyval, effective
+ * Translates the contents of a `GdkEventKey` into a keyval, effective
* group, and level. Modifiers that affected the translation and
* are thus unavailable for application use are returned in
* @consumed_modifiers.
@@ -565,7 +565,7 @@ gdk_keymap_lookup_key (GdkKeymap *keymap,
* groups and levels. The @effective_group is the group that was
* actually used for the translation; some keys such as Enter are not
* affected by the active keyboard group. The @level is derived from
- * @state. For convenience, #GdkEventKey already contains the translated
+ * @state. For convenience, `GdkEventKey` already contains the translated
* keyval, so this function isn’t as useful as you might think.
*
* @consumed_modifiers gives modifiers that should be masked outfrom @state
@@ -680,7 +680,7 @@ gdk_keyval_from_name (const char *keyval_name)
*
* Obtains the upper- and lower-case versions of the keyval @symbol.
*
- * Examples of keyvals are #GDK_KEY_a, #GDK_KEY_Enter, #GDK_KEY_F1, etc.
+ * Examples of keyvals are `GDK_KEY_a`, `GDK_KEY_Enter`, `GDK_KEY_F1`, etc.
*/
void
gdk_keyval_convert_case (guint symbol,
diff --git a/gdk/gdkmemorytexture.h b/gdk/gdkmemorytexture.h
index 598b2f2c3a..35d6fb7cbc 100644
--- a/gdk/gdkmemorytexture.h
+++ b/gdk/gdkmemorytexture.h
@@ -79,7 +79,7 @@ typedef enum {
* This is the format provided by [method@Gdk.Texture.download].
* It is equal to %CAIRO_FORMAT_ARGB32.
*
- * Be aware that unlike the #GdkMemoryFormat values, this format
+ * Be aware that unlike the `GdkMemoryFormat` values, this format
* is different for different endianness.
*/
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
diff --git a/gdk/gdkpaintable.c b/gdk/gdkpaintable.c
index b86aaaf19d..51d0e1347c 100644
--- a/gdk/gdkpaintable.c
+++ b/gdk/gdkpaintable.c
@@ -661,7 +661,7 @@ gdk_empty_paintable_init (GdkEmptyPaintable *self)
* Returns a paintable that has the given intrinsic size and draws nothing.
*
* This is often useful for implementing the
- * #GdkPaintableInterface.get_current_image() virtual function
+ * [vfunc@Gdk.Paintable.get_current_image] virtual function
* when the paintable is in an incomplete state (like a
* [class@Gtk.MediaStream] before receiving the first frame).
*
diff --git a/gdk/gdkpaintable.h b/gdk/gdkpaintable.h
index 897f1d814f..da6ade338c 100644
--- a/gdk/gdkpaintable.h
+++ b/gdk/gdkpaintable.h
@@ -80,7 +80,7 @@ typedef enum {
* Note that apart from the [vfunc@Gdk.PaintableInterface.snapshot] function,
* no virtual function of this interface is mandatory to implement, though it
* is a good idea to implement [vfunc@Gdk.PaintableInterface.get_current_image]
- * for non-static paintables and #GdkPaintableInterface.get_flags() if the
+ * for non-static paintables and [vfunc@Gdk.PaintableInterface.get_flags] if the
* image is not dynamic as the default implementation returns no flags and
* that will make the implementation likely quite slow.
*/
diff --git a/gdk/gdkpipeiostream.c b/gdk/gdkpipeiostream.c
index 02147e4a12..fe5a77e168 100644
--- a/gdk/gdkpipeiostream.c
+++ b/gdk/gdkpipeiostream.c
@@ -458,15 +458,16 @@ gdk_pipe_io_stream_init (GdkPipeIOStream *pipe)
/**
* gdk_pipe_io_stream_new:
*
- * Creates a #GIOStream whose input- and output-stream behave like a pipe.
+ * Creates a `GIOStream` whose input- and output-stream behave like a pipe.
+ *
* Data written into the output stream becomes available for reading on
* the input stream.
*
* Note that this is data transfer in the opposite direction to
* g_output_stream_splice().
*
- * Returns: a new #GIOStream
- **/
+ * Returns: a new `GIOStream`
+ */
GIOStream *
gdk_pipe_io_stream_new (void)
{
diff --git a/gdk/gdkpixbuf-drawable.c b/gdk/gdkpixbuf-drawable.c
index a337d798fe..e649236faa 100644
--- a/gdk/gdkpixbuf-drawable.c
+++ b/gdk/gdkpixbuf-drawable.c
@@ -225,7 +225,7 @@ gdk_pixbuf_get_from_surface (cairo_surface_t *surface,
* stages will almost certainly convert the pixbuf back into a texture
* to draw it on screen.
*
- * Returns: (transfer full) (nullable): a new #GdkPixbuf
+ * Returns: (transfer full) (nullable): a new `GdkPixbuf`
*/
GdkPixbuf *
gdk_pixbuf_get_from_texture (GdkTexture *texture)
diff --git a/gdk/gdkpopup.c b/gdk/gdkpopup.c
index 3aeb46166b..a71e63d57e 100644
--- a/gdk/gdkpopup.c
+++ b/gdk/gdkpopup.c
@@ -111,7 +111,7 @@ gdk_popup_default_init (GdkPopupInterface *iface)
* @height: the unconstrained popup height to layout
* @layout: the `GdkPopupLayout` object used to layout
*
- * Present @popup after having processed the #GdkPopupLayout rules.
+ * Present @popup after having processed the `GdkPopupLayout` rules.
*
* If the popup was previously now showing, it will be showed,
* otherwise it will change position according to @layout.
diff --git a/gdk/gdkrectangle.c b/gdk/gdkrectangle.c
index f2c3b3d605..32f7e86e20 100644
--- a/gdk/gdkrectangle.c
+++ b/gdk/gdkrectangle.c
@@ -149,9 +149,9 @@ gdk_rectangle_intersect (const GdkRectangle *src1,
* @x: X coordinate
* @y: Y coordinate
*
- * Returns #TRUE if @rect contains the point described by @x and @y.
+ * Returns %TRUE if @rect contains the point described by @x and @y.
*
- * Returns: #TRUE if @rect contains the point
+ * Returns: %TRUE if @rect contains the point
**/
gboolean
gdk_rectangle_contains_point (const GdkRectangle *rect,
diff --git a/gdk/gdkseat.c b/gdk/gdkseat.c
index 2709fadc85..a03081b2a8 100644
--- a/gdk/gdkseat.c
+++ b/gdk/gdkseat.c
@@ -315,7 +315,7 @@ gdk_seat_ungrab (GdkSeat *seat)
/**
* gdk_seat_get_devices:
- * @seat: a #GdkSeat
+ * @seat: a `GdkSeat`
* @capabilities: capabilities to get devices for
*
* Returns the devices that match the given capabilities.
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 395516102b..8f562f7d1c 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -1695,7 +1695,7 @@ gdk_surface_constrain_size (GdkGeometry *geometry,
* gdk_surface_get_device_position:
* @surface: a `GdkSurface`
* @device: pointer `GdkDevice` to query to
- * @x: (out) (optional): return locatio for the X coordinate of @device
+ * @x: (out) (optional): return location for the X coordinate of @device
* @y: (out) (optional): return location for the Y coordinate of @device
* @mask: (out) (optional): return location for the modifier mask
*
@@ -2637,7 +2637,7 @@ gdk_surface_get_scale_factor (GdkSurface *surface)
* GTK will update this property automatically if the @surface background
* is opaque, as we know where the opaque regions are. If your surface
* background is not opaque, please update this property in your
- * #GtkWidgetClass.css_changed() handler.
+ * [vfunc@Gtk.Widget.css_changed] handler.
*/
void
gdk_surface_set_opaque_region (GdkSurface *surface,
diff --git a/gdk/gdktoplevel.c b/gdk/gdktoplevel.c
index 1d16438c0d..d50a88675d 100644
--- a/gdk/gdktoplevel.c
+++ b/gdk/gdktoplevel.c
@@ -679,7 +679,7 @@ gdk_toplevel_begin_resize (GdkToplevel *toplevel,
/**
* gdk_toplevel_begin_move:
- * @toplevel: a #GdkToplevel
+ * @toplevel: a `GdkToplevel`
* @device: the device used for the operation
* @button: the button being used to drag, or 0 for a keyboard-initiated drag
* @x: surface X coordinate of mouse click that began the drag
diff --git a/gdk/gdktoplevellayout.c b/gdk/gdktoplevellayout.c
index d2bc716d90..64f648c476 100644
--- a/gdk/gdktoplevellayout.c
+++ b/gdk/gdktoplevellayout.c
@@ -64,7 +64,7 @@ G_DEFINE_BOXED_TYPE (GdkToplevelLayout, gdk_toplevel_layout,
* The size is in ”application pixels”, not
* ”device pixels” (see gdk_surface_get_scale_factor()).
*
- * Returns: (transfer full): newly created instance of #GdkToplevelLayout
+ * Returns: (transfer full): newly created instance of `GdkToplevelLayout`
*/
GdkToplevelLayout *
gdk_toplevel_layout_new (void)
@@ -85,7 +85,7 @@ gdk_toplevel_layout_new (void)
/**
* gdk_toplevel_layout_ref:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
*
* Increases the reference count of @layout.
*
@@ -100,7 +100,7 @@ gdk_toplevel_layout_ref (GdkToplevelLayout *layout)
/**
* gdk_toplevel_layout_unref:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
*
* Decreases the reference count of @layout.
*/
@@ -116,9 +116,9 @@ gdk_toplevel_layout_unref (GdkToplevelLayout *layout)
/**
* gdk_toplevel_layout_copy:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
*
- * Create a new #GdkToplevelLayout and copy the contents of @layout into it.
+ * Create a new `GdkToplevelLayout` and copy the contents of @layout into it.
*
* Returns: (transfer full): a copy of @layout.
*/
@@ -143,8 +143,8 @@ gdk_toplevel_layout_copy (GdkToplevelLayout *layout)
/**
* gdk_toplevel_layout_equal:
- * @layout: a #GdkToplevelLayout
- * @other: another #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
+ * @other: another `GdkToplevelLayout`
*
* Check whether @layout and @other has identical layout properties.
*
@@ -168,7 +168,7 @@ gdk_toplevel_layout_equal (GdkToplevelLayout *layout,
/**
* gdk_toplevel_layout_set_resizable:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
* @resizable: %TRUE to allow resizing
*
* Sets whether the layout should allow the user
@@ -183,7 +183,7 @@ gdk_toplevel_layout_set_resizable (GdkToplevelLayout *layout,
/**
* gdk_toplevel_layout_get_resizable:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
*
* Returns whether the layout should allow the user
* to resize the surface.
@@ -198,7 +198,7 @@ gdk_toplevel_layout_get_resizable (GdkToplevelLayout *layout)
/**
* gdk_toplevel_layout_set_maximized:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
* @maximized: %TRUE to maximize
*
* Sets whether the layout should cause the surface
@@ -214,7 +214,7 @@ gdk_toplevel_layout_set_maximized (GdkToplevelLayout *layout,
/**
* gdk_toplevel_layout_get_maximized:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
* @maximized: (out): set to %TRUE if the toplevel should be maximized
*
* If the layout specifies whether to the toplevel should go maximized,
@@ -238,7 +238,7 @@ gdk_toplevel_layout_get_maximized (GdkToplevelLayout *layout,
/**
* gdk_toplevel_layout_set_fullscreen:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
* @fullscreen: %TRUE to fullscreen the surface
* @monitor: (nullable): the monitor to fullscreen on
*
@@ -258,7 +258,7 @@ gdk_toplevel_layout_set_fullscreen (GdkToplevelLayout *layout,
/**
* gdk_toplevel_layout_get_fullscreen:
- * @layout: a #GdkToplevelLayout
+ * @layout: a ``GdkToplevelLayout`
* @fullscreen: (out): location to store whether the toplevel should be fullscreen
*
* If the layout specifies whether to the toplevel should go fullscreen,
@@ -282,7 +282,7 @@ gdk_toplevel_layout_get_fullscreen (GdkToplevelLayout *layout,
/**
* gdk_toplevel_layout_get_fullscreen_monitor:
- * @layout: a #GdkToplevelLayout
+ * @layout: a `GdkToplevelLayout`
*
* Returns the monitor that the layout is fullscreening
* the surface on.
diff --git a/gdk/gdktypes.h b/gdk/gdktypes.h
index faff38f212..77059797da 100644
--- a/gdk/gdktypes.h
+++ b/gdk/gdktypes.h
@@ -112,7 +112,7 @@ typedef struct _GdkVulkanContext GdkVulkanContext;
* @GDK_GRAVITY_STATIC: the reference point is at the top left corner of the
* surface itself, ignoring window manager decorations.
*
- * Defines the reference point of a surface and is used in #GdkPopupLayout.
+ * Defines the reference point of a surface and is used in `GdkPopupLayout`.
*/
typedef enum
{
@@ -212,7 +212,7 @@ typedef enum {
* compiled in.
* @GDK_VULKAN_ERROR_NOT_AVAILABLE: Vulkan support is not available on this Surface
*
- * Error enumeration for #GdkVulkanContext.
+ * Error enumeration for `GdkVulkanContext`.
*/
typedef enum {
GDK_VULKAN_ERROR_UNSUPPORTED,
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c
index 5fe6ad6512..aa751dedd3 100644
--- a/gdk/gdkvulkancontext.c
+++ b/gdk/gdkvulkancontext.c
@@ -674,7 +674,7 @@ gdk_vulkan_context_get_physical_device (GdkVulkanContext *context)
/**
* gdk_vulkan_context_get_device:
- * @context: a #GdkVulkanContext
+ * @context: a `GdkVulkanContext`
*
* Gets the Vulkan device that this context is using.
*
diff --git a/gdk/macos/gdkdisplaylinksource.c b/gdk/macos/gdkdisplaylinksource.c
index 76c57feaeb..d8c5707ff3 100644
--- a/gdk/macos/gdkdisplaylinksource.c
+++ b/gdk/macos/gdkdisplaylinksource.c
@@ -147,7 +147,7 @@ gdk_display_link_source_frame_cb (CVDisplayLinkRef display_link,
/**
* gdk_display_link_source_new:
*
- * Creates a new #GSource that will activate the dispatch function upon
+ * Creates a new `GSource` that will activate the dispatch function upon
* notification from a CVDisplayLink that a new frame should be drawn.
*
* Effort is made to keep the transition from the high-priority
@@ -155,7 +155,7 @@ gdk_display_link_source_frame_cb (CVDisplayLinkRef display_link,
* somewhat non-ideal since the best case would be to do the drawing
* from the high-priority thread.
*
- * Returns: (transfer full): A newly created #GSource.
+ * Returns: (transfer full): A newly created `GSource`
*/
GSource *
gdk_display_link_source_new (void)
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 443d7656f6..85c2002ba8 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -326,7 +326,7 @@ static const struct org_kde_kwin_server_decoration_manager_listener server_decor
/*
* gdk_wayland_display_prefers_ssd:
- * @display: (type GdkWaylandDisplay): a #GdkDisplay
+ * @display: (type GdkWaylandDisplay): a `GdkDisplay`
*
* Checks whether the Wayland compositor prefers to draw the window
* decorations or if it leaves decorations to the application.
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index a7265677df..13f7314f3a 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -4645,7 +4645,7 @@ gdk_wayland_surface_get_inhibitor (GdkWaylandSurface *impl,
/*
* gdk_wayland_surface_inhibit_shortcuts:
- * @surface: (type GdkWaylandSurface): a #GdkSurface
+ * @surface: (type GdkWaylandSurface): a `GdkSurface`
* @seat: the seat to inhibit
*
* Inhibits the shortcuts coming from the given @seat.
@@ -4675,7 +4675,7 @@ gdk_wayland_surface_inhibit_shortcuts (GdkSurface *surface,
/*
* gdk_wayland_surface_restore_shortcuts:
- * @surface: (type GdkWaylandSurface): a #GdkSurface
+ * @surface: (type GdkWaylandSurface): a `GdkSurface`
* @seat: the seat to inhibit
*
* Restores the shortcuts on the given @seat inhibited by calling
diff --git a/gdk/win32/gdkcursor-win32.c b/gdk/win32/gdkcursor-win32.c
index 61cf9d83a1..39397d3eee 100644
--- a/gdk/win32/gdkcursor-win32.c
+++ b/gdk/win32/gdkcursor-win32.c
@@ -1493,17 +1493,17 @@ _gdk_win32_pixbuf_to_hcursor (GdkPixbuf *pixbuf,
/**
* gdk_win32_display_get_win32hcursor:
- * @display: (type GdkWin32Display): a #GdkDisplay
- * @cursor: a #GdkCursor.
- *
- * Returns the Win32 HCURSOR wrapper object belonging to a #GdkCursor,
+ * @display: (type GdkWin32Display): a `GdkDisplay`
+ * @cursor: a `GdkCursor`
+ *
+ * Returns the Win32 HCURSOR wrapper object belonging to a `GdkCursor`,
* potentially creating the cursor object.
*
* Be aware that the returned cursor may not be unique to @cursor.
* It may for example be shared with its fallback cursor.
- *
- * Returns: a GdkWin32HCursor.
- **/
+ *
+ * Returns: a GdkWin32HCursor
+ */
GdkWin32HCursor *
gdk_win32_display_get_win32hcursor (GdkWin32Display *display,
GdkCursor *cursor)
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index 9337ee3ee9..5c8078b696 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -51,7 +51,7 @@ static int debug_indent = 0;
/**
* gdk_win32_display_add_filter:
- * @display: a #GdkWin32Display
+ * @display: a `GdkWin32Display`
* @function: filter callback
* @data: data to pass to filter callback
*
@@ -94,7 +94,7 @@ gdk_win32_display_add_filter (GdkWin32Display *display,
/**
* _gdk_win32_message_filter_unref:
- * @display: A #GdkWin32Display
+ * @display: A `GdkWin32Display`
* @filter: A message filter
*
* Release a reference to @filter. Note this function may
@@ -136,7 +136,7 @@ _gdk_win32_message_filter_unref (GdkWin32Display *display,
/**
* gdk_win32_display_remove_filter:
- * @display: A #GdkWin32Display
+ * @display: A `GdkWin32Display`
* @function: previously-added filter function
* @data: user data for previously-added filter function
*
@@ -340,7 +340,7 @@ _gdk_win32_display_init_monitors (GdkWin32Display *win32_display)
* change. Custom cursors constructed with [ctor@Gdk.Cursor.new_from_texture]
* will have to be handled by the application (GTK applications can
* learn about cursor theme changes by listening for change notification
- * for the corresponding #GtkSetting).
+ * for the corresponding `GtkSetting`).
*/
void
gdk_win32_display_set_cursor_theme (GdkDisplay *display,
diff --git a/gdk/win32/gdkglcontext-win32.c b/gdk/win32/gdkglcontext-win32.c
index e81ae5338a..bfe800516e 100644
--- a/gdk/win32/gdkglcontext-win32.c
+++ b/gdk/win32/gdkglcontext-win32.c
@@ -1218,7 +1218,7 @@ _gdk_win32_display_make_gl_context_current (GdkDisplay *display,
/**
* gdk_win32_display_get_wgl_version:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
* @major: (out): return location for the WGL major version
* @minor: (out): return location for the WGL minor version
*
diff --git a/gdk/win32/gdkwin32display.h b/gdk/win32/gdkwin32display.h
index e9e621eba5..8f59750421 100644
--- a/gdk/win32/gdkwin32display.h
+++ b/gdk/win32/gdkwin32display.h
@@ -62,7 +62,7 @@ void gdk_win32_display_set_cursor_theme (GdkDisplay *display,
* @GDK_WIN32_MESSAGE_FILTER_CONTINUE: event not handled, continue processing.
* @GDK_WIN32_MESSAGE_FILTER_REMOVE: event handled, terminate processing.
*
- * Specifies the result of applying a #GdkWin32MessageFilterFunc to a Windows message.
+ * Specifies the result of applying a `GdkWin32MessageFilterFunc` to a Windows message.
*/
typedef enum {
GDK_WIN32_MESSAGE_FILTER_CONTINUE, /* Message not handled, continue processing */
@@ -79,12 +79,12 @@ typedef enum {
* processed by GDK Win32 backend.
*
* The @return_value must be set, if this function returns
- * #GDK_WIN32_MESSAGE_FILTER_REMOVE, otherwise it is ignored.
+ * `GDK_WIN32_MESSAGE_FILTER_REMOVE`, otherwise it is ignored.
*
- * The event translation and message filtering are orthogonal -
+ * The event translation and message filtering are orthogonal -
* if a filter wants a GDK event queued, it should do that itself.
*
- * Returns: a #GdkWin32MessageFilterReturn value.
+ * Returns: a `GdkWin32MessageFilterReturn` value.
*/
typedef GdkWin32MessageFilterReturn (*GdkWin32MessageFilterFunc) (GdkWin32Display *display,
MSG *message,
diff --git a/gdk/x11/gdkcursor-x11.c b/gdk/x11/gdkcursor-x11.c
index 24b27ba9e9..ce5f861894 100644
--- a/gdk/x11/gdkcursor-x11.c
+++ b/gdk/x11/gdkcursor-x11.c
@@ -273,7 +273,7 @@ gdk_x11_cursor_create_for_name (GdkDisplay *display,
* change. Custom cursors constructed with [ctor@Gdk.Cursor.new_from_texture]
* will have to be handled by the application (GTK applications can learn
* about cursor theme changes by listening for change notification
- * for the corresponding #GtkSetting).
+ * for the corresponding `GtkSetting`).
*/
void
gdk_x11_display_set_cursor_theme (GdkDisplay *display,
@@ -331,19 +331,19 @@ gdk_x11_display_set_cursor_theme (GdkDisplay *display,
/**
* gdk_x11_display_get_xcursor:
- * @display: (type GdkX11Display): a #GdkDisplay
- * @cursor: a #GdkCursor.
- *
- * Returns the X cursor belonging to a #GdkCursor, potentially
+ * @display: (type GdkX11Display): a `GdkDisplay`
+ * @cursor: a `GdkCursor`
+ *
+ * Returns the X cursor belonging to a `GdkCursor`, potentially
* creating the cursor.
*
* Be aware that the returned cursor may not be unique to @cursor.
* It may for example be shared with its fallback cursor. On old
* X servers that don't support the XCursor extension, all cursors
* may even fall back to a few default cursors.
- *
+ *
* Returns: an Xlib Cursor.
- **/
+ */
Cursor
gdk_x11_display_get_xcursor (GdkDisplay *display,
GdkCursor *cursor)
diff --git a/gdk/x11/gdkdevicemanager-x11.c b/gdk/x11/gdkdevicemanager-x11.c
index 2200ba7661..c98faa711f 100644
--- a/gdk/x11/gdkdevicemanager-x11.c
+++ b/gdk/x11/gdkdevicemanager-x11.c
@@ -64,17 +64,17 @@ _gdk_x11_device_manager_new (GdkDisplay *display)
g_error ("XInput2 support not found on display");
}
-/*
+/**
* gdk_x11_device_manager_lookup:
- * @device_manager: (type GdkX11DeviceManagerXI2): a #GdkDeviceManager
+ * @device_manager: (type GdkX11DeviceManagerXI2): a `GdkDeviceManager`
* @device_id: a device ID, as understood by the XInput2 protocol
*
- * Returns the #GdkDevice that wraps the given device ID.
+ * Returns the `GdkDevice` that wraps the given device ID.
*
* Returns: (transfer none) (nullable) (type GdkX11DeviceXI2): The
- * `GdkDevice` wrapping the device ID,
- * or %NULL if the given ID doesn’t currently represent a device.
- **/
+ * `GdkDevice` wrapping the device ID, or %NULL if the given ID
+ * doesn’t currently represent a device.
+ */
GdkDevice *
gdk_x11_device_manager_lookup (GdkX11DeviceManagerXI2 *device_manager,
int device_id)
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index 54840a87bd..67ffa7b09c 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -1624,7 +1624,7 @@ gdk_x11_display_open (const char *display_name)
/**
* gdk_x11_display_set_program_class:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
* @program_class: a string
*
* Sets the program class.
@@ -1825,7 +1825,7 @@ gdk_x11_display_has_pending (GdkDisplay *display)
/**
* gdk_x11_display_get_default_group:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
*
* Returns the default group leader surface for all toplevel surfaces
* on @display. This surface is implicitly created by GDK.
@@ -1844,10 +1844,10 @@ gdk_x11_display_get_default_group (GdkDisplay *display)
/**
* gdk_x11_display_grab:
- * @display: (type GdkX11Display): a #GdkDisplay
- *
- * Call XGrabServer() on @display.
- * To ungrab the display again, use gdk_x11_display_ungrab().
+ * @display: (type GdkX11Display): a `GdkDisplay`
+ *
+ * Call XGrabServer() on @display.
+ * To ungrab the display again, use gdk_x11_display_ungrab().
*
* gdk_x11_display_grab()/gdk_x11_display_ungrab() calls can be nested.
**/
@@ -1867,10 +1867,10 @@ gdk_x11_display_grab (GdkDisplay *display)
/**
* gdk_x11_display_ungrab:
- * @display: (type GdkX11Display): a #GdkDisplay
- *
- * Ungrab @display after it has been grabbed with
- * gdk_x11_display_grab().
+ * @display: (type GdkX11Display): a `GdkDisplay`
+ *
+ * Ungrab @display after it has been grabbed with
+ * gdk_x11_display_grab().
**/
void
gdk_x11_display_ungrab (GdkDisplay *display)
@@ -1963,10 +1963,10 @@ gdk_x11_display_finalize (GObject *object)
/**
* gdk_x11_lookup_xdisplay:
* @xdisplay: a pointer to an X Display
- *
- * Find the #GdkDisplay corresponding to @xdisplay, if any exists.
- *
- * Returns: (transfer none) (type GdkX11Display): the #GdkDisplay, if found, otherwise %NULL.
+ *
+ * Find the `GdkDisplay` corresponding to @xdisplay, if any exists.
+*
+ * Returns: (transfer none) (type GdkX11Display): the `GdkDisplay`, if found, otherwise %NULL.
**/
GdkDisplay *
gdk_x11_lookup_xdisplay (Display *xdisplay)
@@ -1995,14 +1995,13 @@ gdk_x11_lookup_xdisplay (Display *xdisplay)
/*
* _gdk_x11_display_screen_for_xrootwin:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
* @xrootwin: window ID for one of the screen’s of the display.
*
- * Given the root window ID of one of the screen’s of a #GdkDisplay,
+ * Given the root window ID of one of the screen’s of a `GdkDisplay`,
* finds the screen.
*
- * Returns: (transfer none) (nullable): the #GdkX11Screen
- * corresponding to @xrootwin
+ * Returns: (transfer none): the `GdkX11Screen` corresponding to @xrootwin
*/
GdkX11Screen *
_gdk_x11_display_screen_for_xrootwin (GdkDisplay *display,
@@ -2042,9 +2041,9 @@ _gdk_x11_display_screen_for_xrootwin (GdkDisplay *display,
/**
* gdk_x11_display_get_xdisplay:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
*
- * Returns the X display of a #GdkDisplay.
+ * Returns the X display of a `GdkDisplay`.
*
* Returns: (transfer none): an X display
*/
@@ -2058,9 +2057,9 @@ gdk_x11_display_get_xdisplay (GdkDisplay *display)
/**
* gdk_x11_display_get_xscreen:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
*
- * Returns the X Screen used by #GdkDisplay.
+ * Returns the X Screen used by `GdkDisplay`.
*
* Returns: (transfer none): an X Screen
*/
@@ -2074,9 +2073,9 @@ gdk_x11_display_get_xscreen (GdkDisplay *display)
/**
* gdk_x11_display_get_xrootwindow:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
*
- * Returns the root X window used by #GdkDisplay.
+ * Returns the root X window used by `GdkDisplay`.
*
* Returns: an X Window
*/
@@ -2191,7 +2190,7 @@ broadcast_xmessage (GdkDisplay *display,
/**
* gdk_x11_display_broadcast_startup_message:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
* @message_type: startup notification message type ("new", "change",
* or "remove")
* @...: a list of key/value pairs (as strings), terminated by a
@@ -2305,14 +2304,14 @@ gdk_x11_display_request_selection_notification (GdkDisplay *display,
/**
* gdk_x11_display_get_user_time:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
*
- * Returns the timestamp of the last user interaction on
+ * Returns the timestamp of the last user interaction on
* @display. The timestamp is taken from events caused
- * by user interaction such as key presses or pointer
+ * by user interaction such as key presses or pointer
* movements. See gdk_x11_surface_set_user_time().
*
- * Returns: the timestamp of the last user interaction
+ * Returns: the timestamp of the last user interaction
*/
guint32
gdk_x11_display_get_user_time (GdkDisplay *display)
@@ -2322,7 +2321,7 @@ gdk_x11_display_get_user_time (GdkDisplay *display)
/**
* gdk_x11_display_get_startup_notification_id:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
*
* Gets the startup notification ID for a display.
*
@@ -2336,7 +2335,7 @@ gdk_x11_display_get_startup_notification_id (GdkDisplay *display)
/**
* gdk_x11_display_set_startup_notification_id:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
* @startup_id: the startup notification ID (must be valid utf8)
*
* Sets the startup notification ID for a display.
@@ -2528,7 +2527,7 @@ delete_outdated_error_traps (GdkX11Display *display_x11)
/**
* gdk_x11_display_error_trap_push:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
*
* Begins a range of X requests on @display for which X error events
* will be ignored. Unignored errors (when no trap is pushed) will abort
@@ -2759,11 +2758,11 @@ gdk_x11_display_get_max_request_size (GdkDisplay *display)
/**
* gdk_x11_display_get_screen:
- * @display: (type GdkX11Display): a #GdkX11Display
+ * @display: (type GdkX11Display): a `GdkX11Display`
*
- * Retrieves the #GdkX11Screen of the @display.
+ * Retrieves the `GdkX11Screen` of the @display.
*
- * Returns: (transfer none): the #GdkX11Screen
+ * Returns: (transfer none): the `GdkX11Screen`
*/
GdkX11Screen *
gdk_x11_display_get_screen (GdkDisplay *display)
@@ -2965,7 +2964,7 @@ gdk_x11_display_class_init (GdkX11DisplayClass * class)
* that GDK expects to translate, you may break GDK and/or GTK+ in
* interesting ways. You have been warned.
*
- * If you want this signal handler to queue a #GdkEvent, you can use
+ * If you want this signal handler to queue a `GdkEvent`, you can use
* gdk_display_put_event().
*
* If you are interested in X GenericEvents, bear in mind that
diff --git a/gdk/x11/gdkdrag-x11.c b/gdk/x11/gdkdrag-x11.c
index d82d3a7d4b..515848bd5e 100644
--- a/gdk/x11/gdkdrag-x11.c
+++ b/gdk/x11/gdkdrag-x11.c
@@ -67,7 +67,7 @@ typedef enum {
* @GDK_DRAG_PROTO_ROOTWIN: An extension to the Xdnd protocol for
* unclaimed root window drops.
*
- * Used in #GdkDrag to indicate the protocol according to
+ * Used in `GdkDrag` to indicate the protocol according to
* which DND is done.
*/
typedef enum
diff --git a/gdk/x11/gdkglcontext-egl.c b/gdk/x11/gdkglcontext-egl.c
index 08f4493a8b..b278b9d36c 100644
--- a/gdk/x11/gdkglcontext-egl.c
+++ b/gdk/x11/gdkglcontext-egl.c
@@ -783,7 +783,7 @@ gdk_x11_gl_context_egl_make_current (GdkDisplay *display,
/**
* gdk_x11_display_get_egl_version:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
* @major: (out): return location for the EGL major version
* @minor: (out): return location for the EGL minor version
*
diff --git a/gdk/x11/gdkglcontext-glx.c b/gdk/x11/gdkglcontext-glx.c
index 4181168262..83006eb51c 100644
--- a/gdk/x11/gdkglcontext-glx.c
+++ b/gdk/x11/gdkglcontext-glx.c
@@ -1181,7 +1181,7 @@ gdk_x11_gl_context_glx_make_current (GdkDisplay *display,
/**
* gdk_x11_display_get_glx_version:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
* @major: (out): return location for the GLX major version
* @minor: (out): return location for the GLX minor version
*
diff --git a/gdk/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c
index 2d2318f3d7..93bb4312b4 100644
--- a/gdk/x11/gdkkeys-x11.c
+++ b/gdk/x11/gdkkeys-x11.c
@@ -1397,11 +1397,11 @@ gdk_x11_keymap_translate_keyboard_state (GdkKeymap *keymap,
/*< private >
* gdk_x11_keymap_get_group_for_state:
- * @keymap: (type GdkX11Keymap): a #GdkX11Keymap
+ * @keymap: (type GdkX11Keymap): a `GdkX11Keymap`
* @state: raw state returned from X
*
* Extracts the group from the state field sent in an X Key event.
- * This is only needed for code processing raw X events, since #GdkEventKey
+ * This is only needed for code processing raw X events, since `GdkEventKey`
* directly includes an is_modifier field.
*
* Returns: the index of the active keyboard group for the event
@@ -1461,14 +1461,14 @@ _gdk_x11_keymap_add_virt_mods (GdkKeymap *keymap,
/*< private >
* gdk_x11_keymap_key_is_modifier:
- * @keymap: (type GdkX11Keymap): a #GdkX11Keymap
+ * @keymap: (type GdkX11Keymap): a `GdkX11Keymap`
* @keycode: the hardware keycode from a key event
*
* Determines whether a particular key code represents a key that
* is a modifier. That is, it’s a key that normally just affects
* the keyboard state and the behavior of other keys rather than
* producing a direct effect itself. This is only needed for code
- * processing raw X events, since #GdkEventKey directly includes
+ * processing raw X events, since `GdkEventKey` directly includes
* an is_modifier field.
*
* Returns: %TRUE if the hardware keycode is a modifier key
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index 55afd7f036..51f24ff1f3 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -90,7 +90,7 @@ _gdk_x11_convert_grab_status (int status)
/*
* _gdk_x11_surface_grab_check_unmap:
- * @surface: a #GdkSurface
+ * @surface: a `GdkSurface`
* @serial: serial from Unmap event (or from NextRequest(display)
* if the unmap is being done by this client.)
*
@@ -121,7 +121,7 @@ _gdk_x11_surface_grab_check_unmap (GdkSurface *surface,
/*
* _gdk_x11_surface_grab_check_destroy:
- * @surface: a #GdkSurface
+ * @surface: a `GdkSurface`
*
* Checks to see if surface is the current grab surface, and if
* so, clear the current grab surface.
diff --git a/gdk/x11/gdkmonitor-x11.c b/gdk/x11/gdkmonitor-x11.c
index 9c6929b1b9..ccbd8b4b3a 100644
--- a/gdk/x11/gdkmonitor-x11.c
+++ b/gdk/x11/gdkmonitor-x11.c
@@ -116,7 +116,7 @@ gdk_x11_monitor_class_init (GdkX11MonitorClass *class)
/**
* gdk_x11_monitor_get_output:
- * @monitor: (type GdkX11Monitor): a #GdkMonitor
+ * @monitor: (type GdkX11Monitor): a `GdkMonitor`
*
* Returns the XID of the Output corresponding to @monitor.
*
diff --git a/gdk/x11/gdkproperty-x11.c b/gdk/x11/gdkproperty-x11.c
index bbe916d5cc..056a1e9635 100644
--- a/gdk/x11/gdkproperty-x11.c
+++ b/gdk/x11/gdkproperty-x11.c
@@ -66,14 +66,14 @@ lookup_cached_xatom (GdkDisplay *display,
/**
* gdk_x11_get_xatom_by_name_for_display:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
* @atom_name: a string
*
- * Returns the X atom for a #GdkDisplay corresponding to @atom_name.
+ * Returns the X atom for a `GdkDisplay` corresponding to @atom_name.
* This function caches the result, so if called repeatedly it is much
* faster than XInternAtom(), which is a round trip to the server each time.
*
- * Returns: a X atom for a #GdkDisplay
+ * Returns: a X atom for a `GdkDisplay`
**/
Atom
gdk_x11_get_xatom_by_name_for_display (GdkDisplay *display,
@@ -136,7 +136,7 @@ _gdk_x11_precache_atoms (GdkDisplay *display,
/**
* gdk_x11_get_xatom_name_for_display:
- * @display: (type GdkX11Display): the #GdkDisplay where @xatom is defined
+ * @display: (type GdkX11Display): the `GdkDisplay` where @xatom is defined
* @xatom: an X atom
*
* Returns the name of an X atom for its display. This
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index 9f6af3d1ec..9ab16f6db9 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -120,7 +120,7 @@ gdk_x11_screen_finalize (GObject *object)
/**
* gdk_x11_screen_get_monitor_output:
- * @screen: a #GdkX11Screen
+ * @screen: a `GdkX11Screen`
* @monitor_num: number of the monitor, between 0 and gdk_screen_get_n_monitors (screen)
*
* Gets the XID of the specified output/monitor.
@@ -358,9 +358,9 @@ out:
/**
* gdk_x11_screen_get_xscreen:
- * @screen: a #GdkX11Screen
+ * @screen: a `GdkX11Screen`
*
- * Returns the screen of a #GdkX11Screen.
+ * Returns the screen of a `GdkX11Screen`.
*
* Returns: (transfer none): an Xlib Screen*
*/
@@ -1176,7 +1176,7 @@ fetch_net_wm_check_window (GdkX11Screen *x11_screen)
/**
* gdk_x11_screen_supports_net_wm_hint:
- * @screen: the relevant #GdkX11Screen.
+ * @screen: the relevant `GdkX11Screen`.
* @property_name: name of the WM property
*
* This function is specific to the X11 backend of GDK, and indicates
@@ -1189,7 +1189,7 @@ fetch_net_wm_check_window (GdkX11Screen *x11_screen)
* is that your application can start up before the window manager
* does when the user logs in, and before the window manager starts
* gdk_x11_screen_supports_net_wm_hint() will return %FALSE for every property.
- * You can monitor the window_manager_changed signal on #GdkX11Screen to detect
+ * You can monitor the window_manager_changed signal on `GdkX11Screen` to detect
* a window manager change.
*
* Returns: %TRUE if the window manager supports @property
@@ -1263,7 +1263,7 @@ gdk_x11_screen_supports_net_wm_hint (GdkX11Screen *x11_screen,
/**
* gdk_x11_screen_get_window_manager_name:
- * @screen: a #GdkX11Screen
+ * @screen: a `GdkX11Screen`
*
* Returns the name of the window manager for @screen.
*
@@ -1378,7 +1378,7 @@ get_netwm_cardinal_property (GdkX11Screen *x11_screen,
/**
* gdk_x11_screen_get_number_of_desktops:
- * @screen: a #GdkX11Screen
+ * @screen: a `GdkX11Screen`
*
* Returns the number of workspaces for @screen when running under a
* window manager that supports multiple workspaces, as described
@@ -1395,7 +1395,7 @@ gdk_x11_screen_get_number_of_desktops (GdkX11Screen *screen)
/**
* gdk_x11_screen_get_current_desktop:
- * @screen: a #GdkX11Screen
+ * @screen: a `GdkX11Screen`
*
* Returns the current workspace for @screen when running under a
* window manager that supports multiple workspaces, as described
diff --git a/gdk/x11/gdkselection-x11.c b/gdk/x11/gdkselection-x11.c
index 4b9d150a6d..bfb64f4a18 100644
--- a/gdk/x11/gdkselection-x11.c
+++ b/gdk/x11/gdkselection-x11.c
@@ -34,7 +34,7 @@
/**
* gdk_x11_display_text_property_to_text_list:
- * @display: (type GdkX11Display): The #GdkDisplay where the encoding is defined
+ * @display: (type GdkX11Display): The `GdkDisplay` where the encoding is defined
* @encoding: a string representing the encoding. The most
* common values for this are "STRING", or "COMPOUND_TEXT".
* This is value used as the type for the property
@@ -271,7 +271,7 @@ _gdk_x11_display_text_property_to_utf8_list (GdkDisplay *display,
/**
* gdk_x11_display_string_to_compound_text:
- * @display: (type GdkX11Display): the #GdkDisplay where the encoding is defined
+ * @display: (type GdkX11Display): the `GdkDisplay` where the encoding is defined
* @str: a nul-terminated string
* @encoding: (out) (transfer none): location to store the encoding
* (to be used as the type for the property)
@@ -326,7 +326,7 @@ gdk_x11_display_string_to_compound_text (GdkDisplay *display,
/**
* gdk_x11_display_utf8_to_compound_text:
- * @display: (type GdkX11Display): a #GdkDisplay
+ * @display: (type GdkX11Display): a `GdkDisplay`
* @str: a UTF-8 string
* @encoding: (out) (transfer none): location to store resulting encoding
* @format: (out): location to store format of the result
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index 2cfd3b2e38..e4952f2c7b 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -179,7 +179,7 @@ _gdk_x11_surface_get_toplevel (GdkSurface *surface)
/*
* gdk_x11_surface_update_size:
- * @self: a #GdkX11Surface
+ * @self: a `GdkX11Surface`
* @width: the new width of the surface
* @height: the new height of the surface
* @scale: the new scale of the surface
@@ -2069,7 +2069,7 @@ gdk_x11_surface_lower (GdkSurface *surface)
/**
* gdk_x11_surface_move_to_current_desktop:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
*
* Moves the surface to the correct workspace when running under a
* window manager that supports multiple workspaces, as described
@@ -2132,7 +2132,7 @@ get_netwm_cardinal_property (GdkSurface *surface,
/**
* gdk_x11_surface_get_desktop:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
*
* Gets the number of the workspace @surface is on.
*
@@ -2148,7 +2148,7 @@ gdk_x11_surface_get_desktop (GdkSurface *surface)
/**
* gdk_x11_surface_move_to_desktop:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
* @desktop: the number of the workspace to move the surface to
*
* Moves the surface to the given workspace when running unde a
@@ -2351,7 +2351,7 @@ gdk_x11_surface_set_modal_hint (GdkSurface *surface,
/**
* gdk_x11_surface_set_skip_taskbar_hint:
- * @surface: (type GdkX11Surface): a native #GdkSurface
+ * @surface: (type GdkX11Surface): a native `GdkSurface`
* @skips_taskbar: %TRUE to skip taskbars
*
* Sets a hint on @surface that taskbars should not
@@ -2377,7 +2377,7 @@ gdk_x11_surface_set_skip_taskbar_hint (GdkSurface *surface,
/**
* gdk_x11_surface_set_skip_pager_hint:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
* @skips_pager: %TRUE to skip pagers
*
* Sets a hint on @surface that pagers should not
@@ -2403,7 +2403,7 @@ gdk_x11_surface_set_skip_pager_hint (GdkSurface *surface,
/**
* gdk_x11_surface_set_urgency_hint:
- * @surface: (type GdkX11Surface): a native #GdkSurface
+ * @surface: (type GdkX11Surface): a native `GdkSurface`
* @urgent: %TRUE to indicate urgenct attention needed
*
* Sets a hint on @surface that it needs user attention.
@@ -2995,7 +2995,7 @@ gdk_x11_surface_set_input_region (GdkSurface *surface,
/**
* gdk_x11_surface_set_user_time:
- * @surface: (type GdkX11Surface): A toplevel #GdkSurface
+ * @surface: (type GdkX11Surface): A toplevel `GdkSurface`
* @timestamp: An XServer timestamp to which the property should be set
*
* The application can use this call to update the _NET_WM_USER_TIME
@@ -3057,7 +3057,7 @@ gdk_x11_surface_set_user_time (GdkSurface *surface,
/**
* gdk_x11_surface_set_utf8_property:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
* @name: Property name, will be interned as an X atom
* @value: (nullable): Property value, or %NULL to delete
*
@@ -3092,7 +3092,7 @@ gdk_x11_surface_set_utf8_property (GdkSurface *surface,
/**
* gdk_x11_surface_set_theme_variant:
- * @surface: (type GdkX11Surface): a #GdkSurface
+ * @surface: (type GdkX11Surface): a `GdkSurface`
* @variant: the theme variant to export
*
* GTK applications can request a dark theme variant. In order to
@@ -3537,7 +3537,7 @@ gdk_x11_surface_unfullscreen (GdkSurface *surface)
/**
* gdk_x11_surface_get_group:
- * @surface: (type GdkX11Surface): The #GdkSurface
+ * @surface: (type GdkX11Surface): The `GdkSurface`
*
* Returns the group this surface belongs to.
*
@@ -3558,8 +3558,8 @@ gdk_x11_surface_get_group (GdkSurface *surface)
/**
* gdk_x11_surface_set_group:
- * @surface: (type GdkX11Surface): a native #GdkSurface
- * @leader: a #GdkSurface
+ * @surface: (type GdkX11Surface): a native `GdkSurface`
+ * @leader: a `GdkSurface`
*
* Sets the group leader of @surface to be @leader.
* See the ICCCM for details.
@@ -4660,9 +4660,9 @@ gdk_x11_get_server_time (GdkSurface *surface)
/**
* gdk_x11_surface_get_xid:
- * @surface: (type GdkX11Surface): a native #GdkSurface.
+ * @surface: (type GdkX11Surface): a native `GdkSurface`.
*
- * Returns the X resource (surface) belonging to a #GdkSurface.
+ * Returns the X resource (surface) belonging to a `GdkSurface`.
*
* Returns: the ID of @drawable’s X resource.
**/
@@ -4685,7 +4685,7 @@ gdk_x11_surface_get_scale_factor (GdkSurface *surface)
/**
* gdk_x11_surface_set_frame_sync_enabled:
- * @surface: (type GdkX11Surface): a native #GdkSurface
+ * @surface: (type GdkX11Surface): a native `GdkSurface`
* @frame_sync_enabled: whether frame-synchronization should be enabled
*
* This function can be used to disable frame synchronization for a surface.
diff --git a/gdk/x11/gdkvisual-x11.c b/gdk/x11/gdkvisual-x11.c
index a6dce8699f..1e48e477a7 100644
--- a/gdk/x11/gdkvisual-x11.c
+++ b/gdk/x11/gdkvisual-x11.c
@@ -285,12 +285,12 @@ _gdk_x11_screen_init_visuals (GdkX11Screen *x11_screen,
/*< private >
* gdk_x11_screen_lookup_visual:
- * @screen: a #GdkX11Screen.
+ * @screen: a `GdkX11Screen`
* @xvisualid: an X Visual ID.
*
- * Looks up the #GdkVisual for a particular screen and X Visual ID.
+ * Looks up the `GdkVisual` for a particular screen and X Visual ID.
*
- * Returns: (transfer none) (nullable) (type GdkX11Visual): the #GdkVisual
+ * Returns: (transfer none) (nullable) (type GdkX11Visual): the `GdkVisual`
*/
GdkX11Visual *
gdk_x11_screen_lookup_visual (GdkX11Screen *x11_screen,
@@ -307,9 +307,9 @@ gdk_x11_screen_lookup_visual (GdkX11Screen *x11_screen,
/*< private >
* gdk_x11_visual_get_xvisual:
- * @visual: a #GdkX11Visual.
+ * @visual: a `GdkX11Visual`
*
- * Returns the X visual belonging to a #GdkX11Visual.
+ * Returns the X visual belonging to a `GdkX11Visual`.
*
* Returns: (transfer none): an Xlib Visual*.
**/
diff --git a/gdk/x11/gdkx11display.h b/gdk/x11/gdkx11display.h
index 5c6a0c36e7..8633eadddb 100644
--- a/gdk/x11/gdkx11display.h
+++ b/gdk/x11/gdkx11display.h
@@ -69,9 +69,9 @@ Cursor gdk_x11_display_get_xcursor (GdkDisplay *display,
/**
* GDK_DISPLAY_XDISPLAY:
- * @display: a #GdkDisplay
+ * @display: a `GdkDisplay`
*
- * Returns the display of a #GdkDisplay.
+ * Returns the display of a `GdkDisplay`.
*
* Returns: an Xlib Display*
*/
diff --git a/gdk/x11/gdkx11surface.h b/gdk/x11/gdkx11surface.h
index 63b11ecf04..32fa80db76 100644
--- a/gdk/x11/gdkx11surface.h
+++ b/gdk/x11/gdkx11surface.h
@@ -80,9 +80,9 @@ void gdk_x11_surface_set_frame_sync_enabled (GdkSurface *surface,
/**
* GDK_SURFACE_XDISPLAY:
- * @win: a #GdkSurface.
+ * @win: a `GdkSurface`
*
- * Returns the display of a #GdkSurface.
+ * Returns the display of a `GdkSurface`.
*
* Returns: an Xlib Display*.
*/
@@ -90,9 +90,9 @@ void gdk_x11_surface_set_frame_sync_enabled (GdkSurface *surface,
/**
* GDK_SURFACE_XID:
- * @win: a #GdkSurface.
+ * @win: a `GdkSurface`
*
- * Returns the X window belonging to a #GdkSurface.
+ * Returns the X window belonging to a `GdkSurface`.
*
* Returns: the Xlib Window of @win.
*/
diff --git a/gdk/x11/gdkx11utils.h b/gdk/x11/gdkx11utils.h
index c210766ed5..0ed21dfefb 100644
--- a/gdk/x11/gdkx11utils.h
+++ b/gdk/x11/gdkx11utils.h
@@ -41,7 +41,7 @@ G_BEGIN_DECLS
* @xid: XID to stuff into the pointer
*
* Converts an XID into a @gpointer. This is useful with data structures
- * that use pointer arguments such as #GHashTable. Use GDK_POINTER_TO_XID()
+ * that use pointer arguments such as `GHashTable`. Use GDK_POINTER_TO_XID()
* to convert the argument back to an XID.
*/
#define GDK_XID_TO_POINTER(xid) GUINT_TO_POINTER(xid)