X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=ChangeLog.pre-2-0;h=19cbf109f1c9b693abf5708bd1cee6c6ab9dc6ac;hb=658b4b1da879a76328b779676b34c0c15b41596d;hp=ed7b7efad003bc0f4c33bdbe25b08ea8eb7d0081;hpb=ed7408e1ff3b2fcb59b1566b80c1af29d1b40367;p=~andy%2Fgtk diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index ed7b7efad..19cbf109f 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,1255 @@ +2000-10-09 Tor Lillqvist + + * 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 + + * 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 + + * demos/testpixbuf-save.c: add pixbuf save test + + * demos/Makefile.am: add testpixbuf-save.c + +2000-10-05 Jonathan Blandford + + * 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 + + * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new + tree widget. + +2000-10-04 Jonathan Blandford + + * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle + drawing. + +Wed Oct 4 15:52:15 2000 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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()). + +2000-10-02 Havoc Pennington + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove + Fix some warnings + +2000-09-26 Havoc Pennington + + * 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 + + * gtk/gtktexttypes.c: Remove Latin1 conversion stuff + + * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): + Fix a bug when removing node data, we didn't properly + re-splice the linked list after removing the data. + + * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through + GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget + + * gtk/gtktextbuffer.c (selection_received): fix g_convert usage + + * gtk/gtktextlayout.c (set_para_values): Set tab array + for the layout from the GtkTextTag. + + * gtk/gtktexttypes.h: delete tab and search cruft, + remove g_convert() in favor of GLib version + + * gtk/gtktexttypes.c: remove tab implementation from here, + move to Pango + + * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement + tab stuff using new PangoTabArray from Pango + + * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove + unused border_width stuff + +Thu Sep 14 12:21:12 2000 Owen Taylor + + * gtk/gtktexttypes.[ch]: Remove g_convert (moved to + glib) and now useless utf_to_latin1() latin1_to_utf() + + * gtk/gtktextview.[ch]: Change ::move_insert and + ::delete_text action signals to ::move and ::delete; + create the signals with the right enumeration type, + not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d, + C-v bindings, change Home, End to move to beginning/end + of line, Add C-Home C-End to move to beginning/end + of buffer. Change ::cut_text to ::cut_clipboard, etc; + combine ::scroll_text into ::move; use new GtkSelectionData + functions to simplify DND text handling. + + * gtk/gtkenums.h gtk/gtktextview.h: Move movement, + deletion enumerations here, rename enumeration values to + be consistently plural. + + * gtk/gtktextbuffer.c: Use new clipboard interfaces + for cut/copy/paste and primary selection. + + * gtk/gtktextbuffer.[ch]: Remove excess time and + 'interactive' arguments from cut/copy/paste; + rename cut to cut_clipboard, etc; remove + gtk_text_buffer_get_clipboard_contents(). + + * gtk/gtktextlayout.[ch]: Add + gtk_text_layout_move_iter_to_line_end() to move the iter to + line ends. + + * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text): + Functions to set or get a UTF-8 string on the selection + data. + + * gtk/gtkclipboard.[ch]: New, simplified selection handling + interfaces. + + * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly + created widgets - one of these is useless if we don't. + + * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export + a public function clear all targets registered for the + widget. + + * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt: + Never call gtk_widget_realize() - that was just asking + for bizarre side-effects. + + * gtk/gtkselection.c (gtk_selection_owner_set): Call + gdk_selection_owner_set even if the widget is the + same so that we reliably update the timestamp on + the server. + + * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a + gdk_x11_get_server_time() function. + + * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h + gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h: + Add some tricky filtering on serial numbers for + selection clear events to fix up long-standard + race condition FIXME's in gtkselection.c. + + * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add + routines to convert from utf8 to compound text or + STRING and from a text property to UTF-8. + + * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add + a convenience function gdk_get_current_event_time(). + + * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy + and free selection_data->data properly + +Sat Sep 9 17:15:45 2000 Owen Taylor + + * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add + extra config options "im_module_file" (cache file for + input method modules), and "im_module_path" - path + to look for modules when generating cache file. + + This doesn't scale. + +Sat Sep 9 10:23:53 2000 Owen Taylor + + * gtk/gtkthemes.c: Remove some unecessary includes. + +2000-09-08 Jonathan Blandford + + * gtk/gtktextdisplay.c + * gtk/gtktextlayout.c + * gtk/gtktexttag.c + * gtk/gtktexttag.h + * gtk/testtext.c: Change the overstrike property to strikethrough, + to closer match pango. + +Fri Sep 8 14:28:00 2000 Owen Taylor + + * gtk/gtktextview.c: Fix up visibility so that focus, + cursor_visible and blink interact properly. Reenable cursor blink + which had been roughly disabled. Make blink and focus + properly per-view. + + * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible): + Add a flag for whether to display insertion cursor and + a function to set the flag. + + * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change + get_line_y() to get_line_yrange(), to be a bit more generally + useful. + +Thu Sep 07 20:54:33 2000 George Lebl + + * gtk/gtkmenu.c: in gtk_menu_set_submenu_navigation_region + do stop_navigating_submenu, to clear last timeout properly. + Also in gtk_menu_motion_notify move ignore_enter above + the conditional to make it always happen as suggested by Owen + +2000-09-07 Tor Lillqvist + + * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o + + * gdk/win32/gdkwin32.h: Add more definitions missing from the free + w32api headers. + + * gdk/win32/gdkprivate-win32.h: Add a couple of missing + declarations. + + * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings. + (gdk_win32_get_colormap): A line had been deleted by mistake. + + * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too. + (gdk_event_translate): Handle more virtual keycodes to be able to + generate GDK events for Control-comma, Control-period, etc. + + * gtk/gtk.def: Add some missing entry points. + +Thu Sep 7 11:47:02 2000 Owen Taylor + + * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c: + Doc comment fixing. (Mostly non-matching parameter names.) + + * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify + comments a little to avoid looking like a doc comment. + + * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to + GTK_INPUT_ERROR. (Should the mechanism for erros in spin button + conversions be changed to GError?) + + * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): + Move private #defines into .c file. + + * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize + order of argument addition, remove duplicates. + + * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass): + parent class is FrameClass, not BinClass. + + * gtk/gtk.h: Add gtkinvisible, which was missing. + (It's occasionalyl useful for client apps, if seldom.) + + * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER + #define. + +Wed Sep 6 09:53:15 2000 Owen Taylor + + * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space + coordinates when creating window, instead of GDK-space + coordinates. (Avoid BadValue on too large windows.) + +2000-09-05 Sebastian Wilhelmi + + * configure.in (use_mmx_asm): Remove conftest* after use along the + lines of AC_TRY_COMPILE. + + * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead + of g_dirname, which is deprecated. + (gtk_rc_parse_any): Removed calls to + g_scanner_{freeze,thaw}_symbol_table, which are deprecated. + + * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy): + Removed calls to g_hash_table_{freeze,thaw}, as they are + deprecated now. + + * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename + instead of g_basename. + +2000-09-04 Elliot Lee + + * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid + ANSI warning. + +Sun Sep 03 00:47:08 2000 George Lebl + + * gtk/gtkwidget.h: Add some documenting comments about + GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT + just as owen said on irc. + + * gtk/gtkwindow.c (gtk_window_set_default): Don't blindly + set HAS_DEFAULT. Only set it if there isn't another window + holding it (a focus window which RECEIVES_DEFAULT) and only unset + it if the widget is not the focused window with RECEIVES_DEFAULT. + This fixes weird double default bugs in dialogs which has things + call gtk_window_set_default at times. + +Fri Sep 1 22:39:07 2000 Owen Taylor + + * gtk/gtkmenu.[ch] TODO.xml: Apply patch from + Nils Barth and David Santiago to improve submenu + navigation. The patch does this by creating a triangular + region from the point where the pointer leaves the + menu to the submenu. While the pointer is in + that region and a timeout has not expired, events + that would cause the active submenu to change are + ignored. + +Fri Sep 1 15:34:46 2000 Owen Taylor + + * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where + moving a toplevel window immediately after sizing it would + result in it being sized back to the old size since + impl->width, impl->height aren't updated until we hear + back from the server. There is still a (longstanding) bug + here that gdk_window_get_size() will give the wrong size + until we do hear back. + +2000-08-31 Havoc Pennington + + * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, + gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, + gtk/gtktexttagprivate.h, gtk/gtktextview.c: + Rename GtkTextStyleValues to GtkTextAttributes + +2000-08-31 Havoc Pennington + + * gtk/gtktextbtree.c (GtkTextBTree): cache end line, + for rapid testing whether an iterator is the end iterator + (gtk_text_btree_new): init end line cache + (gtk_text_line_is_last): use fast cached line to + see if we're the last line. + (get_last_line): use cached line here too, should + speed up some random unrelated code. + +2000-08-30 Havoc Pennington + + * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer + signals. + + * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and + delete_text signals. This allows the signals to be used for + implementing undo. + + * gtk/gtktextbuffer.c: Change signal handler signatures; + provide "interactive" argument when emitting insert_text or + delete_text signal. + +2000-08-30 Havoc Pennington + + * gtk/gtktextbuffer.c: Docs + +Fri Aug 25 12:16:15 2000 Owen Taylor + + * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP + from switch statements, since Tor removed the enumeration + value. + + * gdk/x11/gdkimage-x11.c (gdk_image_get): + s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/. + +2000-08-29 Elliot Lee + * */*.h: Use G_GNUC_CONST. + +2000-08-27 Havoc Pennington + + * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs, + minor indentation fixes, inserted some FIXME about stuff I + realized was broken while documenting it. + (gtk_text_iter_get_pixmap): allow out params to be NULL, following + GTK convention + +Tue Aug 22 12:33:24 2000 Owen Taylor + + * gtk/testgtk.c (create_styles): Fix double free of + font desc. + +Mon Aug 21 22:39:18 2000 Owen Taylor + + * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}. + + * gtk/testgtk.c (create_styles): Add a test for modifying + the style through gtk_widget_modify_*. + + * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add + a function to get the current modifier style. + + * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy + of the passed in GtkRcStyle instead of ref'ing it. + + * gtk/gtkrc.[ch]: Add gtk_rc_style_copy(). + +2000-08-20 Tor Lillqvist + + * gdk/gdkimage.h + * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the + shared memory image+pixmap GdkImage type, or + gdk_image_bitmap_new(). They were used in the gdk_imlib port, but + I am dropping that. + + * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to + actually call gtk_init_abi_check(), passing also + sizeof(GtkWindow). Ditto for gtk_init_check(). + + * gtk/gtk.def + * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check): + New functions, used to check that the GTK+-using code has been + compiled using the correct compiler and switches. In particular, + with gcc one has to use the -fnative-struct switch as GTK+ is + compiled with that. + +Fri Aug 18 17:27:46 2000 Owen Taylor + + * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling + ->prev fields when merging lists. (Found simultaneously + by Pawel Salek and Jakub Jelinek) + +2000-08-12 Tor Lillqvist + + * 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. + +2000-08-11 Tor Lillqvist + + * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8() + to convert back and forth from UTF-8 and the "system" (or "current + locale") charset when necessary. Indentation/spacing cleanup. + +2000-08-10 Havoc Pennington + + * Makefile.am (snapshot): Change the format of the snapshot + version to match glib + + * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h + from EXTRA_DIST since it doesn't seem to exist + +2000-08-10 Tor Lillqvist + + * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage" + version of the directory name (not the UTF-8 one) when building + the path name to stat(). + +2000-08-03 Elliot Lee + + * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a + PANGO_ATTR_SHAPE set. + +Thu Aug 3 09:17:06 2000 Owen Taylor + + * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from + Peter Osterlund to simplify the code while keeping the + functionality the same. + +Wed Aug 2 14:57:38 2000 Owen Taylor + + * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move + is_viewable() test further inside the function, since removing the + window from the redraw list without clearing ->update_area + was also very broken. + +2000-08-02 Tor Lillqvist + + * configure.in: Check for . + +2000-08-01 Martin Baulig + + * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning() + to display the message that this is a development version of GTK+. + +Mon Jul 31 18:37:36 2000 Owen Taylor + + * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation + was depending on widget->allocation instead of the width of text_area, + which was incorrect for subclasses like GtkSpinButton. + + * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos + with width == 1 tests that should be width == -1. + +Mon Jul 31 16:45:48 2000 Owen Taylor + + * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, + (broken, Elliot, every single window blank on X) custom code with call + to gdk_window_is_viewable() which a) prevents code duplicate and + b) works. + +2000-07-31 Elliot Lee + + * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order to get the GDK_PARENT_ROOT() macro to work. + * gtk/gtkmarshal.list: Add NONE:STRING,POINTER + * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces of, windows that aren't shown. + * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of pointer grab stuff. + +Mon Jul 31 13:53:16 BST 2000 Tony Gale + + * docs/gtkfaq.sgml docs/gtk-faq.sgml: + s/gtk_main_iteration/g_main_iteration/ + + Did this already in change: + Mon Nov 15 17:17:51 GMT 1999 Tony Gale + don't know how it got reverted. + +2000-07-31 Stanislav Brabec + + * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and + gdk_arg_no_debug_cb to fix compilation problem with --disable-debug. + + * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3, + not gdk_pixbuf. + +2000-07-30 Pablo Saratxaga + + * configure.in,po/{sp,sr}.po: Added Serbian files + +2000-07-30 Tor Lillqvist + + * 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. + +2000-07-27 Elliot Lee + + * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type + function, to allow handling image formats that cannot be detected + by looking at content alone. + +Thu Jul 27 13:13:21 BST 2000 Tony Gale + + * docs/tutorial/*.gif *.jpg *.eps + Update these to the same look-n-feel. + Why does including images in DocBook suck so badly? + +Thu Jul 27 05:06:29 2000 Tim Janik + + * gtk/gtktable.c: applied patch from Phil Thompson + that enables space settings for + the last row/columns as well. + +Wed Jul 26 12:59:31 2000 Tim Janik + + * *.[hc]: applied patch from Andreas Persenius that + updates the license headers to the GNU Lesser General Public License, + as well as updating the copyright year to 2000. + +2000-07-26 Robert Brady + + * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h + and po/Makefile, was installing and looking for them under gtk20 + and gtk2 respectively. + +2000-07-25 Havoc Pennington + + * gtk/testtext.c: Comment out some stuff that depends on the rest + of my patches. + +2000-07-25 Havoc Pennington + + * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text + buffer + +2000-07-25 Havoc Pennington + + * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text + widget changes. + + * gtk/gtktextview.h: To be consistent with usage of "line" + throughout the API to mean "newline-terminated thingy", change + MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH + to MOVEMENT_LINE. + + (GtkTextView): Add flags for default editability, and whether to + show the cursor. Add functions to get/set that. Add + + (gtk_text_view_get_iter_location): new function + + * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to + gtktextlayout.h + (g_convert): Add g_convert temporarily, will go in glib in a bit + + * gtk/gtktexttagtable.h: include gtktexttag.h, and define + GtkTextTagTableForeach instead of brokenly using GHFunc. + Change gtk_text_tag_table_foreach() so it doesn't use GHFunc. + + * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here, + moved to public header. + + * gtk/gtktexttag.h: Rename the "elide" attribute of tags to + "invisible", since "elide" was a bad name. + (gtk_text_tag_get_priority): Added + + (GtkTextStyleValues): put this in public header, along with + functions to use it. + + * gtk/gtktextmarkprivate.h: Include more headers, since we no + longer include gtktextbtree.h. + + * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref, + gtk_text_mark_deleted + + * gtk/gtktextlayout.h: Don't include the "really private" headers, + only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData + to make this possible. Now we only need to install + gtktextlayout.h, not gtktextbtree.h and gtktext*private.h. + (However the Makefile.am isn't changed yet because of the + logistics of merging gtk-hp-patches piecemeal) + + * gtk/gtktextiterprivate.h: include btree header, so it compiles; + rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since + gtk_text_iter_get_line is now used in the public API for a + different purpose. + + * gtk/gtktextiter.h: Clean up function names to be more + consistent. Always call char offset "offset" and byte index + "index". A "line" is always a line number. + + (gtk_text_iter_is_last): new function, more efficient than + the existing way to check + (gtk_text_iter_is_first): new function, also more efficient + + (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these + + (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from + gtk_text_iter_forward_char, etc. + + (gtk_text_iter_forward_to_tag_toggle): Renamed from + forward_find_tag_toggle, since this isn't a linear search + + (GtkTextCharPredicate): rename from GtkTextViewCharPredicate + + (gtk_text_iter_forward_search, gtk_text_iter_backward_search): + New functions, search for a buffer substring. + + * gtk/gtktextbuffer.h: Add fields to store whether a paste is + interactive and default editable (since we need to store that info + until we receive the selection data). + + Remove all the _at_char and at_line etc. versions of functions; + only have iterator versions. + + Add _interactive() versions of functions, that consider the + editability of text. (FIXME add interactive flag to the + insert/delete signals per Darin's suggestion) + + (gtk_text_buffer_get_tag_table): new function, demand-creates the + tag table if necessary + + Remove declaration of gtk_text_buffer_get_iter_from_string + + (_gtk_text_buffer_get_btree): private/internal function, added. + + + * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData. + (gtk_text_line_is_last): new function + +2000-07-25 Havoc Pennington + + * gtk/gtkprogressbar.h: Implement new sane, 5-function API for + using GtkProgressBar. See Changes-2.0.txt for details. + + * gtk/gtkprogressbar.c: Add object arguments "fraction" and + "pulse_step" which are the equivalent of + gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction. + Implement new API. + + * gtk/gtkprogress.h (struct _GtkProgress): Add a field + (use_text_format) to mark whether text set on the progress bar is + a format string. Deprecate entire GtkProgress interface. + + * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE + (gtk_progress_build_string): make this a no-op if use_text_format + is FALSE + + * docs/Changes-2.0.txt: Describe progress bar changes. + +2000-07-25 Tor Lillqvist + + * Makefile.am: Include the build directory. + + * configure.in: Generate build/Makefile, build/win32/Makefile, + gdk/, gdk/win32/, and gtk/makefile.mingw. + + * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf. + 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/makefile.mingw.in: Define GDK_COMPILATION. Link with + PANGOWIN32_LIBS and gdk_pixbuf. + + * gdk/win32: Compiles, but no doubt doesn't work at all. + + * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. + + * gdk/win32/gdkinput.c: New file, temporarily. + + * gdk/win32/gdkinput-win32.h: New file + + * gdk/win32/gdkinputprivate.h: Remove. + + * gdk/win32/gdkpango-win32.c: New file. + + * gtk/makefile.mingw.in: New file + + * gtk/makefile.cygwin: Removed + + * gtk/Makefile.am: Update accordingly. + + * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and + made externally visible. + + * gtk/gtkmain.c: Use it. + + * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h + is enough. + + * gtk/gtktypeutils.c: Mark glib_debug_objects for import. + +2000-07-24 Elliot Lee + * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the + individual backends already. + * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together + again. Yes, there really is a good reason for this, if you are using the gdkregion + internals, and if you're not, why do you care? + * gdk/gdkwindow.c: Fix inverted condition + * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely). + * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb + * gtk/gtkrange.c: Redraw trough when moving. + * gtk/gtktypeutils.c: Fix warning by adding const cast. + * modules/linux-fb/basic.c: Fix unknown glyph retrieval. + +2000-07-23 Tor Lillqvist + + * configure.in: Check for mkstemp and sigsetjmp. Output + gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw. + + More work on GDK for Win32. Still in an intermediate state. + + * gdk/makefile.cygwin + * gdk/win32/makefile.cygwin: Removed. + + * gdk/makefile.mingw.in + * gdk/win32/makefile.mingw.in: New files. + + * gdk/Makefile.am + * gdk/win32/Makefile.am: Generate and distribute them. + + * gdk/win32/gdkwindow-win32.h + * gdk/win32/gdkdrawable-win32.h + * gdk/win32/gdkpixmap-win32.h: New files. + + * gdk/win32/gdkcolor-win32.c + * gdk/win32/gdkcursor-win32.c + * gdk/win32/gdkdrawable-win32.c + * gdk/win32/gdkgc-win32.c + * gdk/win32/gdkimage-win32.c + * gdk/win32/gdkprivate-win32.h + * gdk/win32/gdkwin32.h: Update data structures. Cosmetics: + Rename fields and variables called xcursor, xid, etc (these names + were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc. + +Sat Jul 22 17:41:26 2000 Owen Taylor + + * gtk/gtkentry.[ch]: Fix some problems with vertical + alignment. + + * gtk/gtkentry.c (gtk_entry_find_position): Fix + char/byte confusion. + +Sat Jul 22 11:16:05 2000 Owen Taylor + + * gtk/gtktextview.c (changed_handler): Fix bug where + redraw wasn't being done properly when height of + dirty region changed. + + * demos/Makefile.am: Remove various references to + -lgmodule + +Fri Jul 21 15:28:13 2000 Owen Taylor + + * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new + PangoAttrShape to reserve space for pixmaps, add + GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps + in the display functions. + + * gtk/testgtk.c (create_layout): Set some more exotic + scrolled window options + + * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type): + Add function to set the shadow type of a window, to allow + putting a shadow around widgets such as GtkLayout or GnomeCanvas + which don't draw their own frame. + +Fri Jul 21 16:34:42 BST 2000 Tony Gale + + * docs/tutorial/package-db-tutorial.sh: New file for + packaging DocBook format tutorial + +Fri Jul 21 14:23:51 BST 2000 Tony Gale + + * docs/tutorial/gtk-tut.sgml: Minor updates + + * docs/tutorial/*.jpg *.eps: Screenshots for tutorial + +2000-07-19 Tor Lillqvist + + * gtk/gtksignal.c: Fix C++ comment. + + * gtk/gtkimmulticontext.c + * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__, + don't return value from void functions. + + * gtk/gtk.def: Add gtk_rc_style_unref. + +2000-07-19 Sebastian Wilhelmi + + * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h, + gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h, + gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h, + gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h, + gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h, + gtk/gtktypeutils.h: Include files outside of the extern "C" + block. Makes some C++ compiler happy. Reported by Denis Vakatov + . + +Wed Jul 19 14:07:57 BST 2000 Tony Gale + + * docs/tutorial/gtk-tut.sgml: Yet more clean ups. + Completes first pass. Hurrah! + +Tue Jul 18 17:17:55 BST 2000 Tony Gale + + * docs/tutorial/gtk-tut.sgml: More clean ups. + +Mon Jul 17 18:52:38 2000 Owen Taylor + + * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to + paint the background of the text area which was accidentally + removed at some point. + + * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: + + - Move most of the functionality from the theme vtable + into GtkRcStyleClass and GtkStyleClass. The moved + vtable functions were changed a bit in the move to + work better in their new home. + + - Get rid of the engine and engine_data fields from + GtkRcStyle and GtkStyle; instead the theme + engine derives theme-specific subclasses of GtkRcStyle + and GtkStyle + + - Add extra dlsym() found entry point to themes, + theme_create_rc_style(). + + * gtk/gtkstyle.c: Copy xthickness, ythickness fields + in gtk_style_real_copy. + + * gtk/themes.[ch]: add a function gtk_theme_engine_register_type() + to register a type associated with an engine. (The engine + won't be unloaded as there is an instance of the type.) + + +Mon Jul 17 18:19:06 BST 2000 Tony Gale + + * docs/tutorial/gtk-tut.sgml: Clean ups. + +Mon Jul 17 13:59:29 BST 2000 Tony Gale + + * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots + of cleaning up to do. + +2000-07-15 Tor Lillqvist + + * gdk/testgdk.c: New file, quick hack to test backends for + pixel-by-pixel correctness of the most simple graphic operations. + +Fri Jul 14 20:30:25 2000 Owen Taylor + + * Really release 1.3.1 + + * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new + include structure. + +Fri Jul 14 18:40:39 2000 Owen Taylor + + * Released 1.3.1 + +Fri Jul 14 16:21:26 2000 Owen Taylor + + * gtk/gtktextlayout.c: use FALSE for size_only most + of the time when calling gtk_text_layout_get_line_display() + to avoid causing double reshapes when a redraw follows + immediately after. + +Tue Jul 11 11:13:40 2000 Owen Taylor + + * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate + appropriate region and gdk_window_process_updates() so trough + updating doesn't lag behind the window being scrolled. + + * gdk/gdkgc.c: Make parent_class pointer static. + +Sun Jul 9 21:31:23 2000 Owen Taylor + + * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c: + include . + + * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix + cut-and-paste error in computing memory offset for 4 channels. + Fri Jul 14 14:05:02 2000 Owen Taylor * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove