Commit 3e6a4af6 authored by Benjamin Otte's avatar Benjamin Otte

x11: _gdk_x11_drawable_update_size() => _gdk_x11_window_update_size()

parent bb795066
......@@ -693,7 +693,7 @@ gdk_display_x11_translate_event (GdkEventTranslator *translator,
window_private->height = xevent->xconfigure.height;
_gdk_window_update_size (window);
_gdk_x11_drawable_update_size (window_private->impl);
_gdk_x11_window_update_size (GDK_WINDOW_IMPL_X11 (window_private->impl));
_gdk_x11_screen_size_changed (screen, xevent);
}
......@@ -749,7 +749,7 @@ gdk_display_x11_translate_event (GdkEventTranslator *translator,
window_private->height = xevent->xconfigure.height;
_gdk_window_update_size (window);
_gdk_x11_drawable_update_size (window_private->impl);
_gdk_x11_window_update_size (GDK_WINDOW_IMPL_X11 (window_private->impl));
if (window_private->resize_count >= 1)
{
......
......@@ -58,8 +58,6 @@ struct _GdkDrawableImplX11Class
GType _gdk_drawable_impl_x11_get_type (void);
/* Note that the following take GdkDrawableImplX11, not the wrapper drawable */
void _gdk_x11_drawable_update_size (GdkDrawable *drawable);
G_END_DECLS
......
......@@ -171,17 +171,15 @@ _gdk_x11_window_get_toplevel (GdkWindow *window)
static const cairo_user_data_key_t gdk_x11_cairo_key;
/**
* _gdk_x11_drawable_update_size:
* @drawable: a #GdkDrawableImplX11.
* _gdk_x11_window_update_size:
* @impl: a #GdkWindowImplX11.
*
* Updates the state of the drawable (in particular the drawable's
* Updates the state of the window (in particular the drawable's
* cairo surface) when its size has changed.
**/
void
_gdk_x11_drawable_update_size (GdkDrawable *drawable)
_gdk_x11_window_update_size (GdkWindowImplX11 *impl)
{
GdkWindowImplX11 *impl = GDK_WINDOW_IMPL_X11 (drawable);
if (impl->cairo_surface)
{
cairo_xlib_surface_set_size (impl->cairo_surface,
......@@ -1565,7 +1563,7 @@ window_x11_resize (GdkWindow *window,
{
private->width = width;
private->height = height;
_gdk_x11_drawable_update_size (private->impl);
_gdk_x11_window_update_size (GDK_WINDOW_IMPL_X11 (private->impl));
}
else
{
......@@ -1574,7 +1572,7 @@ window_x11_resize (GdkWindow *window,
}
}
_gdk_x11_drawable_update_size (private->impl);
_gdk_x11_window_update_size (GDK_WINDOW_IMPL_X11 (private->impl));
}
static inline void
......@@ -1595,7 +1593,7 @@ window_x11_move_resize (GdkWindow *window,
if (GDK_WINDOW_TYPE (private) == GDK_WINDOW_CHILD)
{
_gdk_window_move_resize_child (window, x, y, width, height);
_gdk_x11_drawable_update_size (private->impl);
_gdk_x11_window_update_size (GDK_WINDOW_IMPL_X11 (private->impl));
}
else
{
......@@ -1613,7 +1611,7 @@ window_x11_move_resize (GdkWindow *window,
private->width = width;
private->height = height;
_gdk_x11_drawable_update_size (private->impl);
_gdk_x11_window_update_size (GDK_WINDOW_IMPL_X11 (private->impl));
}
else
{
......
......@@ -158,10 +158,12 @@ void _gdk_x11_window_tmp_reset_bg (GdkWindow *window,
void _gdk_x11_window_tmp_unset_parent_bg (GdkWindow *window);
void _gdk_x11_window_tmp_reset_parent_bg (GdkWindow *window);
GdkCursor *_gdk_x11_window_get_cursor (GdkWindow *window);
void _gdk_x11_window_get_offsets (GdkWindow *window,
gint *x_offset,
gint *y_offset);
GdkCursor *_gdk_x11_window_get_cursor (GdkWindow *window);
void _gdk_x11_window_get_offsets (GdkWindow *window,
gint *x_offset,
gint *y_offset);
void _gdk_x11_window_update_size (GdkWindowImplX11 *impl);
G_END_DECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment