[gtk+/parser: 6/18] gdk: Remove _gdk_display_create_window()



commit 1e42eb2850ad8919d69037e4f58df66c07973dea
Author: Benjamin Otte <otte redhat com>
Date:   Sun Apr 3 19:38:14 2011 +0200

    gdk: Remove _gdk_display_create_window()
    
    It's not needed anymore now that we rely on the parent window's type.

 gdk/gdkdisplay.c               |    7 -------
 gdk/gdkdisplayprivate.h        |    3 ---
 gdk/quartz/gdkdisplay-quartz.c |    2 --
 gdk/win32/gdkdisplay-win32.c   |    2 --
 gdk/x11/gdkdisplay-x11.c       |    2 --
 5 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 1b8c7e7..572edb4 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -92,7 +92,6 @@ gdk_display_class_init (GdkDisplayClass *class)
   object_class->dispose = gdk_display_dispose;
 
   class->get_app_launch_context = gdk_display_real_get_app_launch_context;
-  class->window_type = GDK_TYPE_WINDOW;
 
   /**
    * GdkDisplay::opened:
@@ -1969,12 +1968,6 @@ _gdk_display_create_window_impl (GdkDisplay       *display,
                                                        attributes_mask);
 }
 
-GdkWindow *
-_gdk_display_create_window (GdkDisplay *display)
-{
-  return g_object_new (GDK_DISPLAY_GET_CLASS (display)->window_type, NULL);
-}
-
 /**
  * gdk_keymap_get_for_display:
  * @display: the #GdkDisplay.
diff --git a/gdk/gdkdisplayprivate.h b/gdk/gdkdisplayprivate.h
index 1126d96..253bcec 100644
--- a/gdk/gdkdisplayprivate.h
+++ b/gdk/gdkdisplayprivate.h
@@ -118,8 +118,6 @@ struct _GdkDisplayClass
 {
   GObjectClass parent_class;
 
-  GType window_type;          /* type for native windows for this display, set in class_init */
-
   G_CONST_RETURN gchar *     (*get_name)           (GdkDisplay *display);
   gint                       (*get_n_screens)      (GdkDisplay *display);
   GdkScreen *                (*get_screen)         (GdkDisplay *display,
@@ -281,7 +279,6 @@ void                _gdk_display_create_window_impl   (GdkDisplay       *display
                                                        GdkEventMask      event_mask,
                                                        GdkWindowAttr    *attributes,
                                                        gint              attributes_mask);
-GdkWindow *         _gdk_display_create_window        (GdkDisplay       *display);
 
 G_END_DECLS
 
diff --git a/gdk/quartz/gdkdisplay-quartz.c b/gdk/quartz/gdkdisplay-quartz.c
index d8ad2a5..e5f64bc 100644
--- a/gdk/quartz/gdkdisplay-quartz.c
+++ b/gdk/quartz/gdkdisplay-quartz.c
@@ -322,8 +322,6 @@ gdk_quartz_display_class_init (GdkQuartzDisplayClass *class)
 
   object_class->finalize = gdk_quartz_display_finalize;
 
-  display_class->window_type = GDK_TYPE_QUARTZ_WINDOW;
-
   display_class->get_name = gdk_quartz_display_get_name;
   display_class->get_n_screens = gdk_quartz_display_get_n_screens;
   display_class->get_screen = gdk_quartz_display_get_screen;
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index 1faa4cf..3a2d42e 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -473,8 +473,6 @@ gdk_win32_display_class_init (GdkWin32DisplayClass *klass)
   object_class->dispose = gdk_win32_display_dispose;
   object_class->finalize = gdk_win32_display_finalize;
 
-  display_class->window_type = GDK_TYPE_WIN32_WINDOW;
-
   display_class->get_name = gdk_win32_display_get_name;
   display_class->get_n_screens = gdk_win32_display_get_n_screens;
   display_class->get_screen = gdk_win32_display_get_screen;
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index c4d7763..5d5277a 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -2642,8 +2642,6 @@ gdk_x11_display_class_init (GdkX11DisplayClass * class)
   object_class->dispose = gdk_x11_display_dispose;
   object_class->finalize = gdk_x11_display_finalize;
 
-  display_class->window_type = GDK_TYPE_X11_WINDOW;
-
   display_class->get_name = gdk_x11_display_get_name;
   display_class->get_n_screens = gdk_x11_display_get_n_screens;
   display_class->get_screen = gdk_x11_display_get_screen;



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