Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
98838df2
Commit
98838df2
authored
Nov 24, 2010
by
Benjamin Otte
Browse files
gdk: Make GdkWindow->impl a GdkWindowImpl
parent
e3013a5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
gdk/gdkinternals.h
View file @
98838df2
...
...
@@ -32,6 +32,7 @@
#include
<gio/gio.h>
#include
<gdk/gdktypes.h>
#include
<gdk/gdkwindow.h>
#include
<gdk/gdkwindowimpl.h>
#include
<gdk/gdkprivate.h>
G_BEGIN_DECLS
...
...
@@ -186,7 +187,7 @@ struct _GdkWindow
{
GObject
parent_instance
;
Gdk
Drawable
*
impl
;
/* window-system-specific delegate object */
Gdk
WindowImpl
*
impl
;
/* window-system-specific delegate object */
GdkWindow
*
parent
;
GdkVisual
*
visual
;
...
...
gdk/gdkwindow.c
View file @
98838df2
...
...
@@ -1473,11 +1473,11 @@ is_parent_of (GdkWindow *parent,
static
void
change_impl
(
GdkWindow
*
private
,
GdkWindow
*
impl_window
,
Gdk
Drawable
*
new
)
Gdk
WindowImpl
*
new
)
{
GList
*
l
;
GdkWindow
*
child
;
Gdk
Drawable
*
old_impl
;
Gdk
WindowImpl
*
old_impl
;
GdkWindow
*
old_impl_window
;
old_impl
=
private
->
impl
;
...
...
@@ -1777,7 +1777,7 @@ gboolean
gdk_window_ensure_native
(
GdkWindow
*
window
)
{
GdkWindow
*
impl_window
;
Gdk
Drawable
*
new_impl
,
*
old_impl
;
Gdk
WindowImpl
*
new_impl
,
*
old_impl
;
GdkScreen
*
screen
;
GdkWindow
*
above
;
GList
listhead
;
...
...
@@ -3398,7 +3398,7 @@ gdk_window_flush_if_exposing (GdkWindow *window)
static
void
gdk_window_flush_recursive_helper
(
GdkWindow
*
window
,
Gdk
Drawable
*
impl
)
Gdk
WindowImpl
*
impl
)
{
GdkWindow
*
child
;
GList
*
l
;
...
...
@@ -6054,7 +6054,7 @@ move_native_children (GdkWindow *private)
static
gboolean
collect_native_child_region_helper
(
GdkWindow
*
window
,
Gdk
Drawable
*
impl
,
Gdk
WindowImpl
*
impl
,
cairo_region_t
**
region
,
int
x_offset
,
int
y_offset
)
...
...
gdk/x11/gdkwindow-x11.c
View file @
98838df2
...
...
@@ -702,7 +702,7 @@ _gdk_window_impl_new (GdkWindow *window,
display_x11
=
GDK_DISPLAY_X11
(
GDK_SCREEN_DISPLAY
(
screen
));
impl
=
g_object_new
(
GDK_TYPE_WINDOW_IMPL_X11
,
NULL
);
window
->
impl
=
(
GdkDrawable
*
)
impl
;
window
->
impl
=
GDK_WINDOW_IMPL
(
impl
)
;
impl
->
wrapper
=
GDK_WINDOW
(
window
);
xdisplay
=
screen_x11
->
xdisplay
;
...
...
@@ -5536,8 +5536,6 @@ gdk_x11_get_server_time (GdkWindow *window)
XID
gdk_x11_window_get_xid
(
GdkWindow
*
window
)
{
GdkDrawable
*
impl
;
/* Try to ensure the window has a native window */
if
(
!
_gdk_window_has_impl
(
window
))
{
...
...
@@ -5556,9 +5554,7 @@ gdk_x11_window_get_xid (GdkWindow *window)
return
None
;
}
impl
=
window
->
impl
;
return
((
GdkWindowImplX11
*
)
impl
)
->
xid
;
return
GDK_WINDOW_IMPL_X11
(
window
->
impl
)
->
xid
;
}
static
void
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment