]> Pileus Git - ~andy/gtk/commitdiff
Remove code that has been permanently ifdeffed out for two years.
authorTor Lillqvist <tml@novell.com>
Tue, 8 Nov 2005 22:27:47 +0000 (22:27 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Tue, 8 Nov 2005 22:27:47 +0000 (22:27 +0000)
2005-11-09  Tor Lillqvist  <tml@novell.com>

* gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
Remove code that has been permanently ifdeffed out for two years.

ChangeLog
ChangeLog.pre-2-10
gdk/win32/gdkwindow-win32.c

index ae249425f8b9217e49997492bbe88d71e1bdde12..193ee8605113344074e56536d9ece84742c66102 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-09  Tor Lillqvist  <tml@novell.com>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
+       Remove code that has been permanently ifdeffed out for two years.
+
 2005-11-08  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
index ae249425f8b9217e49997492bbe88d71e1bdde12..193ee8605113344074e56536d9ece84742c66102 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-09  Tor Lillqvist  <tml@novell.com>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
+       Remove code that has been permanently ifdeffed out for two years.
+
 2005-11-08  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
index f79192c29bb4d30f271d15a0bb5f613275782b4d..e955fc795030975580fee0dce7b938d3b8f5e16f 100644 (file)
@@ -1611,11 +1611,6 @@ gdk_window_set_geometry_hints (GdkWindow      *window,
                               GdkWindowHints  geom_mask)
 {
   GdkWindowImplWin32 *impl;
-#if 0
-  WINDOWPLACEMENT size_hints;
-  RECT rect;
-  gint new_width = 0, new_height = 0;
-#endif
 
   g_return_if_fail (GDK_IS_WINDOW (window));
   
@@ -1637,92 +1632,18 @@ gdk_window_set_geometry_hints (GdkWindow      *window,
     {
       GDK_NOTE (MISC, g_print ("... MIN_SIZE: %dx%d\n",
                               geometry->min_width, geometry->min_height));
-
-#if 0
-      /* Check if the current size of the window is in bounds */
-      GetClientRect (GDK_WINDOW_HWND (window), &rect);
-
-      if (rect.right < geometry->min_width &&
-         rect.bottom < geometry->min_height)
-       {
-         new_width = geometry->min_width;
-         new_height = geometry->min_height;
-       }
-      else if (rect.right < geometry->min_width)
-       {
-         new_width = geometry->min_width;
-         new_height = rect.bottom;
-       }
-      else if (rect.bottom < geometry->min_height)
-       {
-         new_width = rect.right;
-         new_height = geometry->min_height;
-       }
-#endif
     }
   
   if (geom_mask & GDK_HINT_MAX_SIZE)
     {
       GDK_NOTE (MISC, g_print ("... MAX_SIZE: %dx%d\n",
                               geometry->max_width, geometry->max_height));
-
-#if 0
-      /* Check if the current size of the window is in bounds */
-      GetClientRect (GDK_WINDOW_HWND (window), &rect);
-
-      if (rect.right > geometry->max_width &&
-         rect.bottom > geometry->max_height)
-       {
-         new_width = geometry->max_width;
-         new_height = geometry->max_height;
-       }
-      else if (rect.right > geometry->max_width)
-       {
-         new_width = geometry->max_width;
-         new_height = rect.bottom;
-       }
-      else if (rect.bottom > geometry->max_height)
-       {
-         new_width = rect.right;
-         new_height = geometry->max_height;
-       }
-#endif
     }
 
-#if 0
-  /* Apply new size constraints */
-  if (new_width != 0 && new_height != 0)
-    gdk_window_resize (window, new_width, new_height);
-#endif
-
   if (geom_mask & GDK_HINT_BASE_SIZE)
     {
       GDK_NOTE (MISC, g_print ("... BASE_SIZE: %dx%d\n",
                               geometry->base_width, geometry->base_height));
-
-#if 0
-      size_hints.length = sizeof (size_hints);
-
-      if (API_CALL (GetWindowPlacement, (GDK_WINDOW_HWND (window), &size_hints)))
-       {
-         GDK_NOTE (MISC,
-                   g_print ("... rcNormalPosition: (%ld,%ld)--(%ld,%ld)\n",
-                            size_hints.rcNormalPosition.left,
-                            size_hints.rcNormalPosition.top,
-                            size_hints.rcNormalPosition.right,
-                            size_hints.rcNormalPosition.bottom));
-         size_hints.rcNormalPosition.right =
-           size_hints.rcNormalPosition.left + geometry->base_width;
-         size_hints.rcNormalPosition.bottom =
-           size_hints.rcNormalPosition.top + geometry->base_height;
-         GDK_NOTE (MISC, g_print ("... setting: rcNormal: (%ld,%ld)--(%ld,%ld)\n",
-                                  size_hints.rcNormalPosition.left,
-                                  size_hints.rcNormalPosition.top,
-                                  size_hints.rcNormalPosition.right,
-                                  size_hints.rcNormalPosition.bottom));
-         API_CALL (SetWindowPlacement, (GDK_WINDOW_HWND (window), &size_hints));
-       }
-#endif
     }
   
   if (geom_mask & GDK_HINT_RESIZE_INC)