* README.win32: Mention using GNU gettext.
* config.h.win32: Enable NLS stuff.
* gtk/makefile.msc: Use GNU gettext.
* gdk/win32/gdkdnd.c: Minor header reorg.
* gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
cosmetics.
* gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
* gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
+1999-06-15 Tor Lillqvist <tml@iki.fi>
+y
+ * README.win32: Mention using GNU gettext.
+ * config.h.win32: Enable NLS stuff.
+ * gtk/makefile.msc: Use GNU gettext.
+ * gdk/win32/gdkdnd.c: Minor header reorg.
+ * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
+ cosmetics.
+ * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
+ * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
+
Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4
+1999-06-15 Tor Lillqvist <tml@iki.fi>
+y
+ * README.win32: Mention using GNU gettext.
+ * config.h.win32: Enable NLS stuff.
+ * gtk/makefile.msc: Use GNU gettext.
+ * gdk/win32/gdkdnd.c: Minor header reorg.
+ * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
+ cosmetics.
+ * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
+ * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
+
Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4
+1999-06-15 Tor Lillqvist <tml@iki.fi>
+y
+ * README.win32: Mention using GNU gettext.
+ * config.h.win32: Enable NLS stuff.
+ * gtk/makefile.msc: Use GNU gettext.
+ * gdk/win32/gdkdnd.c: Minor header reorg.
+ * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
+ cosmetics.
+ * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
+ * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
+
Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4
+1999-06-15 Tor Lillqvist <tml@iki.fi>
+y
+ * README.win32: Mention using GNU gettext.
+ * config.h.win32: Enable NLS stuff.
+ * gtk/makefile.msc: Use GNU gettext.
+ * gdk/win32/gdkdnd.c: Minor header reorg.
+ * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
+ cosmetics.
+ * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
+ * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
+
Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4
+1999-06-15 Tor Lillqvist <tml@iki.fi>
+y
+ * README.win32: Mention using GNU gettext.
+ * config.h.win32: Enable NLS stuff.
+ * gtk/makefile.msc: Use GNU gettext.
+ * gdk/win32/gdkdnd.c: Minor header reorg.
+ * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
+ cosmetics.
+ * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
+ * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
+
Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4
+1999-06-15 Tor Lillqvist <tml@iki.fi>
+y
+ * README.win32: Mention using GNU gettext.
+ * config.h.win32: Enable NLS stuff.
+ * gtk/makefile.msc: Use GNU gettext.
+ * gdk/win32/gdkdnd.c: Minor header reorg.
+ * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
+ cosmetics.
+ * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
+ * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
+
Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4
+1999-06-15 Tor Lillqvist <tml@iki.fi>
+y
+ * README.win32: Mention using GNU gettext.
+ * config.h.win32: Enable NLS stuff.
+ * gtk/makefile.msc: Use GNU gettext.
+ * gdk/win32/gdkdnd.c: Minor header reorg.
+ * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
+ cosmetics.
+ * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
+ * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
+
Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4
http://www.iki.fi/tml/gimp/win32/ .
To build GTk+ on Win32, you need either Microsoft compiler and tools,
-or egcs-1.1.2 running under cygwin-b20.1. Before compiling, check the
-BIN definition in gdk\win32\makefile.msc (or makefile.cygwin) and
-gtk\makefile.msc (or makefile.cygwin). Compile in gdk\win32 and gtk
-with `nmake -f makefile.msc` or `make -f makefile.cygwin`.
+or egcs-1.1.2 running under cygwin-b20.1. Compile in gdk\win32 and gtk
+with `nmake -f makefile.msc` or `make -f makefile.cygwin`. Before
+doing a install, check the BIN definition in gdk\win32\makefile.msc
+(or makefile.cygwin) and gtk\makefile.msc (or makefile.cygwin).
See the README.win32 file in the GLib distribution for preparations to
build with egcs on cygwin.
The tablet support uses the Wintab API. The Wintab development kit can
be downloaded from http://www.pointing.com.
+GTk+ wants to be built with the GNU gettext library for
+internationalisation (i18n). Get the version ported to Win32 (not a
+very big deal) from tml's web site mentioned above. If you don't want
+any i18n stuff, undefine ENABLE_NLS, HAVE_GETTEXT and HAVE_LIBINTL in
+the config.h.win32 file, and remove references to the gnu-intl library
+from the makefiles.
#define STDC_HEADERS 1
/* Other stuff */
-/* #undef ENABLE_NLS */
+#define ENABLE_NLS 1
#define GTK_COMPILED_WITH_DEBUGGING "minimum"
/* #undef HAVE_CATGETS */
/* #undef HAVE_DIRENT_H */
-/* #undef HAVE_GETTEXT */
+#define HAVE_GETTEXT 1
/* #undef HAVE_IPC_H */
/* #undef HAVE_LC_MESSAGES */
/* #undef HAVE_PWD_H */
/* #undef HAVE_LIBI */
/* Define if you have the intl library (-lintl). */
-/* #undef HAVE_LIBINTL */
+#define HAVE_LIBINTL 1
/* define if compiled symbols have a leading underscore */
/* #undef WITH_SYMBOL_UNDERSCORE */
#include "config.h"
-#define INITGUID
-
#include <string.h>
+#define INITGUID
+
+#include "gdkx.h"
#ifdef OLE2_DND
#include <ole2.h>
#endif
-#ifdef _MSC_VER
+#ifdef _MSC_VER /* These aren't in mingw32 */
#include <shlobj.h>
#include <shlguid.h>
#endif
#include <gdk/gdk.h>
-#include "gdkx.h"
typedef struct _GdkDragContextPrivate GdkDragContextPrivate;
#include "config.h"
-#define INITGUID
-
#include <string.h>
+#define INITGUID
+
+#include "gdkx.h"
#ifdef OLE2_DND
#include <ole2.h>
#endif
-#ifdef _MSC_VER
+#ifdef _MSC_VER /* These aren't in mingw32 */
#include <shlobj.h>
#include <shlguid.h>
#endif
#include <gdk/gdk.h>
-#include "gdkx.h"
typedef struct _GdkDragContextPrivate GdkDragContextPrivate;
{
/* Keyboard is grabbed with owner_events FALSE */
GDK_NOTE (EVENTS,
- g_print ("grabbed, owner_events FALSE, "
+ g_print ("...grabbed, owner_events FALSE, "
"sending to %#x\n", k_grab_window->xwindow));
event->key.window = (GdkWindow *) k_grab_window;
}
{
/* Keyboard is grabbed with owner_events TRUE */
GDK_NOTE (EVENTS,
- g_print ("grabbed, owner_events TRUE, doesn't want it, "
+ g_print ("...grabbed, owner_events TRUE, doesn't want it, "
"sending to %#x\n", k_grab_window->xwindow));
event->key.window = (GdkWindow *) k_grab_window;
}
window = window_private->parent;
gdk_window_ref (window);
window_private = (GdkWindowPrivate *) window;
- GDK_NOTE (EVENTS,
- g_print ("not wanted, not grabbed, "
- "sending to %#x\n", window_private->xwindow));
+ GDK_NOTE (EVENTS, g_print ("...propagating to %#x\n",
+ window_private->xwindow));
goto keyup_or_down;
}
}
{
/* Keyboard is grabbed with owner_events FALSE */
GDK_NOTE (EVENTS,
- g_print ("grabbed, owner_events FALSE, "
+ g_print ("...grabbed, owner_events FALSE, "
"sending to %#x\n", k_grab_window->xwindow));
event->key.window = (GdkWindow *) k_grab_window;
}
{
/* Keyboard is grabbed with owner_events TRUE */
GDK_NOTE (EVENTS,
- g_print ("grabbed, owner_events TRUE, doesn't want it, "
+ g_print ("...grabbed, owner_events TRUE, doesn't want it, "
"sending to %#x\n", k_grab_window->xwindow));
event->key.window = (GdkWindow *) k_grab_window;
}
window = window_private->parent;
gdk_window_ref (window);
window_private = (GdkWindowPrivate *) window;
- GDK_NOTE (EVENTS,
- g_print ("not wanted, not grabbed, sending to %#x\n",
- window_private->xwindow));
+ GDK_NOTE (EVENTS, g_print ("...propagating to %#x\n",
+ window_private->xwindow));
goto wm_char;
}
}
case WM_RBUTTONDOWN:
button = 3;
- /* Print debugging info.
- */
buttondown0:
GDK_NOTE (EVENTS,
g_print ("WM_%cBUTTONDOWN: %#x x,y: %d %d button: %d\n",
&& (window_private->extension_events != 0)
&& gdk_input_ignore_core)
{
- GDK_NOTE (EVENTS, g_print ("... ignored\n"));
+ GDK_NOTE (EVENTS, g_print ("...ignored\n"));
break;
}
- buttondown:
event->button.type = GDK_BUTTON_PRESS;
+ buttondown:
event->button.window = window;
if (window_private)
mask = window_private->event_mask;
&& !p_grab_owner_events)
{
/* Pointer is grabbed with owner_events FALSE */
- GDK_NOTE (EVENTS, g_print ("grabbed, owner_events FALSE\n"));
+ GDK_NOTE (EVENTS, g_print ("...grabbed, owner_events FALSE\n"));
mask = p_grab_event_mask;
if (!(mask & GDK_BUTTON_PRESS_MASK))
/* Grabber doesn't want it */
break;
else
event->button.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else if (window_private
&& p_grab_owner_events)
{
/* Pointer is grabbed wíth owner_events TRUE */
- GDK_NOTE (EVENTS, g_print ("grabbed, owner_events TRUE, doesn't want it\n"));
+ GDK_NOTE (EVENTS, g_print ("...grabbed, owner_events TRUE, doesn't want it\n"));
mask = p_grab_event_mask;
if (!(mask & GDK_BUTTON_PRESS_MASK))
/* Grabber doesn't want it either */
break;
else
event->button.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else
window_private = (GdkWindowPrivate *) window;
ScreenToClient (window_private->xwindow, &pt);
xevent->lParam = MAKELPARAM (pt.x, pt.y);
+ GDK_NOTE (EVENTS, g_print ("...propagating to %#x\n",
+ window_private->xwindow));
goto buttondown; /* What did Dijkstra say? */
}
}
if (!p_grab_window)
{
/* No explicit active grab, let's start one automatically */
- GDK_NOTE (EVENTS, g_print ("automatic grab started\n"));
+ GDK_NOTE (EVENTS, g_print ("...automatic grab started\n"));
gdk_pointer_grab (window, TRUE, window_private->event_mask,
NULL, NULL, 0);
p_grab_automatic = TRUE;
ScreenToClient (p_grab_window->xwindow, &pt);
event->button.x = pt.x;
event->button.y = pt.y;
- GDK_NOTE (EVENTS, g_print ("New coords are +%d+%d\n", pt.x, pt.y));
+ GDK_NOTE (EVENTS, g_print ("...new coords are +%d+%d\n", pt.x, pt.y));
}
break;
case WM_RBUTTONUP:
button = 3;
- /* Print debugging info.
- */
buttonup0:
GDK_NOTE (EVENTS,
g_print ("WM_%cBUTTONUP: %#x x,y: %d %d button: %d\n",
&& (window_private->extension_events != 0)
&& gdk_input_ignore_core)
{
- GDK_NOTE (EVENTS, g_print ("... ignored\n"));
+ GDK_NOTE (EVENTS, g_print ("...ignored\n"));
break;
}
- buttonup:
event->button.type = GDK_BUTTON_RELEASE;
+ buttonup:
event->button.window = window;
if (window_private)
mask = window_private->event_mask;
&& !p_grab_owner_events)
{
/* Pointer is grabbed with owner_events FALSE */
- GDK_NOTE (EVENTS, g_print ("grabbed, owner_events FALSE\n"));
+ GDK_NOTE (EVENTS, g_print ("...grabbed, owner_events FALSE\n"));
mask = p_grab_event_mask;
if (!(mask & GDK_BUTTON_RELEASE_MASK))
/* Grabber doesn't want it */
break;
else
event->button.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else if (window_private
&& p_grab_owner_events)
{
/* Pointer is grabbed wíth owner_events TRUE */
- GDK_NOTE (EVENTS, g_print ("grabbed, owner_events TRUE, doesn't want it\n"));
+ GDK_NOTE (EVENTS, g_print ("...grabbed, owner_events TRUE, doesn't want it\n"));
mask = p_grab_event_mask;
if (!(mask & GDK_BUTTON_RELEASE_MASK))
/* Grabber doesn't want it */
break;
else
event->button.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else
window_private = (GdkWindowPrivate *) window;
ScreenToClient (window_private->xwindow, &pt);
xevent->lParam = MAKELPARAM (pt.x, pt.y);
+ GDK_NOTE (EVENTS, g_print ("...propagating to %#x\n",
+ window_private->xwindow));
goto buttonup;
}
}
ScreenToClient (p_grab_window->xwindow, &pt);
event->button.x = pt.x;
event->button.y = pt.y;
- GDK_NOTE (EVENTS, g_print ("New coords are +%d+%d\n", pt.x, pt.y));
+ GDK_NOTE (EVENTS, g_print ("...new coords are +%d+%d\n", pt.x, pt.y));
}
if (p_grab_window != NULL
&& p_grab_automatic
break;
case WM_MOUSEMOVE:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_print ("WM_MOUSEMOVE: %#x %#x +%d+%d\n",
xevent->hwnd, xevent->wParam,
&& (window_private->extension_events != 0)
&& gdk_input_ignore_core)
{
- GDK_NOTE (EVENTS, g_print ("... ignored\n"));
+ GDK_NOTE (EVENTS, g_print ("...ignored\n"));
break;
}
{
/* Pointer is grabbed with owner_events FALSE */
GDK_NOTE (EVENTS,
- g_print ("grabbed, owner_events FALSE\n"));
+ g_print ("...grabbed, owner_events FALSE\n"));
mask = p_grab_event_mask;
if (!((mask & GDK_POINTER_MOTION_MASK)
|| ((xevent->wParam & (MK_LBUTTON|MK_MBUTTON|MK_RBUTTON))
break;
else
event->motion.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else if (window_private
&& p_grab_owner_events)
{
/* Pointer is grabbed wíth owner_events TRUE */
- GDK_NOTE (EVENTS, g_print ("grabbed, owner_events TRUE, doesn't want it\n"));
+ GDK_NOTE (EVENTS, g_print ("...grabbed, owner_events TRUE, doesn't want it\n"));
mask = p_grab_event_mask;
if (!((p_grab_event_mask & GDK_POINTER_MOTION_MASK)
|| ((xevent->wParam & (MK_LBUTTON|MK_MBUTTON|MK_RBUTTON))
break;
else
event->motion.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else
window_private = (GdkWindowPrivate *) window;
ScreenToClient (window_private->xwindow, &pt);
xevent->lParam = MAKELPARAM (pt.x, pt.y);
- GDK_NOTE (EVENTS, g_print ("propagating to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...propagating to %#x\n",
window_private->xwindow));
goto mousemotion;
}
ScreenToClient (p_grab_window->xwindow, &pt);
event->motion.x = pt.x;
event->motion.y = pt.y;
- GDK_NOTE (EVENTS, g_print ("New coords are +%d+%d\n", pt.x, pt.y));
+ GDK_NOTE (EVENTS, g_print ("...new coords are +%d+%d\n", pt.x, pt.y));
}
break;
case WM_NCMOUSEMOVE:
- /* Print debugging info. */
GDK_NOTE (EVENTS,
g_print ("WM_NCMOUSEMOVE: %#x x,y: %d %d\n",
xevent->hwnd,
if (curWnd != NULL
&& (curWnd_private->event_mask & GDK_LEAVE_NOTIFY_MASK))
{
- GDK_NOTE (EVENTS, g_print ("synthesizing LEAVE_NOTIFY event\n"));
+ GDK_NOTE (EVENTS, g_print ("...synthesizing LEAVE_NOTIFY event\n"));
event->crossing.type = GDK_LEAVE_NOTIFY;
event->crossing.window = curWnd;
if (window_private->bg_type == GDK_WIN32_BG_PIXEL)
{
COLORREF bg;
- GDK_NOTE (EVENTS, g_print ("... BG_PIXEL %s\n",
+ GDK_NOTE (EVENTS, g_print ("...BG_PIXEL %s\n",
gdk_color_to_string (&window_private->bg_pixel)));
GetClipBox (hdc, &rect);
#ifdef MULTIPLE_WINDOW_CLASSES
#endif
hbr = CreateSolidBrush (bg);
#if 0
- g_print ("... CreateSolidBrush (%.08x) = %.08x\n", bg, hbr);
+ g_print ("...CreateSolidBrush (%.08x) = %.08x\n", bg, hbr);
#endif
if (!FillRect (hdc, &rect, hbr))
g_warning ("WM_ERASEBKGND: FillRect failed");
}
else
{
- GDK_NOTE (EVENTS, g_print ("... BLACK_BRUSH (?)\n"));
+ GDK_NOTE (EVENTS, g_print ("...BLACK_BRUSH (?)\n"));
#ifdef MULTIPLE_WINDOW_CLASSES
hbr = (HBRUSH) GetClassLong (window_private->xwindow,
GCL_HBRBACKGROUND);
break;
case WM_PAINT:
- GDK_NOTE (EVENTS, g_print ("WM_PAINT: %#x\n", xevent->hwnd));
hdc = BeginPaint (xevent->hwnd, &paintstruct);
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
- g_print ("...WM_PAINT: %#x %dx%d@+%d+%d %s dc %#x\n",
+ g_print ("WM_PAINT: %#x %dx%d@+%d+%d %s dc %#x\n",
xevent->hwnd,
paintstruct.rcPaint.right - paintstruct.rcPaint.left,
paintstruct.rcPaint.bottom - paintstruct.rcPaint.top,
#if 1
case WM_SHOWWINDOW:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS, g_print ("WM_SHOWWINDOW: %#x %d\n",
xevent->hwnd,
xevent->wParam));
break;
#endif
case WM_SIZE:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_print ("WM_SIZE: %#x %s %dx%d\n",
xevent->hwnd,
{
/* Keyboard is grabbed with owner_events FALSE */
GDK_NOTE (EVENTS,
- g_print ("grabbed, owner_events FALSE, "
+ g_print ("...grabbed, owner_events FALSE, "
"sending to %#x\n", k_grab_window->xwindow));
event->key.window = (GdkWindow *) k_grab_window;
}
{
/* Keyboard is grabbed with owner_events TRUE */
GDK_NOTE (EVENTS,
- g_print ("grabbed, owner_events TRUE, doesn't want it, "
+ g_print ("...grabbed, owner_events TRUE, doesn't want it, "
"sending to %#x\n", k_grab_window->xwindow));
event->key.window = (GdkWindow *) k_grab_window;
}
window = window_private->parent;
gdk_window_ref (window);
window_private = (GdkWindowPrivate *) window;
- GDK_NOTE (EVENTS,
- g_print ("not wanted, not grabbed, "
- "sending to %#x\n", window_private->xwindow));
+ GDK_NOTE (EVENTS, g_print ("...propagating to %#x\n",
+ window_private->xwindow));
goto keyup_or_down;
}
}
{
/* Keyboard is grabbed with owner_events FALSE */
GDK_NOTE (EVENTS,
- g_print ("grabbed, owner_events FALSE, "
+ g_print ("...grabbed, owner_events FALSE, "
"sending to %#x\n", k_grab_window->xwindow));
event->key.window = (GdkWindow *) k_grab_window;
}
{
/* Keyboard is grabbed with owner_events TRUE */
GDK_NOTE (EVENTS,
- g_print ("grabbed, owner_events TRUE, doesn't want it, "
+ g_print ("...grabbed, owner_events TRUE, doesn't want it, "
"sending to %#x\n", k_grab_window->xwindow));
event->key.window = (GdkWindow *) k_grab_window;
}
window = window_private->parent;
gdk_window_ref (window);
window_private = (GdkWindowPrivate *) window;
- GDK_NOTE (EVENTS,
- g_print ("not wanted, not grabbed, sending to %#x\n",
- window_private->xwindow));
+ GDK_NOTE (EVENTS, g_print ("...propagating to %#x\n",
+ window_private->xwindow));
goto wm_char;
}
}
case WM_RBUTTONDOWN:
button = 3;
- /* Print debugging info.
- */
buttondown0:
GDK_NOTE (EVENTS,
g_print ("WM_%cBUTTONDOWN: %#x x,y: %d %d button: %d\n",
&& (window_private->extension_events != 0)
&& gdk_input_ignore_core)
{
- GDK_NOTE (EVENTS, g_print ("... ignored\n"));
+ GDK_NOTE (EVENTS, g_print ("...ignored\n"));
break;
}
- buttondown:
event->button.type = GDK_BUTTON_PRESS;
+ buttondown:
event->button.window = window;
if (window_private)
mask = window_private->event_mask;
&& !p_grab_owner_events)
{
/* Pointer is grabbed with owner_events FALSE */
- GDK_NOTE (EVENTS, g_print ("grabbed, owner_events FALSE\n"));
+ GDK_NOTE (EVENTS, g_print ("...grabbed, owner_events FALSE\n"));
mask = p_grab_event_mask;
if (!(mask & GDK_BUTTON_PRESS_MASK))
/* Grabber doesn't want it */
break;
else
event->button.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else if (window_private
&& p_grab_owner_events)
{
/* Pointer is grabbed wíth owner_events TRUE */
- GDK_NOTE (EVENTS, g_print ("grabbed, owner_events TRUE, doesn't want it\n"));
+ GDK_NOTE (EVENTS, g_print ("...grabbed, owner_events TRUE, doesn't want it\n"));
mask = p_grab_event_mask;
if (!(mask & GDK_BUTTON_PRESS_MASK))
/* Grabber doesn't want it either */
break;
else
event->button.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else
window_private = (GdkWindowPrivate *) window;
ScreenToClient (window_private->xwindow, &pt);
xevent->lParam = MAKELPARAM (pt.x, pt.y);
+ GDK_NOTE (EVENTS, g_print ("...propagating to %#x\n",
+ window_private->xwindow));
goto buttondown; /* What did Dijkstra say? */
}
}
if (!p_grab_window)
{
/* No explicit active grab, let's start one automatically */
- GDK_NOTE (EVENTS, g_print ("automatic grab started\n"));
+ GDK_NOTE (EVENTS, g_print ("...automatic grab started\n"));
gdk_pointer_grab (window, TRUE, window_private->event_mask,
NULL, NULL, 0);
p_grab_automatic = TRUE;
ScreenToClient (p_grab_window->xwindow, &pt);
event->button.x = pt.x;
event->button.y = pt.y;
- GDK_NOTE (EVENTS, g_print ("New coords are +%d+%d\n", pt.x, pt.y));
+ GDK_NOTE (EVENTS, g_print ("...new coords are +%d+%d\n", pt.x, pt.y));
}
break;
case WM_RBUTTONUP:
button = 3;
- /* Print debugging info.
- */
buttonup0:
GDK_NOTE (EVENTS,
g_print ("WM_%cBUTTONUP: %#x x,y: %d %d button: %d\n",
&& (window_private->extension_events != 0)
&& gdk_input_ignore_core)
{
- GDK_NOTE (EVENTS, g_print ("... ignored\n"));
+ GDK_NOTE (EVENTS, g_print ("...ignored\n"));
break;
}
- buttonup:
event->button.type = GDK_BUTTON_RELEASE;
+ buttonup:
event->button.window = window;
if (window_private)
mask = window_private->event_mask;
&& !p_grab_owner_events)
{
/* Pointer is grabbed with owner_events FALSE */
- GDK_NOTE (EVENTS, g_print ("grabbed, owner_events FALSE\n"));
+ GDK_NOTE (EVENTS, g_print ("...grabbed, owner_events FALSE\n"));
mask = p_grab_event_mask;
if (!(mask & GDK_BUTTON_RELEASE_MASK))
/* Grabber doesn't want it */
break;
else
event->button.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else if (window_private
&& p_grab_owner_events)
{
/* Pointer is grabbed wíth owner_events TRUE */
- GDK_NOTE (EVENTS, g_print ("grabbed, owner_events TRUE, doesn't want it\n"));
+ GDK_NOTE (EVENTS, g_print ("...grabbed, owner_events TRUE, doesn't want it\n"));
mask = p_grab_event_mask;
if (!(mask & GDK_BUTTON_RELEASE_MASK))
/* Grabber doesn't want it */
break;
else
event->button.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else
window_private = (GdkWindowPrivate *) window;
ScreenToClient (window_private->xwindow, &pt);
xevent->lParam = MAKELPARAM (pt.x, pt.y);
+ GDK_NOTE (EVENTS, g_print ("...propagating to %#x\n",
+ window_private->xwindow));
goto buttonup;
}
}
ScreenToClient (p_grab_window->xwindow, &pt);
event->button.x = pt.x;
event->button.y = pt.y;
- GDK_NOTE (EVENTS, g_print ("New coords are +%d+%d\n", pt.x, pt.y));
+ GDK_NOTE (EVENTS, g_print ("...new coords are +%d+%d\n", pt.x, pt.y));
}
if (p_grab_window != NULL
&& p_grab_automatic
break;
case WM_MOUSEMOVE:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_print ("WM_MOUSEMOVE: %#x %#x +%d+%d\n",
xevent->hwnd, xevent->wParam,
&& (window_private->extension_events != 0)
&& gdk_input_ignore_core)
{
- GDK_NOTE (EVENTS, g_print ("... ignored\n"));
+ GDK_NOTE (EVENTS, g_print ("...ignored\n"));
break;
}
{
/* Pointer is grabbed with owner_events FALSE */
GDK_NOTE (EVENTS,
- g_print ("grabbed, owner_events FALSE\n"));
+ g_print ("...grabbed, owner_events FALSE\n"));
mask = p_grab_event_mask;
if (!((mask & GDK_POINTER_MOTION_MASK)
|| ((xevent->wParam & (MK_LBUTTON|MK_MBUTTON|MK_RBUTTON))
break;
else
event->motion.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else if (window_private
&& p_grab_owner_events)
{
/* Pointer is grabbed wíth owner_events TRUE */
- GDK_NOTE (EVENTS, g_print ("grabbed, owner_events TRUE, doesn't want it\n"));
+ GDK_NOTE (EVENTS, g_print ("...grabbed, owner_events TRUE, doesn't want it\n"));
mask = p_grab_event_mask;
if (!((p_grab_event_mask & GDK_POINTER_MOTION_MASK)
|| ((xevent->wParam & (MK_LBUTTON|MK_MBUTTON|MK_RBUTTON))
break;
else
event->motion.window = (GdkWindow *) p_grab_window;
- GDK_NOTE (EVENTS, g_print ("sending to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...sending to %#x\n",
p_grab_window->xwindow));
}
else
window_private = (GdkWindowPrivate *) window;
ScreenToClient (window_private->xwindow, &pt);
xevent->lParam = MAKELPARAM (pt.x, pt.y);
- GDK_NOTE (EVENTS, g_print ("propagating to %#x\n",
+ GDK_NOTE (EVENTS, g_print ("...propagating to %#x\n",
window_private->xwindow));
goto mousemotion;
}
ScreenToClient (p_grab_window->xwindow, &pt);
event->motion.x = pt.x;
event->motion.y = pt.y;
- GDK_NOTE (EVENTS, g_print ("New coords are +%d+%d\n", pt.x, pt.y));
+ GDK_NOTE (EVENTS, g_print ("...new coords are +%d+%d\n", pt.x, pt.y));
}
break;
case WM_NCMOUSEMOVE:
- /* Print debugging info. */
GDK_NOTE (EVENTS,
g_print ("WM_NCMOUSEMOVE: %#x x,y: %d %d\n",
xevent->hwnd,
if (curWnd != NULL
&& (curWnd_private->event_mask & GDK_LEAVE_NOTIFY_MASK))
{
- GDK_NOTE (EVENTS, g_print ("synthesizing LEAVE_NOTIFY event\n"));
+ GDK_NOTE (EVENTS, g_print ("...synthesizing LEAVE_NOTIFY event\n"));
event->crossing.type = GDK_LEAVE_NOTIFY;
event->crossing.window = curWnd;
if (window_private->bg_type == GDK_WIN32_BG_PIXEL)
{
COLORREF bg;
- GDK_NOTE (EVENTS, g_print ("... BG_PIXEL %s\n",
+ GDK_NOTE (EVENTS, g_print ("...BG_PIXEL %s\n",
gdk_color_to_string (&window_private->bg_pixel)));
GetClipBox (hdc, &rect);
#ifdef MULTIPLE_WINDOW_CLASSES
#endif
hbr = CreateSolidBrush (bg);
#if 0
- g_print ("... CreateSolidBrush (%.08x) = %.08x\n", bg, hbr);
+ g_print ("...CreateSolidBrush (%.08x) = %.08x\n", bg, hbr);
#endif
if (!FillRect (hdc, &rect, hbr))
g_warning ("WM_ERASEBKGND: FillRect failed");
}
else
{
- GDK_NOTE (EVENTS, g_print ("... BLACK_BRUSH (?)\n"));
+ GDK_NOTE (EVENTS, g_print ("...BLACK_BRUSH (?)\n"));
#ifdef MULTIPLE_WINDOW_CLASSES
hbr = (HBRUSH) GetClassLong (window_private->xwindow,
GCL_HBRBACKGROUND);
break;
case WM_PAINT:
- GDK_NOTE (EVENTS, g_print ("WM_PAINT: %#x\n", xevent->hwnd));
hdc = BeginPaint (xevent->hwnd, &paintstruct);
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
- g_print ("...WM_PAINT: %#x %dx%d@+%d+%d %s dc %#x\n",
+ g_print ("WM_PAINT: %#x %dx%d@+%d+%d %s dc %#x\n",
xevent->hwnd,
paintstruct.rcPaint.right - paintstruct.rcPaint.left,
paintstruct.rcPaint.bottom - paintstruct.rcPaint.top,
#if 1
case WM_SHOWWINDOW:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS, g_print ("WM_SHOWWINDOW: %#x %d\n",
xevent->hwnd,
xevent->wParam));
break;
#endif
case WM_SIZE:
- /* Print debugging info.
- */
GDK_NOTE (EVENTS,
g_print ("WM_SIZE: %#x %s %dx%d\n",
xevent->hwnd,
gdk_ProgInstance,
NULL);
GDK_NOTE (MISC,
- g_print ("gdk_window_create: %s %s %#x %dx%d@+%d+%d %#x = %#x\n",
+ g_print ("gdk_window_create: %s %s %#x %#x %dx%d@+%d+%d %#x = %#x\n",
(private->window_type == GDK_WINDOW_TOPLEVEL ? "TOPLEVEL" :
(private->window_type == GDK_WINDOW_CHILD ? "CHILD" :
(private->window_type == GDK_WINDOW_DIALOG ? "DIALOG" :
"???")))),
title,
dwStyle,
+ private->event_mask,
width, height, (x == CW_USEDEFAULT ? -9999 : x), y,
xparent,
private->xwindow));
gdk_window_get_events (GdkWindow *window)
{
GdkWindowPrivate *private;
- GdkEventMask event_mask;
g_return_val_if_fail (window != NULL, 0);
if (private->destroyed)
return 0;
- event_mask = 0;
-
- event_mask = private->event_mask;
-
- return event_mask;
+ return private->event_mask;
}
void
gdk_ProgInstance,
NULL);
GDK_NOTE (MISC,
- g_print ("gdk_window_create: %s %s %#x %dx%d@+%d+%d %#x = %#x\n",
+ g_print ("gdk_window_create: %s %s %#x %#x %dx%d@+%d+%d %#x = %#x\n",
(private->window_type == GDK_WINDOW_TOPLEVEL ? "TOPLEVEL" :
(private->window_type == GDK_WINDOW_CHILD ? "CHILD" :
(private->window_type == GDK_WINDOW_DIALOG ? "DIALOG" :
"???")))),
title,
dwStyle,
+ private->event_mask,
width, height, (x == CW_USEDEFAULT ? -9999 : x), y,
xparent,
private->xwindow));
gdk_window_get_events (GdkWindow *window)
{
GdkWindowPrivate *private;
- GdkEventMask event_mask;
g_return_val_if_fail (window != NULL, 0);
if (private->destroyed)
return 0;
- event_mask = 0;
-
- event_mask = private->event_mask;
-
- return event_mask;
+ return private->event_mask;
}
void
}
#ifdef ENABLE_NLS
+#ifndef NATIVE_WIN32
bindtextdomain("gtk+", GTK_LOCALEDIR);
+#else
+ {
+ /* GTk+ locale dir is %WinDir%\gtk\locale */
+ extern char *get_gtk_sysconf_directory ();
+ bindtextdomain ("gtk+", g_strconcat (get_gtk_sysconf_directory (),
+ G_DIR_SEPARATOR_S,
+ "locale",
+ NULL));
+ }
+#endif
#endif
/* Initialize the default visual and colormap to be
#ifdef NATIVE_WIN32
-static gchar *
+gchar *
get_gtk_sysconf_directory ()
{
static gchar gtk_sysconf_dir[200];
GDKSYSDEP = ..\gdk\win32
GLIB = ..\..\glib
+GETTEXT = ..\..\gettext-0.10.35
-CFLAGS = -I. -I.. -I$(GDKSYSDEP) -I$(GLIB) -I$(GLIB)\gmodule -DGTK_DISABLE_COMPAT_H
+CFLAGS = -I. -I.. -I$(GDKSYSDEP) -I$(GLIB) -I$(GLIB)\gmodule -I$(GETTEXT)\intl -DGTK_DISABLE_COMPAT_H
all : \
..\config.h \
# Linking:
#
gtk-$(GTK_VER).dll : $(gtk_OBJECTS) gtk.def
- $(CC) $(CFLAGS) -LD -Fegtk-$(GTK_VER).dll $(gtk_OBJECTS) $(GDKSYSDEP)\gdk-$(GTK_VER).lib $(GLIB)\glib-$(GLIB_VER).lib $(GLIB)\gmodule-$(GLIB_VER).lib gdi32.lib user32.lib $(LDFLAGS) /def:gtk.def
+ $(CC) $(CFLAGS) -LD -Fegtk-$(GTK_VER).dll $(gtk_OBJECTS) $(GDKSYSDEP)\gdk-$(GTK_VER).lib $(GETTEXT)\intl\gnu-intl.lib $(GLIB)\glib-$(GLIB_VER).lib $(GLIB)\gmodule-$(GLIB_VER).lib gdi32.lib user32.lib $(LDFLAGS) /def:gtk.def
# General rule for compiling the objects into the DLL
.c.obj :