[gtk+/wip/attachment-rectangle] gdk: add attachment rectangle origin parameter
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/attachment-rectangle] gdk: add attachment rectangle origin parameter
- Date: Sat, 15 Aug 2015 00:16:20 +0000 (UTC)
commit 6559bb0066ff8e685871310266b9702c734b5b71
Author: William Hua <william hua canonical com>
Date: Fri Aug 14 20:10:24 2015 -0400
gdk: add attachment rectangle origin parameter
gdk/gdkwindow.c | 7 +++++--
gdk/gdkwindow.h | 1 +
gdk/gdkwindowimpl.h | 1 +
3 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index c9d87b2..0358fba 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -11339,11 +11339,13 @@ gdk_window_show_window_menu (GdkWindow *window,
/**
* gdk_window_set_attachment_rectangle:
* @window: a #GdkWindow
+ * @origin: (allow-none): a #GdkPoint or %NULL
* @rect: (allow-none): a #GdkRectangle or %NULL
* @options: #GdkAttachmentOptions
*
* An attachment rectangle is a rectangle that a window needs to be
- * aligned with.
+ * aligned with. The rectangle is relative to the specified screen
+ * origin.
*
* The window manager might want this information to do more active
* positioning of a window. For example, menus and tooltips might
@@ -11352,6 +11354,7 @@ gdk_window_show_window_menu (GdkWindow *window,
*/
void
gdk_window_set_attachment_rectangle (GdkWindow *window,
+ const GdkPoint *origin,
const GdkRectangle *rect,
GdkAttachmentOptions options)
{
@@ -11363,5 +11366,5 @@ gdk_window_set_attachment_rectangle (GdkWindow *window,
impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
if (impl_class->set_attachment_rectangle)
- impl_class->set_attachment_rectangle (window, rect, options);
+ impl_class->set_attachment_rectangle (window, origin, rect, options);
}
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index 3db75aa..746d996 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -1160,6 +1160,7 @@ GdkGLContext * gdk_window_create_gl_context (GdkWindow *window,
GDK_AVAILABLE_IN_3_18
void gdk_window_set_attachment_rectangle (GdkWindow *window,
+ const GdkPoint *origin,
const GdkRectangle *rect,
GdkAttachmentOptions options);
diff --git a/gdk/gdkwindowimpl.h b/gdk/gdkwindowimpl.h
index dfde9fb..1f08e35 100644
--- a/gdk/gdkwindowimpl.h
+++ b/gdk/gdkwindowimpl.h
@@ -302,6 +302,7 @@ struct _GdkWindowImplClass
cairo_region_t *update_area);
void (*set_attachment_rectangle) (GdkWindow *window,
+ const GdkPoint *origin,
const GdkRectangle *rect,
GdkAttachmentOptions options);
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]