-2000-09-25 Havoc Pennington <hp@redhat.com>
+2000-10-09 Tor Lillqvist <tml@iki.fi>
+
+ * README.win32: Update.
+
+ * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
+ lines that had been deleted by mistake (?).
+
+ * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
+ also the case fg==white and bg==black (but still not randomly
+ coloured cursors). Thanks to Wolfgang Sourdeau.
+
+ * gdk/win32/*.c: Silence gcc -Wall.
+
+ * gtk/gtk.def: Add missing entry points.
+
+ Fixes by Hans Breuer:
+
+ * gdk/makefile.msc
+ * gdk/win32/makefile.msc: Update.
+
+ * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
+ some MSVC thing, presumably), cause breakpoint on failures. Add
+ GDK_NOR case. Call g_log_set_always_fatal.
+
+ * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
+ should be pased by reference.
+
+ * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
+
+ * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
+
+ * gdk/win32/gdkevents-win32.c
+ * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
+
+ * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
+ implementation object.
+
+ * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
+ not just windows.
+
+ * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
+ Use the wrapper object.
+
+2000-10-06 Havoc Pennington <hp@redhat.com>
+
+ * Makefile.am (SRC_SUBDIRS): contrib subdir
+
+ * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
+ so it can be used in Xlib version
+
+ * demos/testpixbuf.c (update_timeout): error checking from 1.0
+ tree
+
+ * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
+ change from 1.0 tree that returns first frame of animation
+ if the loaded file is an animation.
+
+ * contrib: add new directory to hold stuff that comes with GTK+
+ but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
+
+ * configure.in: add contrib/*
+
+2000-10-05 Havoc Pennington <hp@redhat.com>
+
+ * demos/testpixbuf-save.c: add pixbuf save test
+
+ * demos/Makefile.am: add testpixbuf-save.c
+
+2000-10-05 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
+ GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
+ * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
+ * gtk/gtktreeselection.[ch]: Replaced
+ "node_selected"/"node_unselected" signal with "selection_changed"
+ signal.
+
+2000-10-04 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
+ tree widget.
+
+2000-10-04 Jonathan Blandford <jrb@redhat.com>
+
+ * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
+ drawing.
+
+Wed Oct 4 15:52:15 2000 <otaylor@redhat.com>
+
+ * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
+ Move list pointer forwards before removing item from
+ list. (Crash reported by Salmaso Raffaele)
+
+ * gdk/gdkwindow.h: Remove spurious trailing ,
+
+ * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
+ dependencies on uninstalled libraries, sorry folks.
+
+2000-10-04 Havoc Pennington <hp@redhat.com>
+
+ * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
+ gtk/gtkiconfactory.c: Fix copyrights
+
+ * demos/testpixbuf.c: add inline pixbuf test
+
+Mon Sep 25 15:05:17 2000 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
+ Add gdk_window_iconify.
+
+ * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
+ (gdk_window_set_geometry_hints): Add win_gravity
+ to geometry structure.
+
+ * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
+ Implement _NET_WM_PING.
+
+ * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
+ Set _NET_WM_PID on the client leader.
+
+ * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
+ Handle UTF-8 better.
+
+ * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
+ UTF-8 better, set _NET_WM_NAME as well. Only set
+ icon name if it hasn't previously been explicitely
+ set.
+
+2000-10-03 Havoc Pennington <hp@redhat.com>
+
+ * gtk/testtextbuffer.c: clean up trailing whitespace,
+ add extensive tests for tag toggle iteration.
+
+ * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan
+ distance
+
+ * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
+ optimize case where the tag root is on level 1
+ (gtk_text_line_previous_could_contain_tag): attempt to implement
+ (gtk_text_line_next_could_contain_tag): Abstract out node_compare
+ functionality
+
+ * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
+ Implement this, though not very efficiently.
+
+ * gtk/gtktextiterprivate.h: reformat
+
+ * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
+ iterator
+
+ * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
+ this to properly revalidate the iterators.
+
+ * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
+ properly at the end of the line (and therefore on empty lines)
+
+ * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
+ maybe we should return a value...
+
+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.
- * gtk/gtktextview.c: Draw the focus, and leave space to do so.
+ * 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()).
+
+2000-10-02 Havoc Pennington <hp@pobox.com>
+
+ * gtk/gtktextview.c: text_window_* weren't static and should have
+ been.
+ Start work on child widgets; not yet complete, syncing to
+ office computer.
+
+ * gtk/gtktextchild.h: change this to contain a public interface,
+ starting work on child interfaces.
+ * gtk/gtktextchildprivate.h: move private interfaces here
+
+ * gtk/Makefile.am: update to reflect gtktextchildprivate.h
+
+ * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
+ gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c,
+ gtk/gtktextmark.c: copyright notices
+
+ * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
+ internal functions
+
+ * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
+ internal function
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
+ Reformatting
+
+2000-09-30 Havoc Pennington <hp@pobox.com>
+
+ * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
+ NULL start/end pointers
+
+ * gtk/gtktextbuffer.c: Write some docs
+ (gtk_text_buffer_get_selection_bounds): Allow start/end to be
+ NULL, so you can just check whether there's a selection.
+
+ * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to
+ cleanup_line or segments_changed ourselves, it gets done
+ in unlink_segment
+
+ * gtk/gtktextmark.h:
+ s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
+
+ * gtk/gtktextsegment.h: Clean up some indentation and naming mess
+
+ * gtk/gtktextmark.c: delete some more old Tk cruft
+
+ * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
+ mark before removing it, so we can emit MARK_DELETED with a valid
+ pointer.
+ (gtk_text_buffer_mark_set): hold ref across signal emission
+
+ * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
+ whining about attempts to delete special marks
+
+ * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
+ underscore, since it's internal.
+
+ * gtk/gtktextbuffer.h: Remove find_string prototype, this is
+ now implemented in terms of iterators in gtktextiter.h
+
+ * gtk/gtktextbuffer.c (gtk_text_buffer_set_text):
+ New function, destructively sets contents of buffer. Also
+ a convenient way to clear the buffer by setting text to ""
+
+ * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
+ multiline string literal
+
+ * gtk/testtext.c (text_changed_callback): Redraw line numbers if
+ text changes.
+
+ * gtk/gtktextiter.c (forward_char): Return FALSE if new location
+ is not dereferenceable
+ (gtk_text_iter_forward_lines): fix return value
+
+2000-09-29 Havoc Pennington <hp@redhat.com>
+
+ * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
+
+ * gtk/gtktextview.c: Implement drag thresholding; change functions
+ that set border window size to have nicer name
+ (gtk_text_view_mark_set_handler): Fix this to have the
+ right signature.
+
+ * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
+
+ * gtk/testtext.c: Update with API changes, put line numbers on
+ both sides.
+
+ * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
+ with this
+
+ * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
+ pixbuf; delete a big block of #if 0 Tk code
+
+ * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace
+ insert_pixmap with insert_pixbuf
+
+2000-09-29 Martin Baulig <baulig@suse.de>
+
+ * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
+ confusion with the GdkPixbuf of the GNOME 1.x platform.
+
+2000-09-29 Havoc Pennington <hp@pobox.com>
+
+ * gtk/gtktextview.c: Implement the side windows.
+
+ * gtk/testtext.c: Implement simple line numbering in the
+ left side window; seems to make scrolling sloooow. Oops.
+ Also, cursor blink is for some reason causing redraws
+ of the line numbers. Should investigate...
+
+2000-09-28 Havoc Pennington <hp@redhat.com>
+
+ * gtk/gtktextview.c: Set up infrastructure to deal with lots of
+ scrolling child windows, and draw focus rectangle properly.
+
+ (gtk_text_view_buffer_to_window_coords):
+ Coordinate transformation to deal with all these freaking windows
+ and offsets
+ (gtk_text_view_window_to_buffer_coords): transform the other way
+
+ * gtk/testtext.c (create_buffer): Update to match Pango API change
+
+ * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
+ anonymous tags
+ (foreach_unref): don't emit remove signal from finalize, just
+ set tag's parent to NULL
+
+2000-09-26 Havoc Pennington <hp@redhat.com>
+
+ * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
+ Fix some warnings
+
+2000-09-26 Havoc Pennington <hp@redhat.com>
+
+ * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
+ headers into the private header list
+
+ * Makefile.am (pkgconfig_DATA): install pkg-config files
+
+ * configure.in: add pkg-config files
+
+ * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
+
+ * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
+ outstanding icon caches on theme change.
+
+ * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three
+ important types:
+
+ (GtkIconSource): Specification for creating a pixbuf
+ appropriate for a direction/state/size triplet from
+ a source pixbuf or filename
+
+ (GtkIconSet): List of GtkIconSource objects that are used to
+ create the "same" icon (e.g. an OK button icon), and cache for
+ rendered icons
+
+ (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
+ up the icon set for a given stock ID. GTK maintains a stack of
+ GtkIconFactory to search, and applications or libraries can add
+ additional icon factories on top of the stack
+
+ * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse
+ the set of GtkIconSource specified for a given stock ID into
+ a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the
+ RcStyle, under the specified stock ID.
+
+ * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
+ render_icon used to derive a GdkPixbuf from a GtkIconSource.
+ This allows people to theme how prelight, insensitive, etc. are
+ done.
+
+ (gtk_style_lookup_icon_set): Look up a stock ID in the list of
+ icon factories for a style, and return the resulting
+ icon set if any.
+
+ (gtk_style_render_icon): Render an icon using the render_icon
+ method in the GtkStyleClass.
+
+ * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon):
+ Use the style for a given widget to look up a stock ID, get the
+ icon set, and render an icon using the render_icon method
+ of the style
+
+ * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
+ (contains information about a stock item), the built-in stock item
+ IDs, and functions to add/lookup stock items.
+
+ * gtk/stock-icons/*: Stock icons that come with GTK
+
+ * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
+ a button based on a GtkStockItem
+ (gtk_button_new_accel): Takes a uline string and accel group, and
+ installs the accelerator.
+
+ * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
+ image-display widget.
+
+2000-09-25 Havoc Pennington <hp@redhat.com>
* gtk/gtktexttypes.c: Remove Latin1 conversion stuff