1. 08 Sep, 2014 1 commit
  2. 13 Apr, 2014 1 commit
    • Sébastien Wilmet's avatar
      GtkTextView: use GSlice to allocate GtkTextLineSegment's · 983a03d5
      Sébastien Wilmet authored
      Use GSlice to allocate all types of segments:
      - char
      - toggle
      - mark
      - pixbuf
      - child widget
      
      Char segments are a bit more complicated because the length of the text
      is determined at run time and stored in the 'byte_count' field. If the
      text is long, GSlice will call the system malloc() anyway, so it's
      better to always use GSlice for GtkTextLineSegment.
      
      Toggle segments are also freed in gtktextbtree.c, hence the function
      _gtk_toggle_segment_free() (for a later commit it would be nice to
      rename those functions with the _gtk_text prefix).
      
      https://bugzilla.gnome.org/show_bug.cgi?id=727908
      983a03d5
  3. 19 Feb, 2014 1 commit
  4. 12 May, 2013 1 commit
  5. 08 Sep, 2010 1 commit
    • Tor Lillqvist's avatar
      Get rid of the rest of variables exported from libgtk · 87141cf4
      Tor Lillqvist authored
      Especially the gtk_*_type ones in gtktexttypes.h were mentioned in
      gtk.symbols presumably by accident. That header isn't even installed,
      so no way can they be supposed to be public.
      
      gtk_text_attr_appearance_type is from the installed but "semi-private"
      gtktextlayout.h, so drop that one too from gtk.symbols for now.
      
      The use of gtk_text_unknown_char_utf8 is bit of a mess. Code in a few
      files knew implicitly that it is three bytes. Define a symbolic name
      for the length of it instead. Add an exported function
      gtk_text_unknown_char_utf8_gtk_tests_only() that returns a pointer to
      it just for the sake of gtk/tests/textbuffer.c. Prefix the variable
      with an underscore.
      
      I doubt the usefulness of the test_utf8() in textbuffer.c. If it could
      be dropped, gtk_text_unknown_char_utf8_gtk_tests_only() could be
      dropped, too.
      87141cf4
  6. 10 Jul, 2010 1 commit
  7. 04 Apr, 2010 1 commit
    • Colin Walters's avatar
      [introspection] Merge in Gtk-custom.c annotations · fcbbd763
      Colin Walters authored
      The Gtk-custom.c file in gir-repository contained a number of
      introspection annotations.  Merge those into the GTK source files.
      
      Some documentation was moved from the tmpl/ files to accomodate
      the addition of annotations.
      fcbbd763
  8. 16 Dec, 2009 1 commit
    • Colin Walters's avatar
      [introspection] Merge in Gtk-custom.c annotations · 6529c076
      Colin Walters authored
      The Gtk-custom.c file in gir-repository contained a number of
      introspection annotations.  Merge those into the GTK source files.
      
      Some documentation was moved from the tmpl/ files to accomodate
      the addition of annotations.
      6529c076
  9. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  10. 28 Jan, 2008 2 commits
  11. 14 May, 2006 1 commit
  12. 02 May, 2006 1 commit
  13. 03 Apr, 2006 1 commit
    • Matthias Clasen's avatar
      Fix a warning. · 8de7c8b7
      Matthias Clasen authored
      
      	* 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.
      8de7c8b7
  14. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      2005-09-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/*.c: Intern some more strings.
              * gtk/gtkintl.h:
              * gtk/*.c: Define an I_() macro and use it instead of the
              bulky g_intern_static_string().
      94eec042
  15. 31 Aug, 2005 2 commits
  16. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      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.
      cca8dd63
  17. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 3612aee5
      Matthias Clasen authored
      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
      3612aee5
  18. 06 Mar, 2004 1 commit
  19. 22 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Add chains to the parent's ::finalize() handler (#134901, Morten Welinder, · a362428d
      Matthias Clasen authored
      Sun Feb 22 03:03:29 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkaction.c: (gtk_action_finalize):
      	* gtk/gtkclipboard.c: (gtk_clipboard_finalize):
      	* gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init),
      	(gtk_entry_completion_finalize):
      	* gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize):
      	* gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init),
      	(gtk_file_system_model_finalize):
      	* gtk/gtkicontheme.c: (gtk_icon_theme_class_init),
      	(gtk_icon_theme_finalize):
      	* gtk/gtktextchild.c: (gtk_text_child_anchor_finalize):
      	* gtk/gtkuimanager.c: (gtk_ui_manager_class_init),
      	(gtk_ui_manager_finalize):
      	* modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize):
      	Add chains to the parent's ::finalize() handler  (#134901, Morten Welinder,
      	patch by Jan Arne Petersen)
      a362428d
  20. 31 Jan, 2004 1 commit
  21. 10 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · 62341005
      Manish Singh authored
      Thu Oct 10 14:58:47 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkaccelgroup.c gtk/gtkarrow.[ch] gtk/gtkeventbox.[ch]
              gtk/gtkiconfactory.c gtk/gtkinvisible.[ch] gtk/gtktextchild.c:
              Deprecation cleanup
      62341005
  22. 09 Feb, 2002 2 commits
  23. 08 Feb, 2002 1 commit
  24. 06 Feb, 2002 1 commit
  25. 01 Jan, 2002 1 commit
    • Havoc Pennington's avatar
      move README.linux-fb in here · e7153de0
      Havoc Pennington authored
      2002-01-01  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/framebuffer.sgml: move README.linux-fb in here
      
      	* gtk/tmpl/gtkpreview.sgml: explain what to use instead
      
      	* gtk/tmpl/gtkseparator.sgml: typo fix
      
      	* gtk/tmpl/gtkstock.sgml: add some overview docs
      
      	* gtk/Makefile.am (content_files): add new files
      
      	* gtk/changes-1.2.sgml: move Changes-1.2.txt in here
      
      	* gtk/changes-2.0.sgml: move Changes-2.0.txt in here
      
      	* gdk/tmpl/threads.sgml: mention gdk_threads_init() in the
      	overview docs, copy in the examples from the FAQ
      
      	* gtk/gtk-docs.sgml: change DTD to 3.1, and add
      	question_index.sgml and changes-1.2, changes-2.0
      
      	* gtk/tmpl/gtkdrawingarea.sgml: fixups to reflect 2.0 changes
      
      	* gtk/question_index.sgml: new section with question-based
      	index of the manual
      
      	* gtk/text_widget.sgml: fix some cross-references
      
      2002-01-01  Havoc Pennington  <hp@pobox.com>
      
      	* docs/README.linux-fb: note that this file is obsolete
      
      	* docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
      	files that they should not be edited and look in the reference
      	manual instead. Probably these files should just be replaced by
      	the note, and their main contents deleted.
      
      	* gtk/gtktextview.c: docs
      
      	* gtk/gtktextmark.c: docs
      
      	* gtk/gtktextchild.c: docs
      
      	* gtk/gtktextbuffer.c: docs stuff
      
      	* gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
      	give people more leads in sorting out PRIMARY vs. CLIPBOARD
      e7153de0
  26. 22 Oct, 2001 1 commit
  27. 19 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      add insert_child_anchor signal, bug #50245 · bc31a1bc
      Havoc Pennington authored
      2001-02-19  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
      	insert_child_anchor signal, bug #50245
      
      	* gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
      	from create_child_anchor, so the anchor is passed in
      
      	* gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
      	(_gtk_widget_segment_new): have the child anchor object passed in,
      	instead of creating it.
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
      	to gtk_text_buffer_get_modified
      bc31a1bc
  28. 16 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      General cleanup of the log attr iteration stuff. This should make e.g. the · e405f75c
      Havoc Pennington authored
      2000-12-16  Havoc Pennington  <hp@pobox.com>
      
      * gtk/gtktextiter.c: General cleanup of the log attr iteration
      stuff. This should make e.g. the delete key work again in the
      text widget...
      (gtk_text_iter_forward_cursor_positions): handle negative count
      (gtk_text_iter_backward_cursor_positions): handle negative count
      (gtk_text_iter_forward_word_ends): handle negative count
      (gtk_text_iter_backward_word_starts): handle negative count
      
      * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
      gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c,
      gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to
      GObject. No doubt will cause breakage.
      
      * demos/gtk-demo/textview.c: remove hacks around
      non-GObject-ification of the text objects
      
      * demos/gtk-demo/main.c (main): use g_object_set() to manipulate
      the text tag
      e405f75c
  29. 14 Dec, 2000 1 commit
  30. 11 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      Handle chopping off \r\n and 0x2029 in addition to \n before passing to · 310a0d4f
      Havoc Pennington authored
      2000-12-11  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
      	Handle chopping off \r\n and 0x2029 in addition to \n before
      	passing to PangoLayout
      
      	* gtk/gtkimcontextsimple.c
      	(gtk_im_context_simple_get_preedit_string):
      	return an empty string if no match is pending
      
      	* gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
      	assertion that the returned preedit string was sane
      
      	* gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
      	s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
      	s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
      310a0d4f
  31. 08 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      fix breakage here that cause a segfault on text insertion · 565074f9
      Havoc Pennington authored
      2000-12-08  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
      	that cause a segfault on text insertion
      
      	* gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix
      	warning
      
      	* gtk/gtktextiter.c (test_log_attrs): use
      	_gtk_text_buffer_get_line_log_attrs to speed things up a bit
      
      	* gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs):
      	Get log attrs for a line, using a cache stored on the buffer
      
      	* gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
      	reported by Jeff Franks
      565074f9
  32. 20 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      Semi-finish widget embedding. Need guffaw scrolling to be implemented in · 6f7dd53b
      Havoc Pennington authored
      2000-11-20  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
      	gtk/testtext.c: Semi-finish widget embedding. Need guffaw
      	scrolling to be implemented in GDK to finish. Also, right now
      	we just size_allocate all children on every layout change,
      	which is pretty lame. Test commented out of testtext.c,
      	until it works better.
      6f7dd53b
  33. 15 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      change "offset" to "rise" · c72cec38
      Havoc Pennington authored
      2000-11-14  Havoc Pennington  <hp@pobox.com>
      
      * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
      
      * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
      unknown char, no real reason we were using a variable.
      Remove gtk_text_unknown_char variable. Fix all the text widget
      files accordingly.
      
      * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC,
      since the Unicode spec seems to prefer that character for our
      purposes.
      c72cec38
  34. 03 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      Get widgets working on the btree/buffer side. Display of them still · ca83d0a3
      Havoc Pennington authored
      2000-11-03  Havoc Pennington  <hp@redhat.com>
      
              Get widgets working on the btree/buffer side. Display of them
      	still doesn't work.
      
      	* gtk/gtktextview.c: start implementing child widget stuff
      
      	* gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
      
      	* gtk/gtktextlayout.c: handle embedded widgets
      
      	* gtk/gtktextdisplay.c: handle embedded widgets
      
      	* gtk/gtktextchild.c: Implement all the child anchor goo
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
      	function
      
      	* gtk/gtktextbtree.c: Add child anchor table to the btree struct
      	(insert_pixbuf_or_widget_segment): abstract out common portions of
      	creating a child anchor or a pixbuf segment.
      	(gtk_text_btree_create_child_anchor): new function
      	(gtk_text_btree_unregister_child_anchor): new function
      
      	* gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
      	allocate_child signal on GtkTextLayout
      
      	* gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
      	values
      	(gtk_text_iter_get_child_anchor): new function
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
      	default handler for the changed signal, which calls
      	gtk_text_buffer_set_modified(), instead of just always emitting
      	changed then calling set_modified() manually. I guess this is
      	maybe more flexible. It seems logical.
      ca83d0a3
  35. 30 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      Massive reindentation and reformatting. Arg alignment and comments still · 5190c739
      Havoc Pennington authored
      2000-10-30  Havoc Pennington  <hp@redhat.com>
      
      	* gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
      	gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
      	gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
      	gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
      	gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
      	gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
      	gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
      	gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
      	gtktexttypes.h, gtktextview.c, gtktextview.h:
      
      	Massive reindentation and reformatting. Arg alignment and comments
      	still need fixing in various places.
      5190c739
  36. 26 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      fix constness warning · 36059302
      Havoc Pennington authored
      2000-10-26  Havoc Pennington  <hp@redhat.com>
      
              * gtk/gtktextiter.c (my_strrstr): fix constness warning
      
              Fixed output of:
              nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
      
              * gtk/gtktextsegment.c (char_segment_new): rename
              (_char_segment_new_from_two_strings): rename
              (_toggle_segment_new): rename
      
              * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
              (make_clipboard_widget): make it static
              (text_get_func): static
              (text_clear_func): static
      
              * gtk/gtkcolorsel.c (adjustment_changed): make this function
              static
              (hex_changed): make it static
              (hsv_changed): make it static
              (opacity_entry_changed): make it static
      
              * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
              (toggle_segment_check_func): rename with _gtk
      
              * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
              (_widget_segment_new): rename
              (_widget_segment_add): rename
              (_widget_segment_remove): rename
              (_widget_segment_ref): rename
              (_widget_segment_unref): rename
      
              * gtk/gtktextmark.c (_mark_segment_new): Rename
              _gtk_mark_segment_new
      36059302
  37. 02 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      text_window_* weren't static and should have been. Start work on child · 8ebf77d1
      Havoc Pennington authored
      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
      8ebf77d1