[gtk+/wip/attach-params: 2/22] gdkwindow: store shadow sizes
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/attach-params: 2/22] gdkwindow: store shadow sizes
- Date: Tue, 2 Feb 2016 16:17:32 +0000 (UTC)
commit c8c9131c77a3b1c764d1584dcfa5fd2d55f0c217
Author: William Hua <william hua canonical com>
Date: Tue Feb 2 09:00:00 2016 -0500
gdkwindow: store shadow sizes
https://bugzilla.gnome.org/show_bug.cgi?id=756579
gdk/gdkinternals.h | 5 +++++
gdk/gdkwindow.c | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index c9aa524..2a8f95b 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -350,6 +350,11 @@ struct _GdkWindow
gint abs_x, abs_y; /* Absolute offset in impl */
gint width, height;
+ gint top_shadow;
+ gint left_shadow;
+ gint right_shadow;
+ gint bottom_shadow;
+
guint num_offscreen_children;
/* The clip region is the part of the window, in window coordinates
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 6995db9..ca0c9fa 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -11512,6 +11512,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->top_shadow = top;
+ window->left_shadow = left;
+ window->right_shadow = right;
+ window->bottom_shadow = 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]