[gtk+/wip/attente/popup-at: 1/7] gdkwindow: store shadow sizes
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/attente/popup-at: 1/7] gdkwindow: store shadow sizes
- Date: Wed, 13 Jul 2016 14:52:51 +0000 (UTC)
commit a4f01e86b2859f2a21c74cc9ac2847eb2e55709d
Author: William Hua <william hua canonical com>
Date: Thu Jun 16 11:20:35 2016 -0400
gdkwindow: store shadow sizes
https://bugzilla.gnome.org/show_bug.cgi?id=756579
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]