mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
gdkwindow: store shadow sizes
https://bugzilla.gnome.org/show_bug.cgi?id=756579
This commit is contained in:
parent
2235f211e3
commit
0a5bee2751
@ -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;
|
||||
|
||||
|
@ -11771,6 +11771,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)
|
||||
|
Loading…
Reference in New Issue
Block a user