From f2ad5ddbb6a1a937221331729c61763a48c196f8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 26 Dec 2017 11:19:24 -0500 Subject: [PATCH] Some GdkMonitor documentation additions Document the ::invalidated signal. --- gdk/gdkmonitor.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gdk/gdkmonitor.c b/gdk/gdkmonitor.c index d36670e806..536e891a83 100644 --- a/gdk/gdkmonitor.c +++ b/gdk/gdkmonitor.c @@ -37,6 +37,13 @@ * gdk_display_get_monitor_at_window(). */ +/** + * GdkMonitor: + * + * The GdkMonitor struct contains only private fields and should not + * be accessed directly. + */ + enum { PROP_0, PROP_DISPLAY, @@ -247,6 +254,13 @@ gdk_monitor_class_init (GdkMonitorClass *class) g_object_class_install_properties (object_class, LAST_PROP, props); + /** + * GdkMonitor::invalidate: + * @monitor: the object on which this signal was emitted + * + * The ::invalidate signal gets emitted when the output represented + * by @monitor gets disconnected. + */ signals[INVALIDATE] = g_signal_new (g_intern_static_string ("invalidate"), G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_FIRST,