8bb8d2e7f1a6738e80db7cec8237f5431a92f6c9
2002-01-27 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkprivate-win32.h: Unify GdkPixmap and GdkImage implementation: For each GdkPixmap, allocate a GdkImage, and vice versa. GdkDrawableWin32Data has a pointer to the GdkImage. GdkImagePrivateWin32 has a pointer to the GdkPixmap. Declare new and renamed functions (see below). * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc_colors): Cosmetics. * gdk/win32/gdkdrawable-win32.c (gdk_win32_drawable_type_to_string, gdk_win32_drawable_description): New debugging functions. (gdk_win32_draw_drawable): Revamp the from-pixmap case: Use foreground and background in the GC correctly when drawing bitmaps. (The 0 bits select the background, the 1 bits the foreground.) Still need to handle blitting from 8-bit pixmaps in general correctly: Now we let the BitBlt convert colours (if it thinks that is necessary), we should change the colour table of the source to match that of the destination before blitting, so that just the indexes are copied, like X11 does. * gdk/win32/gdkgc-win32.c (gdk_win32_colormap_color_pack): Rename from gdk_colormap_color. (gdk_win32_colormap_color_unpack): New function, kinda inverse of gdk_win32_colormap_color_pack. Actually not used, though. (gdk_win32_bitmap_to_region): Simplify greatly, now that GdkPixmaps always have the DIB section bits available. Take a GdkPixmap parameter. * gdk/win32/gdkimage-win32.c: Change according to the GdkPixmap-GdkImage unification. Many function reduced a lot: (gdk_image_new_bitmap, gdk_image_new, gdk_image_get): Use gdk_win32_pixmap_new(). (gdk_image_put): Use gdk_draw_drawable(). gdk_image_get() should probably be changed to use gdk_draw_drawable(), too. * gdk/win32/gdkinput-win32.c: Fix problems if !HAVE_WINTAB_H. * gdk/win32/gdkpixmap-win32.c: Change according to the GdkPixmap-GdkImage unification. (setup_pixmap_image): New function, initialises the GdkImage attached to a GdkPixmap. (gdk_win32_pixmap_new): New function, that handles all creations of the unified GdkPixmap-GdkImage DIB section. Yes, only one call to CreateDIBsection() left in the code. (_gdk_pixmap_create_from_xpm): No need to create the resulting pixmap separately and gdk_draw_image() into it. Just use the GdkPixmap view of the GdkImage that we have been storing pixels into. * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Don't error out if on palettized display any longer. 2002-01-24 Tor Lillqvist <tml@iki.fi> * gdk/gdkpixmap.h: Remove gdk_pixmap_create_on_shared_image() declaration.
General Information =================== This is GTK+ version 1.3.0. GTK+, which stands for the Gimp ToolKit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. The official ftp site is: ftp://ftp.gtk.org/pub/gtk The official web site is: http://www.gtk.org/ A mailing list is located at: gtk-list@redhat.com To subscribe: mail -s subscribe gtk-list-request@redhat.com < /dev/null (Send mail to gtk-list-request@redhat.com with the subject "subscribe") Installation ============ This is the gtk-1-3-win32-production branch, intended only for Windows. See README.win32. How to report bugs ================== Bugs should be reported to the GNOME bug tracking system. (http://bugs.gnome.org). To report a problem about GTK+, send mail to submit@bugs.gnome.org. The subject of the mail should describe your problem. In the body of the mail, you should first include a "pseudo-header" that gives the package and version number. This should be separated by a blank line from the actual headers. Package: gtk+ Version: 1.3.0 [ Please substitute 1.3.0 with the version of GTK+ that you have installed ] Then describe the bug. Include: * Information about your system. For instance: - What operating system and version - What version of X - For Linux, what version of the C library And anything else you think is relevant. * How to reproduce the bug. If you can reproduce it with the testgtk program that is built in the gtk/ subdirectory, that will be most convenient. Otherwise, please include a short test program that exhibits the behavior. As a last resort, you can also provide a pointer to a larger piece of software that can be downloaded. (Bugs that can be reproduced within the GIMP are almost as good as bugs that can be reproduced in testgtk. If you are reporting a bug found with the GIMP, please include the version number of the GIMP you are using) * If the bug was a crash, the exact text that was printed out when the crash occured. * Further information such as stack traces may be useful, but is not necessary. If you do send a stack trace, and the error is an X error, it will be more useful if the stacktrace is produced running the test program with the --sync command line option. An example of a bug report: ==== To: submit@bugs.gnome.org From: yourname@your.address.org Subject: handlebox test in testgtk is misnamed. Package: gtk+ Version: 1.3.0 When I run gtk/testgtk, the button "handle box" is misnamed. There are multiple handle boxes in the demo, so it should be "handle boxes", to be like "buttons" or "check buttons". === Patches ======= Patches can be uploaded to the incoming/ directory on ftp.gtk.org. Please follow the instructions there, and include your name and email address in the README file. If the patch fixes a bug, it is usually a good idea to include all the information described in "How to Report Bugs".
Description
Languages
C
90.8%
CSS
7.3%
Meson
0.5%
SCSS
0.4%
GLSL
0.3%
Other
0.5%