summaryrefslogtreecommitdiff
path: root/gtk/makefile.mingw.in
Commit message (Collapse)AuthorAgeFilesLines
* Updates.Tor Lillqvist2001-10-291-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-29 Tor Lillqvist <tml@iki.fi> * README.win32: Updates. * gtk-zip.sh.in: New file, used to build distribution package for Windows. * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when applicable with GDKVAR. * gtk/gtk.def: Update. * gtk/gtkfilesel.c: Include <winsock.h> (if available) for gethostname(). * gtk/gtkmain.c * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR, GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call g_win32_get_package_installation_subdirectory() with the actual DLL name saved above. Redefine above directory name macros to call these functions. Remove some ifdefs. * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks variable for export on Win32) also to the _vars file. Changes for autoconfiscated build on Win32, and addition of Win32 backend to the related files: * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use when forming DLL name in some files. Set MS_LIB_AVAILABLE is lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add win32 target, using pangowin32. Don't use the -export-symbols-regex option on Win32, we use .def files to list exported symbols. Check <winsock.h> (for gethostname() in gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to prevent premature m4 expansion. * acconfig.h: Add HAVE_WINTAB. * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated macros and rules. Use -no-undefined on Win32. Use gdk.def file. If MS_LIB_AVAILABLE, build MS import library. Install the import libraries. If HAVE_WINTAB, link with the Wintab library. * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated macros and rules. Use -no-undefined on Win32. Use gtk-win32.def file. Install import libraries.
* [ Patch from Sebastian Wilhelmi, 52790 ]Owen Taylor2001-08-231-1/+1
| | | | | | | | | | | | | | | | | | | | | Wed Aug 22 19:15:39 2001 Owen Taylor <otaylor@redhat.com> [ Patch from Sebastian Wilhelmi, 52790 ] * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: Move compatibility macros from g[dt]kcompat.h to within #ifndef G[DT]K_DISABLE_DEPRECATED in each file. * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h. * demos/Makefile.am demos/gtk-demo/Makefile.am docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED. * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c, testpixbuf.c}: Fix usages of deprecated functions.
* New function. print_event_state, print_event): Use preprocessor macro toTor Lillqvist2001-03-181-3/+6
| | | | | | | | | | | | | | | 2001-03-18 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkevents-win32.c (print_window_state): New function. print_event_state, print_event): Use preprocessor macro to make code more compact. Print also GDK_WINDOW_STATE events. (synthesize_crossing_events): Remove the old #ifdeffed-out code. * gtk/gtk.def * gtk/makefile.mingw.in: Update. * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32, to catch also Cygwin.
* Update. Mention the gtk-1-3-win32-production branch.Tor Lillqvist2001-02-231-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-02-23 Tor Lillqvist <tml@iki.fi> * README.win32: Update. Mention the gtk-1-3-win32-production branch. * gdk/win32/bdfcursor.c: New file. A program that generates xcursors.h. Thanks to Stefan Ondrejicka. * gdk/win32/xcursors.h: New file, contains the X cursor font in a compact format. * gdk/win32/Makefile.am (EXTRA_DIST): Add new files. * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New function, uses xcursors.h. (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate cursor from inline data instead of using LoadCursor() to generate it from a resource. * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up event, must check the Windows message for mouse button state, as the GDK event state might not have been built if it is undelivered. Remove one goto. * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call SetCursor() if the current cursor as returned by GetCursor() is the window's previous cursor. The ChildWindowFromPoint() test apparently didn't work correctly. * gdk/win32/rc/*.cur: Remove. * gdk/win32/rc/gdk.rc.in: Remove cursors. * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too. * gtk/makefile.{mingw,msc}.in: Updates.
* New function, copied from X11 version.Tor Lillqvist2001-02-111-4/+3
| | | | | | | | | | | | | | | | | | | | | | 2001-02-11 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New function, copied from X11 version. * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate DestroyCursor failures. The reason for the problem (despite the inconsistent messages from GetLastError()) was that DestroyCursor() cannot be called while a cursor is set in a window. Set the new cursor first and then destroy the old one. Thanks to jpe@archaeopteryx.com. * gdk/win32/gdkcc-win32.c: Removed. * gdk/gdk.def * gdk/makefile.mingw.in: Update. Godbye GdkColorContext. * gtk/gtk.def * gtk/makefile.mingw.in: Updates.
* Include <stdlib.h> for getenv().Tor Lillqvist2001-01-151-1/+2
| | | | | | | | | | | | | | | | | 2001-01-16 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv(). * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap. * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls to g_{locale,filename}_{to,from}_utf8 to match current API. * gtk/makefile.msc.in (gtk_OBJECTS) * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate. * gtk/gtk.def: Update.
* Adapt calls to g_{locale,filename}_{to,from}_utf8 to match current API.Tor Lillqvist2001-01-071-148/+156
| | | | | | | | | | | | | | | | | 2001-01-07 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkwindow-win32.c (gdk_window_set_title, gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8 to match current API. * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret environment variable is set, don't call g_error when on a palettized (PseudoColor) display. Some people want to use GTK+ in 256-colour mode even though works only partially. * gdk/gdk.def * gtk/gtk.def * gtk/makefile.mingw.in: Update.
* New function, as in the X11 backend. (gdk_window_new,Tor Lillqvist2000-12-301-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-12-30 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_get_visible_region): New function, as in the X11 backend. (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8() instead of duplicating the same code here. * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use GDK_COLORMAP macro. * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as destroy function. (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly access that. * gtk/gtk.def: Update. * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject. 2000-12-26 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if we are on a palettized display ("PseudoColor" in X11), as the code for that doesn't work anyway, and never has. 2000-12-30 Tor Lillqvist <tml@iki.fi> * gdk_pixbuf.def: Update.
* Add comment that GdkXEvent isn't only for XEvent, but in general forTor Lillqvist2000-11-171-1/+8
| | | | | | | | | | | 2000-11-17 Tor Lillqvist <tml@iki.fi> * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent, but in general for window system specific events. * gtk/gtk.def * gtk/makefile.mingw.in * gtk/makefile.msc.in: Update.
* Add new objects.Tor Lillqvist2000-11-141-0/+2
| | | | | | | | | | | | | 2000-11-15 Tor Lillqvist <tml@iki.fi> * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects. * gtk/gtk.def: Update. * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been included. (gtk_rc_get_im_module_file): Use run-time installation directory on Win32.
* Remove, useless. A distribution already has a built gtkcompat.h.Tor Lillqvist2000-11-141-4/+0
| | | | | | | | | | | 2000-11-14 Tor Lillqvist <tml@iki.fi> * gtk/gtkcompat.h.win32: Remove, useless. A distribution already has a built gtkcompat.h. Developers using CVS code on Win32 can hand-edit it from gtkcompat.h.in. * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make gtkcompat.h from gtkcompat.h.win32.
* gdk/gdk.def Update.Tor Lillqvist2000-11-111-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-11 Tor Lillqvist <tml@iki.fi> * gdk/gdk.def * gtk/gtk.def: Update. * gdk/win32/*.c: Add last argument to g_type_register_static() calls. * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall. * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages generated by older wheel mouse drivers. Get the correct y coordinate from WM_MOUSEWHEEL messages. * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string, gdk_win32_fill_style_to_string, gdk_win32_function_to_string, gdk_win32_join_style_to_string, gdk_win32_line_style_to_string): Debugging functions. * gdk/win32/gdkprivate-win32.h: Declare them. * gdk/win32/gdkinput-win32.h: Add declaration for gdk_input_window_destroy(). * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o. * gdk_pixbuf.def: Add gdk_pixbuf_new_subpixbuf.
* Adjust to Tim's changes. Use glib-genmarshal etc.Tor Lillqvist2000-10-271-12/+29
| | | | | | | 2000-10-28 Tor Lillqvist <tml@iki.fi> * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use glib-genmarshal etc.
* gtk/makefile.mingw.in Updates.Tor Lillqvist2000-10-221-138/+139
| | | | | | | | | | | | | | | | | | | | | | | | 2000-10-22 Tor Lillqvist <tml@iki.fi> * gtk/makefile.mingw.in * gtk/gtk.def: Updates. * gtk/testgtk.c: sleep() is called _sleep in MS's C library. * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch(). * gtk/makefile.msc: Remove * gtk/makefile.msc.in: New file, like makefile.mingw.in. * gtk/Makefile.am: Add it. * configure.in: Generate it. * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor) * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return something even if not implemented, to satisfy picky MSVC.
* Guard definition of alloca(). glib.h now handles that.Tor Lillqvist2000-10-031-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | 2000-10-03 Tor Lillqvist <tml@iki.fi> * config.h.win32: Guard definition of alloca(). glib.h now handles that. * gdk/gdk.def * gtk/gtk.def: Add new entry points. Changes just to make GTK+ build without errors on Win32. No hope of it working in its current state, though...: * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings. Add some functions from the X11 backend, just to make GTK+ build. * gdk/makefile.mingw.in * gtk/makefile.mingw.in: Use correct gdk_pixbuf version number. Add new object files. * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use GetMessageTime to get timestamp (where on X11 uses gdk_x11_get_server_time()).
* gdk/gdk.def Add missing entries.Tor Lillqvist2000-08-121-9/+21
| | | | | | | | | | | | | | | | | | | | 2000-08-12 Tor Lillqvist <tml@iki.fi> * gdk/gdk.def * gtk/gtk.def: Add missing entries. * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use OUT_TT_ONLY_PRECIS, try to get a TrueType font. * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New function. Dummy implementation at this point. * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer rules. Undefine GTK_COMPILATION when compiling the test programs. * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import. * gdk_pixbuf.def: Add missing entry point.
* Add makefile.mingw.in to EXTRA_DIST.Tor Lillqvist2000-07-301-2/+2
| | | | | | | | | | | | | | | | | | 2000-07-30 Tor Lillqvist <tml@iki.fi> * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST. * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue): Remove the g_pipe_readable_msg stuff. Not needed with new GLib GIOChannel implementation. * gdk/win32/gdkinput.c * gdk/win32/gdkpango-win32.c: Update license name here, too. * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix definition to match prototype. * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
* Generate gtk/makefile.mingw.Tor Lillqvist2000-07-251-0/+431
2000-07-25 Tor Lillqvist <tml@iki.fi> * configure.in: Generate gtk/makefile.mingw. * config.h.win32: Add GETTEXT_PACKAGE. * gdk/gdk.def * gtk/gtk.def: Updates. * gdk/gdkfont.h * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't need them any longer. * gdk/gdkinput.h: Mark gdk_core_pointer for export/import. * gdk/win32/*.c: More work. * gdk/win32/gdkpango-win32.c: New file. * gtk/makefile.mingw.in: New file * gtk/makefile.cygwin: Removed * gtk/Makefile.am: Update accordingly. * gtk/gtkmain.c: Use gtk_win32_get_installation_directory(). * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h is enough. * gtk/gtktypeutils.c: Mark glib_debug_objects for import.