summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkprivate-win32.h
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-11-09 12:35:56 +0000
committerTor Lillqvist <tml@src.gnome.org>2005-11-09 12:35:56 +0000
commit9b5c5f9db57b86609b6df4bedcd16f0e47868a75 (patch)
tree8c36e62f0781bb2bc3a41c9eb24ddc12c9fb9d06 /gdk/win32/gdkprivate-win32.h
parent64f1e8378b3c9e8cb1c900a1c5ed1a78edd37281 (diff)
downloadgdk-pixbuf-9b5c5f9db57b86609b6df4bedcd16f0e47868a75.tar.gz
Remove unnecessary includes.
2005-11-09 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkwindow-win32.c: Remove unnecessary includes. (_gdk_win32_get_adjusted_client_rect): Remove this two-line function which was used only in one place. (get_outer_rect): Use _gdk_win32_adjust_client_rect(). (gdk_window_set_geometry_hints): If we have identical minimum and maximum size hints, remove the resize and maximize decorations/functions. (#104514) If we have a maximum size hint, remove the maximize decoration/function but ensure the resize decoration/function is available. Otherwise ensure both resize and maximize decorations/functions are there. (set_or_clear_style_bits): Factored out common code from gdk_window_set_decorations() and gdk_window_set_functions(). Hack the window style setting once more: Only touch the window style bits corresponding to the GdkWMDecoration or GdkWMFunction parameter bitmasks. Hopefully this finally is the correct thing to do. We used to clear all other bits than those that were being set, or set all other bits than those that were being cleared. Take into account that adding or removing decorations leaves the window's outer size unchanged, i.e., the client area's size and position change. This is apparently not what we want, so change also the window's (outer) position and size appropriately so that the client area's position and size stay constant. gtk-demo's color selector dialog is now non-resizable like on X11 (I tested with metacity in GNOME). Torn off menus are shrinkable vertically but have a maximum size, and are not maximizable or minimizable, like on X11. (gdk_window_set_decorations, gdk_window_set_functions): Let set_or_clear_decorations() do most of the job. * gdk/win32/gdkprivate-win32.h: Remove declaration of _gdk_win32_get_adjusted_client_rect().
Diffstat (limited to 'gdk/win32/gdkprivate-win32.h')
-rw-r--r--gdk/win32/gdkprivate-win32.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdk/win32/gdkprivate-win32.h b/gdk/win32/gdkprivate-win32.h
index 2ec70d49f..0489dd36c 100644
--- a/gdk/win32/gdkprivate-win32.h
+++ b/gdk/win32/gdkprivate-win32.h
@@ -356,9 +356,6 @@ HRGN _gdk_win32_gdkregion_to_hrgn (GdkRegion *region,
void _gdk_win32_adjust_client_rect (GdkWindow *window,
RECT *RECT);
-void _gdk_win32_get_adjusted_client_rect (GdkWindow *window,
- RECT *RECT);
-
void _gdk_selection_property_delete (GdkWindow *);
void _gdk_dropfiles_store (gchar *data);