Implement. (#98981)

2002-12-21  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkwindow-win32.c (gdk_window_get_decorations):
	Implement. (#98981)

	* gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
This commit is contained in:
Tor Lillqvist
2002-12-21 23:42:41 +00:00
committed by Tor Lillqvist
parent 45fa3aec4d
commit 9087cbebe5
8 changed files with 49 additions and 0 deletions

View File

@@ -16,9 +16,13 @@
Reimplement, taking into account the peculiar semantics of
GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
(gdk_window_get_decorations): Implement. (#98981)
(gdk_window_set_type_hint): When setting
GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
* gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
2002-12-20 Sven Neumann <sven@gimp.org>
* examples/gtkdial/gtkdial.c: use G_PI instead of M_PI.

View File

@@ -16,9 +16,13 @@
Reimplement, taking into account the peculiar semantics of
GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
(gdk_window_get_decorations): Implement. (#98981)
(gdk_window_set_type_hint): When setting
GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
* gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
2002-12-20 Sven Neumann <sven@gimp.org>
* examples/gtkdial/gtkdial.c: use G_PI instead of M_PI.

View File

@@ -16,9 +16,13 @@
Reimplement, taking into account the peculiar semantics of
GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
(gdk_window_get_decorations): Implement. (#98981)
(gdk_window_set_type_hint): When setting
GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
* gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
2002-12-20 Sven Neumann <sven@gimp.org>
* examples/gtkdial/gtkdial.c: use G_PI instead of M_PI.

View File

@@ -16,9 +16,13 @@
Reimplement, taking into account the peculiar semantics of
GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
(gdk_window_get_decorations): Implement. (#98981)
(gdk_window_set_type_hint): When setting
GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
* gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
2002-12-20 Sven Neumann <sven@gimp.org>
* examples/gtkdial/gtkdial.c: use G_PI instead of M_PI.

View File

@@ -16,9 +16,13 @@
Reimplement, taking into account the peculiar semantics of
GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
(gdk_window_get_decorations): Implement. (#98981)
(gdk_window_set_type_hint): When setting
GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
* gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
2002-12-20 Sven Neumann <sven@gimp.org>
* examples/gtkdial/gtkdial.c: use G_PI instead of M_PI.

View File

@@ -16,9 +16,13 @@
Reimplement, taking into account the peculiar semantics of
GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
(gdk_window_get_decorations): Implement. (#98981)
(gdk_window_set_type_hint): When setting
GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
* gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
2002-12-20 Sven Neumann <sven@gimp.org>
* examples/gtkdial/gtkdial.c: use G_PI instead of M_PI.

View File

@@ -377,6 +377,7 @@ EXPORTS
gdk_window_foreign_new
gdk_window_freeze_updates
gdk_window_get_children
gdk_window_get_decorations
gdk_window_get_deskrelative_origin
gdk_window_get_events
gdk_window_get_frame_extents

View File

@@ -2185,6 +2185,30 @@ gdk_window_set_decorations (GdkWindow *window,
SWP_NOREPOSITION | SWP_NOSIZE | SWP_NOZORDER);
}
gboolean
gdk_window_get_decorations(GdkWindow *window,
GdkWMDecoration *decorations)
{
LONG style = GetWindowLong (GDK_WINDOW_HWND (window), GWL_STYLE);
*decorations = 0;
if (style & WS_BORDER)
*decorations |= GDK_DECOR_BORDER;
if (style & WS_THICKFRAME)
*decorations |= GDK_DECOR_RESIZEH;
if (style & WS_CAPTION)
*decorations |= GDK_DECOR_TITLE;
if (style & WS_SYSMENU)
*decorations |= GDK_DECOR_MENU;
if (style & WS_MINIMIZEBOX)
*decorations |= GDK_DECOR_MINIMIZE;
if (style & WS_MAXIMIZEBOX)
*decorations |= GDK_DECOR_MAXIMIZE;
return *decorations != 0;
}
void
gdk_window_set_functions (GdkWindow *window,
GdkWMFunction functions)