summaryrefslogtreecommitdiff
path: root/gtk/gtktextbtree.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a warning.Matthias Clasen2006-04-031-1/+1
| | | | | | | | | | | | | | | * gtk/gtktextlayout.c: Fix a warning. * gtk/gtktextsegment.h: * gtk/gtktextsegment.c: * gtk/gtktextchild.c: * gtk/gtktextbtree.c: * gtk/gtktextmark.c: * gtk/gtktexttypes.h: Make the segment class pointers const. * gtk/gtktextbufferserialize.c: Make parser struct const. * gtk/gtkuimanager.c: Make parser struct const.
* Fix the buildMatthias Clasen2006-02-221-0/+2
|
* Minor optimizations. (#332059, Arnaud Charlet)Matthias Clasen2006-02-221-9/+3
| | | | | | | 2006-02-22 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c: * gtk/gtktextiter.c: Minor optimizations. (#332059, Arnaud Charlet)
* some more slice allocationMatthias Clasen2005-12-271-13/+5
|
* Some more slice allocationMatthias Clasen2005-12-271-14/+10
|
* Use the slice allocator for some other small auxiliary structures as well.Matthias Clasen2005-12-271-2/+2
| | | | | | | 2005-12-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c: Use the slice allocator for some other small auxiliary structures as well.
* Forgotten fileMatthias Clasen2005-12-271-2/+2
|
* Speed up stepping backwards. (#320638, Larry Ewing, Paolo Borelli)Matthias Clasen2005-12-121-1/+6
| | | | | | | | 2005-12-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Speed up stepping backwards. (#320638, Larry Ewing, Paolo Borelli)
* Replace manual offset calculations by g_utf8_offset_to_pointer().Matthias Clasen2005-11-021-9/+4
| | | | | | | | | 2005-11-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Replace manual offset calculations by g_utf8_offset_to_pointer(). (#320360, Paolo Borelli)
* Only use text segments when determining text direction. (#319065, TommiMatthias Clasen2005-10-261-1/+1
| | | | | * gtk/gtktextbtree.c (gtk_text_btree_resolve_bidi): Only use text segments when determining text direction. (#319065, Tommi Komulainen)
* Try to match an off toggle here with the matching on toggle if itMatthias Clasen2005-10-111-9/+30
| | | | | | | | | | | | | | 2005-10-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c (_gtk_text_btree_delete): Try to match an off toggle here with the matching on toggle if it immediately follows. This is a common case, and handling it here prevents quadratic blowup in cleanup_line() below. (#317125) * gtk/gtktextsegment.h: * gtk/gtktextsegment.c (_gtk_char_segment_new_from_two_strings): Pass the character counts into this function instead of computing them again.
* Various cleanups. (#315360, Kjartan Maraas)Matthias Clasen2005-09-131-13/+0
| | | | | | 2005-09-13 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: Various cleanups. (#315360, Kjartan Maraas)
* Small cleanup. (#305539, Paolo Borelli)Matthias Clasen2005-06-091-7/+2
| | | | | | | 2005-06-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small cleanup. (#305539, Paolo Borelli)
* Queue the redisplay after modifying the tag in the btree, otherwise we endMatthias Clasen2005-05-261-0/+2
| | | | | | | | | 2005-05-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the redisplay after modifying the tag in the btree, otherwise we end up showing the old tags until the next redraw comes around. (#143537, Gary Kramlich)
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-2/+3
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* Redisplay the new selection.Matthias Clasen2004-10-301-0/+2
| | | | | | | | | | 2004-10-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c (_gtk_text_btree_select_range): Redisplay the new selection. * gtk/gtktextview.c (gtk_text_view_select_all): Use gtk_text_buffer_select_range().
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* Don't iterate too far up. (#147965, Olivier Sessink)Matthias Clasen2004-07-231-7/+6
| | | | | | | Fri Jul 23 11:00:17 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): Don't iterate too far up. (#147965, Olivier Sessink)
* Don't stop the iteration up to the tag_root too early. (#109945, DonghoMatthias Clasen2004-04-191-4/+2
| | | | | | | | 2004-04-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): Don't stop the iteration up to the tag_root too early. (#109945, Dongho Shin)
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* removed underscores from calls to gtk_text_btree_resolve_bidi().Michael Natterer2004-03-011-4/+4
| | | | | | | 2004-03-01 Michael Natterer <mitch@gimp.org> * gtk/gtktextbtree.c: removed underscores from calls to gtk_text_btree_resolve_bidi().
* Patch from Dov Grobgeld to implement auto-bidi-direction for GtkTextViewOwen Taylor2004-03-011-0/+175
| | | | | | | | | | | | | | | | | | | | Mon Mar 1 10:41:27 2004 Owen Taylor <otaylor@redhat.com> Patch from Dov Grobgeld to implement auto-bidi-direction for GtkTextView (#118543) * gtk/gtktextbtree.[ch]: Resolve bidi base direction for each line by propagating backwards/forwards as necessary. * gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the bidi base direction for the ;ine with the cursor from the keyboard direction. Add gtk_text_layout_set_keyboard_direction(). Mon Mar 1 10:31:11 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.[ch]: Implement auto-bidi-direction, based on a patch from Dov Grobgeld. (#118540)
* Actually free the lists. Pointed out by Morten Welinder.Matthias Clasen2004-02-061-5/+4
| | | | | | | | | Fri Feb 6 23:08:29 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktextbtree.c (_gtk_text_btree_check): * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): Actually free the lists. Pointed out by Morten Welinder.
* Remove dubious bitfields of unspecified signedness. (#112919, MortenMatthias Clasen2003-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-27 Matthias Clasen <maclas@gmx.de> * io-wbmp.c: Remove dubious bitfields of unspecified signedness. (#112919, Morten Welinder)gdk-p * gdk-pixdata.c (gdk_pixdata_to_csource): Replace all occurances of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder) * gtk/gtkwindow-decorate.c: * gtk/gtktreeprivate.h: * gtk/gtkdnd.c: * gdk/win32/gdkwindow-win32.h: * gdk/linux-fb/gdkprivate-fb.h: * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of unspecified signedness. (#112919, Morten Welinder) * gtk/queryimmodules.c (escape_string): * gtk/gtktextbtree.c (_gtk_text_btree_get_text): * gtk/gtksettings.c (_gtk_settings_parse_convert): * gtk/gtkrc.c (gtk_rc_parse_assignment): * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all occurances of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder)
* Check if line_ancestor_parent is NULL. (#102711, Manuel Clos)Matthias Clasen2003-02-201-1/+4
| | | | | | | | | | | 2003-02-20 Matthias Clasen <maclas@gmx.de> * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): Check if line_ancestor_parent is NULL. (#102711, Manuel Clos) * gtk/gtktextview.c (gtk_text_view_scroll_to_iter): (gtk_text_view_update_adjustments): Make sure cursor stays visible during horizontal scrolling. (#75270)
* Implement a utility function proposed in #102534:Matthias Clasen2003-01-061-2/+11
| | | | | | | | | | | | | | | | 2003-01-06 Matthias Clasen <maclas@gmx.de> Implement a utility function proposed in #102534: * gtk/gtktextbtree.h: * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function. (_gtk_text_btree_place_cursor): Now a simple wrapper around _gtk_text_btree_select_range(). * gtk/gtktextbuffer.h: * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function. (gtk_text_buffer_place_cursor): Now a simple wrapper around gtk_text_buffer_select_range().
* Deprecation cleanupManish Singh2002-10-101-12/+11
| | | | | | | | | Thu Oct 10 14:41:05 2002 Manish Singh <yosh@gimp.org> * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextdisplay.c gtk/gtktextlayout.c gtk/gtktextmark.c gtk/gtktexttag.[ch] gtk/gtktexttagtable.c gtk/gtktextutil.c gtk/gtktextview.[ch]: Deprecation cleanup
* Use 'signed int' not 'gint' for signed bitfields. (#93020, Vitaly Tishkov)Owen Taylor2002-09-231-2/+2
| | | | | | | | | | | Mon Sep 23 14:58:04 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkhandlebox.h gtk/gtktextbtree.[ch]: Use 'signed int' not 'gint' for signed bitfields. (#93020, Vitaly Tishkov) * gtk/gtktextlayout.h gtk/gtktextbtree.[ch]: Fix some 'gint' bitfields that should have been unsigned.
* Fix some cases where signal connection IDs where being assigned to guintOwen Taylor2002-07-101-1/+1
| | | | | | | | | Wed Jul 10 14:27:14 2002 Owen Taylor <otaylor@redhat.com> * modules/input/gtkimcontextxim.c gtk/gtkcolorsel.c gtk/gtkdialog.c gtk/gtktextbtree.c: Fix some cases where signal connection IDs where being assigned to guint rather than gulong. (part of #87281, Shivram U)
* Don't leak child_anchor_table. (#84425)Matthias Clasen2002-06-091-1/+6
| | | | | | | | * gtk/gtktextbtree.c (_gtk_text_btree_unref): Don't leak child_anchor_table. (#84425) * gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't leak one_display_cache. (#84424)
* assign something to "prev" so that removing tag info succeeds. Part ofHavoc Pennington2002-04-301-9/+27
| | | | | | | | | | | | | | | 2002-04-30 Havoc Pennington <hp@redhat.com> * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): assign something to "prev" so that removing tag info succeeds. Part of #77301 * gtk/gtktextbtree.c (_gtk_text_btree_unref): reorder so that it unrefs the tag table first, so that the btree is in a consistent state when we're removing tags from it. * gtk/gtktexttagtable.c (_gtk_text_tag_table_remove_buffer): strip all tags in the tag table out of the buffer. #77301
* just go ahead and flush all the first validate stuff if it hasn't beenHavoc Pennington2002-02-131-5/+11
| | | | | | | | | | | | | | | 2002-02-13 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_paint): just go ahead and flush all the first validate stuff if it hasn't been done, presumably someone called process_updates at a weird time. * tests/testtext.c (do_apply_colors): terminate on >= end, not > end, avoids infinite loop when end is at the end of the buffer. * gtk/gtktextbtree.c (_gtk_text_btree_delete): when creating a line data, we were adding it to the wrong line ("line" instead of "start_line")
* isspace -> g_ascii_isspace Remove gdki8n.h include. Remove <ctype.h>Darin Adler2002-02-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace * gdk/x11/gdkim-x11.c: Remove gdki8n.h include. * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include. * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include. * gtk/fnmatch.c: Remove <ctype.h> include. * gtk/gtkaccelgroup.c: Remove <ctype.h> include. * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper -> g_unichar_toupper, toupper -> g_unichar_totile * gtk/gtkbindings.c: Remove <ctype.h> include. * gtk/gtkfontsel.c: Remove <ctype.h> include. * gtk/gtkiconfactory.c: Remove <ctype.h> include. * gtk/gtkinputdialog.c: Remove <ctype.h> include. * gtk/gtklabel.c: Remove <ctype.h> include. * gtk/gtkmain.c: Remove <ctype.h> include. * gtk/gtkmenu.c: Remove <ctype.h> include. * gtk/gtkoldeditable.c: Remove <ctype.h> include. * gtk/gtkrc.c: Remove <ctype.h> include. * gtk/gtktextbtree.c: Remove <ctype.h> include. * gtk/gtktextiter.c: Remove <ctype.h> include. * gtk/gtktextsegment.c: Remove <ctype.h> include.
* fix assertion failure by creating the line data, but not validating it atHavoc Pennington2002-01-291-69/+35
| | | | | | | | | | | | 2002-01-25 Havoc Pennington <hp@redhat.com> * gtk/gtktextbtree.c (_gtk_text_btree_delete): fix assertion failure by creating the line data, but not validating it at this stage. Also, remove old code related to the "bogus newline" mess that removed all tags from the last char in the buffer if you tried to delete it. (_gtk_text_line_data_new): put this here and prepend underscore, remove from gtktextlayout.c
* propagate exposes to no window children not in the buffer window.Havoc Pennington2002-01-021-0/+1
| | | | | | | | | | | | | | | | | 2002-01-01 Havoc Pennington <hp@pobox.com> * gtk/gtktextview.c (gtk_text_view_expose_event): propagate exposes to no window children not in the buffer window. (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab - is this the right way to do it? (gtk_text_view_focus): add focus method, just chains up for now, I'm not sure why the GtkContainer implementation doesn't work * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill in the text line for the child anchor segment * tests/testtext.c (do_add_focus_children): add another test example (to put focusable buttons into the widget)
* fix an incorrect assertion that the "valid" flag is always correct in aHavoc Pennington2001-12-311-1/+12
| | | | | | | | | | | | 2001-12-31 Havoc Pennington <hp@pobox.com> * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency): fix an incorrect assertion that the "valid" flag is always correct in a node and add explanatory comment. This keeps me from reproducing #59101, but I'm remembering that 59101 was actually about incorrect pixel totals, so I'm not sure 59101 is actually fixed. May just have stopped happening due to some change in how C-k works.
* remove g_assert_not_reached() that was bogus, since we demand-create theHavoc Pennington2001-12-051-19/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-04 Havoc Pennington <hp@redhat.com> * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove g_assert_not_reached() that was bogus, since we demand-create the tag info. reported by Chris Phelps Jump through assorted hoops to fix bug from Chris Phelps where removing tags from the table resulted in btree trying to access tag->table * gtk/gtktextbuffer.c: set up mechanics of adding/removing ourselves to the tag table * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) (_gtk_text_tag_table_remove_buffer): private cruft to let us notify buffer of disappearing tags * gtk/gtktexttag.h: remove BTreeNode typedef from this public header, put it in tagprivate * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to tag_removed; it's emitted too late. (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to this Padding for ABI-compat expansion * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this (struct _GtkTextAppearance): one pad in here too * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here * gtk/gtktextview.h (struct _GtkTextViewClass): more padding, since action signals etc. seem pretty likely * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding * gtk/gtktexttag.h (struct _GtkTextTagClass): padding * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
* add assertion that #58290 would trigger if it reappeared, I thinkHavoc Pennington2001-10-221-3/+8
| | | | | | | 2001-10-22 Havoc Pennington <hp@redhat.com> * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that #58290 would trigger if it reappeared, I think
* add temporary code to dump btree contents on assertion failure describedHavoc Pennington2001-10-221-0/+3
| | | | | | | | | | | | | | | | 2001-10-22 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment): add temporary code to dump btree contents on assertion failure described in #62656 * gtk/gtktextbtree.c (ensure_end_iter_segment): add some assertions that we're getting the right end iter segment * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment): verify that we aren't on the end iterator after moving forward one segment - fixes return value in an obscure case. Also, some trivial code cleanup/rearranging.
* add a #error unless you define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, soHavoc Pennington2001-10-221-0/+1
| | | | | | | | | 2001-10-22 Havoc Pennington <hp@redhat.com> * gtk/gtktextlayout.h: add a #error unless you define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
* fix test case, it previously verified incorrect behaviorHavoc Pennington2001-10-041-7/+26
| | | | | | | | | | | | | | | | | | | | | 2001-10-03 Havoc Pennington <hp@redhat.com> * tests/testtextbuffer.c (logical_motion_tests): fix test case, it previously verified incorrect behavior Fixes for #61565 * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines off the end (_gtk_text_btree_get_iter_at_line_char): don't return lines off the end (_gtk_text_btree_get_iter_at_line_byte): don't return lines off the end (gtk_text_iter_forward_lines): if on the last line, move to end of it * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag): don't return a line off the end
* use gtk_text_iter_can_insertHavoc Pennington2001-09-251-7/+7
| | | | | | | | | | | | | | | | | | | | 2001-09-25 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_key_press_event): use gtk_text_iter_can_insert * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613 (gtk_text_iter_can_insert): new function to fix #60282, should also fix msw's "can paste into empty buffer" bug. * gtk/gtktexttag.c (gtk_text_tag_event): change type check for "event object," #59091 * gtk/gtktextbtree.c: indentation fixes * gtk/gtktextiter.c (find_by_log_attrs): fixes
* Get rid of the newline-that-could-not-be-deleted; buffers may now beHavoc Pennington2001-09-241-34/+164
| | | | | | | | | | | | 2001-09-24 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c, gtktextlayout.c: Get rid of the newline-that-could-not-be-deleted; buffers may now be zero-length. Much easier to fix than expected, once I figured out the right way to do it. However, there are various subtle bugs introduced by this that will have to get sorted out. Please use bugzilla.
* Bug #60862Havoc Pennington2001-09-211-35/+26
| | | | | | | | | | | 2001-09-21 Havoc Pennington <hp@redhat.com> Bug #60862 * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): (_gtk_text_btree_unref): fix up mark memory management * gtk/gtktextmark.c (mark_segment_delete_func): ditto
* add variables and checks for specific versions of dependencies. PreviouslyHavoc Pennington2001-09-211-1/+1
| | | | | | | | | | | | | | 2001-09-20 Havoc Pennington <hp@pobox.com> * configure.in (PANGO_REQUIRED_VERSION) (ATK_REQUIRED_VERSION): add variables and checks for specific versions of dependencies. Previously we didn't verify the Pango or ATk versions. 2001-09-09 Havoc Pennington <hp@pobox.com> * gtk/gtktextiter.c: fool with indentation (gtk_text_iter_in_range): add g_return_if_fail
* remove some debug code that seems to have caused a breakpoint in validHavoc Pennington2001-09-071-1/+10
| | | | | | | | | | | | | | | 2001-09-07 Havoc Pennington <hp@redhat.com> * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some debug code that seems to have caused a breakpoint in valid cases * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev pointer on the first view when adding the second view, fixes crash when closing gtk-demo text test with active selection * gtk/gtktextbuffer.c (gtk_text_buffer_remove_selection_clipboard): don't leave dead clipboards in the list of clipboards - probably fixes #59836
* update adjustments after validating destination yrange; fixes #53918 (ThisHavoc Pennington2001-09-071-4/+29
| | | | | | | | | | | | | | | | | | | 2001-09-07 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_flush_scroll): update adjustments after validating destination yrange; fixes #53918 (This may cause other issues, but I hope it won't) 2001-09-05 Havoc Pennington <hp@redhat.com> * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end line into start line, update the character counts in parent nodes; caused a bug when end and start line had different parent nodes. 2001-08-30 Havoc Pennington <hp@redhat.com> * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add assertion that tag is in a table
* Rename from gtk_text_tag_table_size(). (#59366)Owen Taylor2001-08-231-1/+1
| | | | | | | Thu Aug 23 18:23:31 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtktexttag.c (gtk_text_tag_table_get_size): Rename from gtk_text_tag_table_size(). (#59366)
* up version to 1.3.7, interface age 0, binary age 0. depend on glib 1.3.7.Tim Janik2001-06-281-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Jun 28 17:18:41 2001 Tim Janik <timj@gtk.org> * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface age 0, binary age 0. depend on glib 1.3.7. * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack. * gtk/gtkmenubar.c: same here. * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival. * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage. * gtk/gtkentry.c (gtk_entry_focus_in): same here. * gtk/gtkmenubar.c (add_to_window): likewise. * gtk/gtktextbtree.c: and here... * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing. * gtk/gtktoolbar.c (gtk_toolbar_init): once more. * gtk/gtktreemodel.c (connect_ref_callbacks): and another time. * gtk/gtktreeviewcolumn.c: (_gtk_tree_view_column_set_tree_view): yet again. * demos/gtk-demo/images.c (progressive_timeout): demonstrate signal connections without g_signal_connect_data(). * demos/gtk-demo/stock_browser.c (do_stock_browser): second demo of the matter. * demos/testpixbuf.c (main): running out of equality phrases for the ChangeLog, but had to adapt connections here as well. * demos/testanimation.c (progressive_timeout): and for the fun of it, tackled this the same way. * tests/testtext.c (create_view): ok, it's becoming a pain at this point, but had enough enery for one more fix. * tests/testtreecolumns.c (main): stand up man, do your work! * tests/testtreeview.c (set_columns_type): ok, this is the last file i fix, either that's been all of it or CVS gtk is broken yet again.
* fix other typoHavoc Pennington2001-06-141-14/+29
| | | | | | | | | | | | | | | | | | | | | | | | 2001-06-14 Havoc Pennington <hp@redhat.com> * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo * gtk/gtktextbtree.c: don't leak node data all over the place. * demos/gtk-demo/main.c (main): create fontify tags for the right buffer * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs to mention tags in the same table can't have the same name, suggested by Skip Montanaro 2001-06-11 Havoc Pennington <hp@redhat.com> * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning for trying to add two tags with same name to the tag table * demos/gtk-demo/main.c (main): fix colors ;-)