1. 28 Jul, 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).
  3. 19 Feb, 2014 1 commit
  4. 07 Feb, 2014 3 commits
  5. 05 Feb, 2014 1 commit
  6. 04 Feb, 2014 1 commit
  7. 28 Jan, 2014 1 commit
    • William Jon McCann's avatar
      docs: don't use footnotes · 4a2043cb
      William Jon McCann authored
      Temporarily remove documentation for keybinding signals for
      GtkFileChooserDefault until we can find a way to add them
  8. 18 Apr, 2011 1 commit
  9. 10 Jul, 2010 1 commit
  10. 04 Apr, 2010 2 commits
  11. 19 Feb, 2010 1 commit
  12. 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.
  13. 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
  14. 26 May, 2007 2 commits
    • Matthias Clasen's avatar
      Formatting fixes. · d8e3fc2b
      Matthias Clasen authored
      2007-05-25  Matthias Clasen  <mclasen@redhat.com>
              * gtk/gtktextmark.c:
              * gtk/gtktextbuffer.c: Formatting fixes.
      svn path=/trunk/; revision=17923
    • Matthias Clasen's avatar
      Allow to separate GtkTextMark creation from buffer insertion. (#132818, · 6ac30db0
      Matthias Clasen authored
      2007-05-25  Matthias Clasen  <mclasen@redhat.com>
              Allow to separate GtkTextMark creation from buffer insertion.
              (#132818, Gustavo Giráldez, patch by Yevgen Muntyan)
              * gtk/gtktextmarkprivate.h:
              * gtk/gtktextmark.[hc] (gtk_text_mark_new): New function to
              create a GtkTextMark.
              * gtk/gtktextbuffer.[hc] (gtk_text_buffer_add_mark): New
              function to add an existing mark to a buffer.
              * gtk/gtktextbtree.c: Allow adding existing marks.
              * gtk/gtk.symbols: Add new functions.
              * tests/testtextbuffer.c: Add some tests for new mark
      svn path=/trunk/; revision=17922
  15. 14 May, 2006 1 commit
  16. 02 May, 2006 1 commit
  17. 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.
  18. 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().
  19. 31 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Intern type names in code generated by glib-mkenums, too. · c09cc893
      Matthias Clasen authored
      2005-08-31  Matthias Clasen  <mclasen@redhat.com>
      	* gdk/Makefile.am:
      	* gtk/Makefile.am: Intern type names in code generated by
      	glib-mkenums, too.
      	* gtk/*.c:
      	* gdk/x11/*.c:
      	* gdk/*.c: Intern type names before registering the type to avoid
      	unnecessary copies.
  20. 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.
  21. 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
  22. 06 Mar, 2004 1 commit
  23. 06 Mar, 2003 1 commit
    • Matthias Clasen's avatar
      Fix NULL/FALSE confusion (#107648, Morten Welinder) · ce58806c
      Matthias Clasen authored
      2003-03-06  Matthias Clasen  <maclas@gmx.de>
      	* gtk/gtktextmark.c (gtk_text_mark_get_buffer):
      	* gtk/gtkeditable.c (gtk_editable_get_chars):
      	* gtk/gtkctree.c (gtk_ctree_find_node_ptr):
      	* demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
      	(#107648, Morten Welinder)
  24. 10 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · ac770765
      Manish Singh authored
      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
  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
  26. 22 Oct, 2001 1 commit
  27. 21 Sep, 2001 1 commit
    • Havoc Pennington's avatar
      Bug #60862 · b7eec02f
      Havoc Pennington authored
      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
  28. 23 Aug, 2001 1 commit
    • Tim Janik's avatar
      chain parent class handlers, pointed out by Joshua N Pritikin · 0b5311f5
      Tim Janik authored
      Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
              * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize):
              * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
              handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
  29. 12 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      offset the current invalid region, fixes redraw bug while scrolling the · f4b31ff5
      Havoc Pennington authored
      2001-01-12  Havoc Pennington  <hp@redhat.com>
      	* gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the
      	current invalid region, fixes redraw bug while scrolling the
      	text widget
      	* gtk/gtktextview.c, gtk/gtktextview.h:
      	Rearrange the scrolling/validation/etc. code in a major way,
      	so it seems to make sense to me. Probably isn't genuinely that
      	much better, but...
      	* gtk/gtktexttag.c (set_fg_color): fix name of property used for
      	* gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
  30. 14 Dec, 2000 1 commit
  31. 02 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      don't create dangling pointers to the appearance attributes from the line · 35876710
      Havoc Pennington authored
      2000-11-30  Havoc Pennington  <hp@pobox.com>
      * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
      dangling pointers to the appearance attributes from the
      line display
      * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
      width/height to mean "full width/height of drawable"
      * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
      click to select word/line
      * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters
      when getting log attrs. Get a slice, so that pixmaps and stuff
      are properly handled.
      * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
      paste into the selection (replaces selection now, previously
      crashed or added to selection). Reveals longstanding btree bug -
      select multiple lines, middle-click on the selection, boom. This
      isn't related to my changes though.
      * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
      PangoLogAttrs changes
      (gtk_entry_move_backward_word): ditto
              * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
      	functions return bool whether the iter moved onto a
      	dereferenceable position.
      	 * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
      	 functions for motion in terms of display lines.
      	 * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
      	 get the buffer a mark is inside
  32. 07 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      rename to gtk_text_mark_get_visible · f1de9df0
      Havoc Pennington authored
      2000-11-07  Havoc Pennington  <hp@redhat.com>
      	* gtk/gtktextmark.c (gtk_text_mark_is_visible): rename
      	to gtk_text_mark_get_visible
      	* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
      	bug that was generating an invalid iterator
      	* gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
      	ensure_char_offsets() in front of code placing the iter in an
      	invalid state.
      	* gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
      	make override_location arg const
      	(paste): Replace the selection if we paste into the
      	current selection
      	* gtk/gtkselection.h: Remove "GtkSelectioData"
      	(struct _GtkSelectionData): move the definition here.
      	* gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
      	Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
      	* gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
      	* gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
      	(gtk_text_buffer_insert_range_interactive): implement
      	(gtk_text_buffer_get_tags): Remove, replaced by
      	* gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
      	limit parameter, to avoid infinite linear scan.
      	(gtk_text_iter_backward_search): Add search limit
      	(gtk_text_iter_forward_find_char): Add search limit
      	(gtk_text_iter_backward_find_char): Add search limit
  33. 03 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      Docs (gtk_text_tag_table_size): return a signed int · 6c9d8adc
      Havoc Pennington authored
      2000-11-03  Havoc Pennington  <hp@redhat.com>
      	* gtk/gtktexttagtable.c: Docs
      	(gtk_text_tag_table_size): return a signed int
      	* gtk/gtktexttag.c: s/tkxt/text/g; write documentation
      	(gtk_text_tag_event): make the event_object a GObject
      	* gtk/gtktextview.c: Write API docs for all functions.
      	* gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
      	for gtk_text_view_get_window_type() called on one of the private
      	* gtk/gtktextview.c: Instead of accessing text_view->buffer
      	directly, call get_buffer() which demand-creates a default
      	buffer. So gtk_text_view_new() can be used to create a view with a
      	default buffer in it, if you just want an empty text box users can
      	put data in. Useful for GUI builders also.
  34. 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.
  35. 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
              (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
  36. 25 Oct, 2000 1 commit
    • Tim Janik's avatar
      urg, removed implementation of gtk_marshal_VOID__INT_INT_INT_INT. if · d69496c0
      Tim Janik authored
      Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
              * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
              implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
              couldn't they at least give it a non-standard name?
              * gtk/gtktextlayout.c: arg! yet another implementation of
              gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
              * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
              gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
              home. now i know this _is_ a conspiracy.
              * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
              * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
              (gtk_accel_group_create_add): marshaller signature fixups.
              * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
              pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
              * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
      Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
              * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
              due to the signal system changes, it wouldn't build currently. to
              be fixed soon.
              * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
              * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
              so it needs gtk_marshal_VOID__ENUM() instead of
              * gdk/gdk*.c: adapted type registration functions.
              * gtk/gtkbindings.c:
              * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
              * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
              * gtk/gtkobject.c:
              (gtk_object_shutdown): fixed recursion guards. basically we have to
              catch the case where any of GObject.shutdown() or gtk_object_destroy()
              is called during ::destroy, and avoid recursion there.
              * gtk/gtktypeutils.c:
              * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
              boxed_copy/boxed_free. this needs a more general solution based on a
              publically installed code-generator utility.
              * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
              glib's gobject has support for that now.
              define GtkSignalMarshaller in terms of GSignalCMarshaller.
      Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
              * gtk/gtksignal.[hc]:
              * gtk/gtkmarshal.[hc]:
              * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
              compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
              removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
              care of that.
              * *.c: marshaller name fixups.
              * gtk/gtkmarshal.list: added a comment briefing the format.
      Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
              * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
              compatibility macros here now. more specifically, most of
              the API is preserved (yes, _most_, nonwithstanding the
              following exceptions listed, the API is stil lHUGE ;)
              things that got removed completely:
              GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
              gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
              gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
              gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
              non-functional functions variants:
              gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
              the GtkCallbackMarshal argument to gtk_signal_connect_full() is
              not supported anymore.
              (gtk_signal_compat_matched): new internal function to aid
              implementation of the compatibility macros, it  provides
              functionality to block/unblock/disconnect handlers based
              on func/data.
              * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
              * *.c: adaptions to new type registration API signatures.
      Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
              * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.