libgimpwidgets: add some annotations.

Fix some (transfer) warnings.
This commit is contained in:
Jehan
2019-08-05 17:13:59 +02:00
parent c90287ecf5
commit ddd726e253

View File

@ -289,6 +289,12 @@ gimp_label_set_attributes (GtkLabel *label,
pango_attr_list_unref (attrs);
}
/**
* gimp_widget_get_monitor:
* @widget: a #GtkWidget.
*
* Returns: (transfer none): the #GdkMonitor where @widget is current displayed on.
*/
GdkMonitor *
gimp_widget_get_monitor (GtkWidget *widget)
{
@ -318,6 +324,11 @@ gimp_widget_get_monitor (GtkWidget *widget)
return gdk_display_get_monitor_at_point (gdk_display_get_default (), x, y);
}
/**
* gimp_get_monitor_at_pointer:
*
* Returns: (transfer none): the #GdkMonitor where the pointer is.
*/
GdkMonitor *
gimp_get_monitor_at_pointer (void)
{