[gtk+] Implement _gdk_win32_window_destroy() and more cleanup



commit e7737dbd19148c4728e190ef93249634e4dcd6b0
Author: Hans Breuer <hans breuer org>
Date:   Sun Jul 12 22:32:28 2009 +0200

    Implement _gdk_win32_window_destroy() and more cleanup
    
    Implement _gdk_win32_window_destroy() by just renaming
    _gdk_windowing_window_destroy(), removed superfuous stub.
    
    Also cleaned up implementations of  gdk_win32_window_set_background()
    and gdk_win32_window_set_back_pixmap() - removed stuff now done at the
    respective gdk_window_*() function.

 gdk/win32/gdkwindow-win32.c |   29 ++---------------------------
 1 files changed, 2 insertions(+), 27 deletions(-)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index 91a70e0..d1d151c 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -781,7 +781,7 @@ gdk_window_lookup (GdkNativeWindow hwnd)
 }
 
 void
-_gdk_windowing_window_destroy (GdkWindow *window,
+_gdk_win32_window_destroy (GdkWindow *window,
 			       gboolean   recursing,
 			       gboolean   foreign_destroy)
 {
@@ -1866,7 +1866,6 @@ static void
 gdk_win32_window_set_background (GdkWindow      *window,
 				 const GdkColor *color)
 {
-#if 0
   GdkWindowObject *private = (GdkWindowObject *)window;
   
   GDK_NOTE (MISC, g_print ("gdk_window_set_background: %p: %s\n",
@@ -1874,15 +1873,6 @@ gdk_win32_window_set_background (GdkWindow      *window,
 			   _gdk_win32_color_to_string (color)));
 
   private->bg_color = *color;
-
-  if (private->bg_pixmap &&
-      private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&
-      private->bg_pixmap != GDK_NO_BG)
-    {
-      g_object_unref (private->bg_pixmap);
-      private->bg_pixmap = NULL;
-    }
-#endif
 }
 
 static void
@@ -1891,15 +1881,7 @@ gdk_win32_window_set_back_pixmap (GdkWindow *window,
 {
   GdkWindowObject *private = (GdkWindowObject *)window;
 
-  if (private->bg_pixmap &&
-      private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&
-      private->bg_pixmap != GDK_NO_BG)
-    g_object_unref (private->bg_pixmap);
-
-  if (pixmap == GDK_PARENT_RELATIVE_BG || pixmap == GDK_NO_BG)
-    {
-      private->bg_pixmap = pixmap;
-    }
+  /* TODO_CSW? but win32 has no XSetWindowBackgroundPixmap */
 }
 
 static void
@@ -3594,13 +3576,6 @@ _gdk_windowing_window_get_input_shape (GdkWindow *window)
   return _gdk_windowing_window_get_shape (window);
 }
 
-static void
-_gdk_win32_window_destroy (GdkWindow *window,
-			   gboolean   recursing,
-			   gboolean   foreign_destroy)
-{
-}
-
 static gboolean
 _gdk_win32_window_queue_antiexpose (GdkWindow *window,
 				    GdkRegion *area)



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