Commit c9dabae9 authored by Hans Breuer's avatar Hans Breuer Committed by Hans Breuer

make sure we know what we are talking about when asked for MINMAXINFO.

2001-11-10  Hans Breuer  <hans@breuer.org>

	* gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
	we know what we are talking about when asked for MINMAXINFO.
	Also some cleaning for !HAVE_DIMM_H etc.
parent f4f1768d
2001-11-10 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
we know what we are talking about when asked for MINMAXINFO.
Also some cleaning for !HAVE_DIMM_H etc.
2001-11-10 Matthias Clasen <matthiasc@poet.de>
* gtk/gtktreeviewcolumn.c: Fix docs for
......@@ -8,7 +14,7 @@
* gtk/gtkcolorsel.c: Documentation fixes.
2001-10-28 Hans Breuer <hans@breuer.org>
2001-11-10 Hans Breuer <hans@breuer.org>
* gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
don't have strcasecmp()
......
2001-11-10 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
we know what we are talking about when asked for MINMAXINFO.
Also some cleaning for !HAVE_DIMM_H etc.
2001-11-10 Matthias Clasen <matthiasc@poet.de>
* gtk/gtktreeviewcolumn.c: Fix docs for
......@@ -8,7 +14,7 @@
* gtk/gtkcolorsel.c: Documentation fixes.
2001-10-28 Hans Breuer <hans@breuer.org>
2001-11-10 Hans Breuer <hans@breuer.org>
* gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
don't have strcasecmp()
......
2001-11-10 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
we know what we are talking about when asked for MINMAXINFO.
Also some cleaning for !HAVE_DIMM_H etc.
2001-11-10 Matthias Clasen <matthiasc@poet.de>
* gtk/gtktreeviewcolumn.c: Fix docs for
......@@ -8,7 +14,7 @@
* gtk/gtkcolorsel.c: Documentation fixes.
2001-10-28 Hans Breuer <hans@breuer.org>
2001-11-10 Hans Breuer <hans@breuer.org>
* gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
don't have strcasecmp()
......
2001-11-10 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
we know what we are talking about when asked for MINMAXINFO.
Also some cleaning for !HAVE_DIMM_H etc.
2001-11-10 Matthias Clasen <matthiasc@poet.de>
* gtk/gtktreeviewcolumn.c: Fix docs for
......@@ -8,7 +14,7 @@
* gtk/gtkcolorsel.c: Documentation fixes.
2001-10-28 Hans Breuer <hans@breuer.org>
2001-11-10 Hans Breuer <hans@breuer.org>
* gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
don't have strcasecmp()
......
2001-11-10 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
we know what we are talking about when asked for MINMAXINFO.
Also some cleaning for !HAVE_DIMM_H etc.
2001-11-10 Matthias Clasen <matthiasc@poet.de>
* gtk/gtktreeviewcolumn.c: Fix docs for
......@@ -8,7 +14,7 @@
* gtk/gtkcolorsel.c: Documentation fixes.
2001-10-28 Hans Breuer <hans@breuer.org>
2001-11-10 Hans Breuer <hans@breuer.org>
* gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
don't have strcasecmp()
......
2001-11-10 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
we know what we are talking about when asked for MINMAXINFO.
Also some cleaning for !HAVE_DIMM_H etc.
2001-11-10 Matthias Clasen <matthiasc@poet.de>
* gtk/gtktreeviewcolumn.c: Fix docs for
......@@ -8,7 +14,7 @@
* gtk/gtkcolorsel.c: Documentation fixes.
2001-10-28 Hans Breuer <hans@breuer.org>
2001-11-10 Hans Breuer <hans@breuer.org>
* gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
don't have strcasecmp()
......
2001-11-10 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
we know what we are talking about when asked for MINMAXINFO.
Also some cleaning for !HAVE_DIMM_H etc.
2001-11-10 Matthias Clasen <matthiasc@poet.de>
* gtk/gtktreeviewcolumn.c: Fix docs for
......@@ -8,7 +14,7 @@
* gtk/gtkcolorsel.c: Documentation fixes.
2001-10-28 Hans Breuer <hans@breuer.org>
2001-11-10 Hans Breuer <hans@breuer.org>
* gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
don't have strcasecmp()
......
......@@ -156,7 +156,9 @@ real_window_procedure (HWND hwnd,
GdkEvent *eventp;
MSG msg;
DWORD pos;
#ifdef HAVE_DIMM_H
LRESULT lres;
#endif
gint ret_val;
gboolean ret_val_flag;
......@@ -293,7 +295,9 @@ void
_gdk_events_init (void)
{
GSource *source;
#ifdef HAVE_DIMM_H
HRESULT hres;
#endif
#ifdef USE_TRACKMOUSEEVENT
HMODULE user32, imm32;
HINSTANCE commctrl32;
......@@ -2931,6 +2935,16 @@ gdk_event_translate (GdkEvent *event,
mmi->ptMaxSize.x = MIN(window_impl->hint_max_width, gdk_screen_width ());
mmi->ptMaxSize.y = MIN(window_impl->hint_max_height, gdk_screen_height ());
}
else if (window_impl->hint_flags & GDK_HINT_MIN_SIZE)
{
/* need to initialize */
mmi->ptMaxSize.x = gdk_screen_width ();
mmi->ptMaxSize.y = gdk_screen_height ();
}
/* lovely API inconsistence: return FALSE when handled */
if (ret_val_flagp)
*ret_val_flagp = !(window_impl->hint_flags &
(GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE));
break;
case WM_MOVE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment