[gtk+/wip/attente/popup-at: 1/5] gdkwindow: store shadow sizes
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/attente/popup-at: 1/5] gdkwindow: store shadow sizes
- Date: Thu, 16 Jun 2016 21:47:29 +0000 (UTC)
commit b4a59b4ba058e8b8d545e160fa5e7f55cb2df60c
Author: William Hua <william hua canonical com>
Date: Thu Jun 16 11:20:35 2016 -0400
gdkwindow: store shadow sizes
gdk/gdkinternals.h | 4 ++++
gdk/gdkwindow.c | 5 +++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 33aca33..1efa75e 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -356,6 +356,10 @@ struct _GdkWindow
gint abs_x, abs_y; /* Absolute offset in impl */
gint width, height;
+ gint shadow_top;
+ gint shadow_left;
+ gint shadow_right;
+ gint shadow_bottom;
guint num_offscreen_children;
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index b9c5843..d5ffc53 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -11752,6 +11752,11 @@ gdk_window_set_shadow_width (GdkWindow *window,
g_return_if_fail (!GDK_WINDOW_DESTROYED (window));
g_return_if_fail (left >= 0 && right >= 0 && top >= 0 && bottom >= 0);
+ window->shadow_top = top;
+ window->shadow_left = left;
+ window->shadow_right = right;
+ window->shadow_bottom = bottom;
+
impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
if (impl_class->set_shadow_width)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]