[gtk+/rendering-cleanup: 38/65] gdk: Remove _gdk_window_impl_get_type() function



commit dfd482b6786d67fc67dadeb50f4d37bbcc008ac0
Author: Benjamin Otte <otte redhat com>
Date:   Tue Nov 23 01:03:55 2010 +0100

    gdk: Remove _gdk_window_impl_get_type() function
    
    It was only used in the backends, and they can use the correct type
    directly.

 gdk/gdkinternals.h            |    3 ---
 gdk/quartz/gdkwindow-quartz.c |    8 +-------
 gdk/win32/gdkwindow-win32.c   |   12 +++---------
 gdk/x11/gdkwindow-x11.c       |   12 +++---------
 4 files changed, 7 insertions(+), 28 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 0fe151d..e45352f 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -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;
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 0f6745b..634b20e 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -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);
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index 7a8cf14..5cd3afb 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -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);
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index f24ca3e..3fd3eb9 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -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));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]