Commit 370d272b authored by Benjamin Otte's avatar Benjamin Otte
Browse files

gdk: Remove _gdk_window_impl_get_type() function

It was only used in the backends, and they can use the correct type
directly.
parent ac4609ec
......@@ -437,9 +437,6 @@ struct _GdkPaintableIface
GType _gdk_paintable_get_type (void) G_GNUC_CONST;
/* Implementation types */
GType _gdk_window_impl_get_type (void) G_GNUC_CONST;
struct GdkAppLaunchContextPrivate
{
GdkDisplay *display;
......
......@@ -473,12 +473,6 @@ _gdk_window_impl_quartz_get_type (void)
return object_type;
}
GType
_gdk_window_impl_get_type (void)
{
return _gdk_window_impl_quartz_get_type ();
}
static const gchar *
get_default_title (void)
{
......@@ -834,7 +828,7 @@ _gdk_window_impl_new (GdkWindow *window,
private = (GdkWindowObject *)window;
impl = g_object_new (_gdk_window_impl_get_type (), NULL);
impl = g_object_new (GDK_TYPE_WINDOW_IMPL_QUARTZ, NULL);
private->impl = (GdkDrawable *)impl;
draw_impl = GDK_DRAWABLE_IMPL_QUARTZ (impl);
draw_impl->wrapper = GDK_DRAWABLE (window);
......
......@@ -99,12 +99,6 @@ _gdk_window_impl_win32_get_type (void)
return object_type;
}
GType
_gdk_window_impl_get_type (void)
{
return _gdk_window_impl_win32_get_type ();
}
static void
gdk_window_impl_win32_init (GdkWindowImplWin32 *impl)
{
......@@ -211,7 +205,7 @@ _gdk_windowing_window_init (GdkScreen *screen)
_gdk_root = g_object_new (GDK_TYPE_WINDOW, NULL);
private = (GdkWindowObject *)_gdk_root;
private->impl = g_object_new (_gdk_window_impl_get_type (), NULL);
private->impl = g_object_new (GDK_TYPE_WINDOW_IMPL_WIN32, NULL);
private->impl_window = private;
private->visual = gdk_screen_get_system_visual (screen);
......@@ -435,7 +429,7 @@ _gdk_window_impl_new (GdkWindow *window,
hparent = GDK_WINDOW_HWND (real_parent);
impl = g_object_new (_gdk_window_impl_get_type (), NULL);
impl = g_object_new (GDK_TYPE_WINDOW_IMPL_WIN32, NULL);
private->impl = (GdkDrawable *)impl;
draw_impl = GDK_DRAWABLE_IMPL_WIN32 (impl);
draw_impl->wrapper = GDK_DRAWABLE (window);
......@@ -641,7 +635,7 @@ gdk_window_foreign_new_for_display (GdkDisplay *display,
window = g_object_new (GDK_TYPE_WINDOW, NULL);
private = (GdkWindowObject *)window;
private->visual = gdk_screen_get_system_visual (_gdk_screen);
private->impl = g_object_new (_gdk_window_impl_get_type (), NULL);
private->impl = g_object_new (GDK_TYPE_WINDOW_IMPL_WIN32, NULL);
impl = GDK_WINDOW_IMPL_WIN32 (private->impl);
draw_impl = GDK_DRAWABLE_IMPL_WIN32 (private->impl);
draw_impl->wrapper = GDK_DRAWABLE (window);
......
......@@ -129,12 +129,6 @@ static void gdk_window_impl_x11_finalize (GObject *object);
G_DEFINE_TYPE (GdkWindowImplX11, gdk_window_impl_x11, GDK_TYPE_WINDOW_IMPL)
GType
_gdk_window_impl_get_type (void)
{
return gdk_window_impl_x11_get_type ();
}
static void
gdk_window_impl_x11_init (GdkWindowImplX11 *impl)
{
......@@ -469,7 +463,7 @@ _gdk_windowing_window_init (GdkScreen * screen)
window = screen_x11->root_window = g_object_new (GDK_TYPE_WINDOW, NULL);
window->impl = g_object_new (_gdk_window_impl_get_type (), NULL);
window->impl = g_object_new (GDK_TYPE_WINDOW_IMPL_X11, NULL);
window->impl_window = window;
window->visual = gdk_screen_get_system_visual (screen);
......@@ -709,7 +703,7 @@ _gdk_window_impl_new (GdkWindow *window,
xparent = GDK_WINDOW_XID (real_parent);
display_x11 = GDK_DISPLAY_X11 (GDK_SCREEN_DISPLAY (screen));
impl = g_object_new (_gdk_window_impl_get_type (), NULL);
impl = g_object_new (GDK_TYPE_WINDOW_IMPL_X11, NULL);
window->impl = (GdkDrawable *)impl;
impl->wrapper = GDK_WINDOW (window);
......@@ -913,7 +907,7 @@ gdk_window_foreign_new_for_display (GdkDisplay *display,
window = g_object_new (GDK_TYPE_WINDOW, NULL);
window->impl = g_object_new (_gdk_window_impl_get_type (), NULL);
window->impl = g_object_new (GDK_TYPE_WINDOW_IMPL_X11, NULL);
window->impl_window = window;
window->visual = gdk_x11_screen_lookup_visual (screen,
XVisualIDFromVisual (attrs.visual));
......
Supports Markdown
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