summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-07-31 19:11:23 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2020-07-31 20:56:36 +0200
commit371cdf32503871f3a17a5dc483dfe438c7702ed9 (patch)
tree467f187ee31f14efac52489f89969fc6eb7d2ff7 /gdk
parent1087ff48f03097523a2138e47e7a6e09183ab5ae (diff)
downloadgtk+-371cdf32503871f3a17a5dc483dfe438c7702ed9.tar.gz
gdk/x11: Add annotations to improve GIR API
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkdisplay-x11.c8
-rw-r--r--gdk/x11/gdkglcontext-x11.c2
-rw-r--r--gdk/x11/gdkmonitor-x11.c6
-rw-r--r--gdk/x11/gdksurface-x11.c2
-rw-r--r--gdk/x11/gdkx11display.h2
5 files changed, 12 insertions, 8 deletions
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index 92a3e7dbf1..e895a07867 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -1831,7 +1831,7 @@ gdk_x11_display_has_pending (GdkDisplay *display)
/**
* gdk_x11_display_get_default_group:
- * @display: 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.
@@ -2773,7 +2773,7 @@ gdk_x11_display_get_max_request_size (GdkDisplay *display)
/**
* gdk_x11_display_get_screen:
- * @display: a #GdkX11Display
+ * @display: (type GdkX11Display): a #GdkX11Display
*
* Retrieves the #GdkX11Screen of the @display.
*
@@ -2845,7 +2845,7 @@ gdk_x11_display_get_monitors (GdkDisplay *display)
/**
* gdk_x11_display_get_primary_monitor:
- * @self: a #GdkDisplay
+ * @display: (type GdkX11Display): a #GdkDisplay
*
* Gets the primary monitor for the display.
*
@@ -2968,7 +2968,7 @@ gdk_x11_display_class_init (GdkX11DisplayClass * class)
/**
* GdkX11Display::xevent:
- * @display: the object on which the signal is emitted
+ * @display: (type GdkX11Display): the object on which the signal is emitted
* @xevent: a pointer to the XEvent to process
*
* The ::xevent signal is a low level signal that is emitted
diff --git a/gdk/x11/gdkglcontext-x11.c b/gdk/x11/gdkglcontext-x11.c
index d3f6d7df42..d628dbcaf2 100644
--- a/gdk/x11/gdkglcontext-x11.c
+++ b/gdk/x11/gdkglcontext-x11.c
@@ -1511,7 +1511,7 @@ gdk_x11_display_make_gl_context_current (GdkDisplay *display,
/**
* gdk_x11_display_get_glx_version:
- * @display: 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/gdkmonitor-x11.c b/gdk/x11/gdkmonitor-x11.c
index 8d7a4e5807..3227e0bd1b 100644
--- a/gdk/x11/gdkmonitor-x11.c
+++ b/gdk/x11/gdkmonitor-x11.c
@@ -63,7 +63,7 @@ gdk_monitor_has_fullscreen_window (GdkMonitor *monitor)
/**
* gdk_x11_monitor_get_workarea:
- * @monitor: a #GdkMonitor
+ * @monitor: (type GdkX11Monitor): a #GdkMonitor
* @workarea: (out): a #GdkRectangle to be filled with
* the monitor workarea
*
@@ -114,6 +114,10 @@ gdk_x11_monitor_class_init (GdkX11MonitorClass *class)
{
}
+/**
+ * gdk_x11_monitor_get_output:
+ * @monitor: (type GdkX11Monitor): a #GdkMonitor
+ */
XID
gdk_x11_monitor_get_output (GdkMonitor *monitor)
{
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index 9ca81d8e9f..d797368d79 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -3270,7 +3270,7 @@ gdk_x11_surface_unfullscreen (GdkSurface *surface)
/**
* gdk_x11_surface_get_group:
- * @surface: The #GdkSurface
+ * @surface: (type GdkX11Surface): The #GdkSurface
*
* Returns the group this surface belongs to.
*
diff --git a/gdk/x11/gdkx11display.h b/gdk/x11/gdkx11display.h
index 299864d217..5c6a0c36e7 100644
--- a/gdk/x11/gdkx11display.h
+++ b/gdk/x11/gdkx11display.h
@@ -106,7 +106,7 @@ GDK_AVAILABLE_IN_ALL
GdkX11Screen *gdk_x11_display_get_screen (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
-GdkMonitor * gdk_x11_display_get_primary_monitor (GdkDisplay *self);
+GdkMonitor * gdk_x11_display_get_primary_monitor (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
void gdk_x11_display_grab (GdkDisplay *display);