[gimp] libgimpwidgets: add some annotations.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpwidgets: add some annotations.
- Date: Mon, 5 Aug 2019 15:14:21 +0000 (UTC)
commit ddd726e2537a8f0331f916db5519951e11a7885f
Author: Jehan <jehan girinstud io>
Date: Mon Aug 5 17:13:59 2019 +0200
libgimpwidgets: add some annotations.
Fix some (transfer) warnings.
libgimpwidgets/gimpwidgetsutils.c | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/libgimpwidgets/gimpwidgetsutils.c b/libgimpwidgets/gimpwidgetsutils.c
index 47f16ab8e3..3c262bca2d 100644
--- a/libgimpwidgets/gimpwidgetsutils.c
+++ b/libgimpwidgets/gimpwidgetsutils.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]