1. 08 Nov, 2002 1 commit
    • Matthias Clasen's avatar
      Put into #ifdef DO_BLINK to avoid an unused static function. (#97965) · 2d1ce5a4
      Matthias Clasen authored
      	* tests/testtext.c (blink_timeout): Put into #ifdef DO_BLINK to
      	avoid an unused static function.  (#97965)
      
      	* gtk/gtktextiter.c (backward_line_leaving_caches_unmodified):
      	* gtk/gtkstyle.c (radio_aa_bits):
      	(draw_spin_entry_shadow): #if-0-out unused static functions and
      	variables.  (#97965)
      
      	* gtk/gtktextview.c (text_window_get_allocation):
      	* gtk/gtkcolorsel.c (gtk_color_selection_get_palette_size):
      	(gtk_color_selection_get_palette_color):
      	(gtk_color_selection_unset_palette_color): Remove unused static
      	functions.  (#97965)
      
      	* gtk/gtkcolorsel.c
      	(gtk_color_selection_set_change_palette_with_screen_hook): Fix doc
      	comment.
      2d1ce5a4
  2. 10 Aug, 2002 1 commit
    • Soren Sandmann's avatar
      Minor documentation fixes · 77eee887
      Soren Sandmann authored
      2002-08-10  Soren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/gtk/tree_widget.sgml,
      	docs/reference/gtk/tmpl/gtkdialog.sgml,
      	docs/reference/gtk/tmpl/gtkentry.sgml,
      	docs/reference/gtk/tmpl/gtkfilesel.sgml,
      	docs/reference/gtk/tmpl/gtkfontsel.sgml,
      	docs/reference/gtk/tmpl/gtkfontseldlg.sgml,
      	docs/reference/gtk/tmpl/gtktreemodel.sgml,
      	docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c,
      	gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c,
      	gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c,
      	gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c,
      	gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c,
      	gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c,
      	gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c,
      	gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c,
      	gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c,
      	gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c,
      	gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c,
      	gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c,
      	gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c,
      	gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h,
      	gtk/gtkwindow.c:
      
      	Minor documentation fixes
      
      	(#89254, patch from Brett Nash;
      	 #85809, patch from daten@dnetc.org;
      	 #76391, patch from Ross Burton;
      	 #74559, Manuel Clos;
      	 #73569, #72005, Alexey A. Malyshev;
      	 #70061, patch from Dennis Bj"orklund;
      	 #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov;
      	 #78932, Vitaly Tishkov, patch from Ross Burton;
      	 #73306)
      77eee887
  3. 13 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Fix type names for GtkIconSet, GtkIconSource, GtkSelectionData, GtkBorder, · 2ea857cb
      Owen Taylor authored
      Thu Jun 13 19:41:56 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkiconfactory.c gtk/gtkselection.c gtk/gtkstyle.c
              gtk/gtktextiter.c gtk/gtktexttag.c gtk/gtktreemodel.c
              gtk/gtkwidget.c: Fix type names for GtkIconSet,
              GtkIconSource, GtkSelectionData, GtkBorder, GtkTextIter,
              GtkTextAttributes, GtkTreePath, GtkTreeIter,
              GtkRequisition, which were all registered as GtkType*.
              (#84634, James Henstridge; patch from Jonathan Blandford.)
      2ea857cb
  4. 20 Apr, 2002 1 commit
  5. 02 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Switch style of stamp file usage. · f832e348
      Owen Taylor authored
      Sat Mar  2 13:26:58 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/Makefile.am: Switch style of stamp file usage.
      
              * gtk/Makefile.am gtk/typeutils.[ch]: Switch all the exported
              enumeration/fags TYPE variables over to macros for get_type() functions,
              for lazy definition and to get rid of expensive relocations.
      
              * gtk/gtkiconfactory.[ch] gtk/gtkselection.[ch] gtk/gtkstyle.[ch]
              gtk/gtktextiter.[ch] gtk/gtktexttag.[ch] gtk/gtktreemodel.[ch]
              gtk/gtktypeutils.[ch] gtk/gtkwidget.[ch]: Switch boxed type
              definitions over manually coded get_type() functions.
      
              * gtk/gtk.def: Updates for above
      
              * gtk/{genmarshal.pl,makeenums.awk,makeenums.h,maketypes.awk}:
              Remove from CVS, no longer used.
      
              * configure.in: Remove checks for awk.
      f832e348
  6. 08 Feb, 2002 1 commit
    • Darin Adler's avatar
      isspace -> g_ascii_isspace Remove gdki8n.h include. Remove <ctype.h> · 6ec06edb
      Darin Adler authored
      	* 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.
      6ec06edb
  7. 02 Jan, 2002 1 commit
    • Havoc Pennington's avatar
      propagate exposes to no window children not in the buffer window. · 290e4efd
      Havoc Pennington authored
      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)
      290e4efd
  8. 31 Dec, 2001 1 commit
  9. 20 Dec, 2001 1 commit
    • Matthias Clasen's avatar
      More precise documentation about underscores and mnemonics. (#66380) · 3aabcd28
      Matthias Clasen authored
              * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
              gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
              documentation about underscores and mnemonics. (#66380)
      
              * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
              cyclic reference in docs.
      
              * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
              of default value. (#65402)
      
              * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale):
              Markup fixes.
      
              * gdk-pixbuf-io.c, gdk-pixbuf-animation.c, gdk-pixbuf-data.c,
              gdk-pixbuf-loader.c, gdk-pixbuf-scale.c, gdk-pixbuf-util.c,
              gdk-pixdata.c: Markup fixes.
      
              * gtk/text_widget.sgml: More precise wording. (#63388)
      
              * gtk/tmpl/gtksignal.sgml (GTK_SIGNAL_OFFSET): Add docs.
      
              * gtk/resources.sgml: Fix markup of mail URLs.
      
              * gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkobject.sgml: Markup fixes.
      
              * gtk/tmpl/gtktoolbar.sgml (gtk_toolbar_{prepend,append}_element):
              Expand documentation. (#60471)
      
              * gtk/tmpl/gtkmain.sgml: Remove misleading information about
              gtk_set_locale().  (#65758)
      3aabcd28
  10. 15 Dec, 2001 1 commit
    • Darin Adler's avatar
      Fix some warnings. · 20a870a6
      Darin Adler authored
      	* gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
      	g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
      	* gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
      	* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
      	* gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
      	* gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
      	Restructure loop to get rid of uninitialized variable warning. Also
      	gives a tiny efficiency gain.
      20a870a6
  11. 29 Nov, 2001 1 commit
  12. 14 Nov, 2001 2 commits
    • Havoc Pennington's avatar
      fix Control-E so it doesn't move to a new line each time you press it · a433d5c5
      Havoc Pennington authored
      2001-11-14  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
      	it doesn't move to a new line each time you press it
      
      	* gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
      	return value, #62987
      a433d5c5
    • Havoc Pennington's avatar
      bulk of the tests were commented out, oops. · 419f3e9b
      Havoc Pennington authored
      2001-11-14  Havoc Pennington  <hp@redhat.com>
      
      	* tests/testtextbuffer.c (main): bulk of the tests were commented
      	out, oops.
      
      	* gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this
      	function work, should resolve #63426
      	(gtk_text_iter_ends_line): return TRUE for the end iterator
      
      	* gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
      	a couple things that might get cached in here.
      419f3e9b
  13. 10 Nov, 2001 1 commit
    • Matthias Clasen's avatar
      Mass fixing of trivial doc bugs. (#63544, #57007, #64141, #63472, #57108, · 79e4b185
      Matthias Clasen authored
              * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
              gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c,
              gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.
              (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
      
              * gtk/tmpl/gtkaccellabel.sgml, gtk/tmpl/gtkcombo.sgml,
              gtk/tmpl/gtkentry.sgml, gtk/tmpl/gtkhscrollbar.sgml,
              gtk/tmpl/gtkvscrollbar.sgml, gtk/tmpl/gtktoolbar.sgml,
              gtk/tmpl/gtkdialog.sgml, gtk/tmpl/gtkstatusbar.sgml:
              Mass fixing of trivial doc bugs. (#55579, #56760, #58769, #55918,
              #64154, #60422, #54697)
      79e4b185
  14. 27 Oct, 2001 1 commit
    • Anders Carlsson's avatar
      Fix docs to say previous instead of next. · 110970bf
      Anders Carlsson authored
      2001-10-27  Anders Carlsson  <andersca@gnu.org>
      
      	* gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start):
      	Fix docs to say previous instead of next.
      	(gtk_text_iter_backward_word_start): Likewise.
      	This fixes bug #62980.
      110970bf
  15. 24 Oct, 2001 1 commit
    • Havoc Pennington's avatar
      if we move to the front of a segment, use the "slow" technique for moving · da4a3112
      Havoc Pennington authored
      2001-10-24  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
      	the front of a segment, use the "slow" technique for moving
      	backward, so we don't mess up the any_segment field in the iter.
      	Fixes #57707
      
      	* tests/testtextbuffer.c: add code to detect #57707, to avoid
      	regression
      da4a3112
  16. 23 Oct, 2001 2 commits
    • Havoc Pennington's avatar
      handle case where offset == 0 and char_len == 0, bug #61729 · 10f47690
      Havoc Pennington authored
      2001-10-23  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
      	0 and char_len == 0, bug #61729
      10f47690
    • Havoc Pennington's avatar
      fix return value, #61714 (Vitaly Tishkov) · 85cdc1ce
      Havoc Pennington authored
      2001-10-23  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
      	return value, #61714 (Vitaly Tishkov)
      	(gtk_text_iter_backward_sentence_starts): ditto
      	(gtk_text_iter_backward_word_starts): ditto
      	(gtk_text_iter_forward_word_ends): ditto
      	(gtk_text_iter_forward_sentence_ends): ditto
      	(gtk_text_iter_backward_cursor_positions): ditto
      85cdc1ce
  17. 22 Oct, 2001 4 commits
    • Havoc Pennington's avatar
      don't back up a char from the end iterator, fixes #61859 ("can't put · 0d5635b3
      Havoc Pennington authored
      2001-10-22  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
      	up a char from the end iterator, fixes #61859 ("can't put cursor
      	at the end of the buffer")
      
      	* gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
      	to work with delimiters other than newline.
      
      	* tests/testtextbuffer.c: add some tests for get_chars_in_line,
      	get_bytes_in_line
      
      	* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
      	last line, since the newline is no longer counted.
      	(gtk_text_iter_get_bytes_in_line): ditto
      0d5635b3
    • Havoc Pennington's avatar
      add temporary code to dump btree contents on assertion failure described · 0a522533
      Havoc Pennington authored
      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.
      0a522533
    • Havoc Pennington's avatar
      add a #error unless you define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so · 64464846
      Havoc Pennington authored
      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.
      64464846
    • Havoc Pennington's avatar
      Clarify behavior in docs, #61777 (gtk_text_iter_forward_search) · 72e6566b
      Havoc Pennington authored
      2001-10-22  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
      	docs, #61777
      	(gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
      	change the two boolean args to a flags field, so we can extend
      	to add case insensitive, regexp searches later. #61852
      72e6566b
  18. 04 Oct, 2001 1 commit
    • Havoc Pennington's avatar
      fix test case, it previously verified incorrect behavior · 739ffc49
      Havoc Pennington authored
      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
      739ffc49
  19. 03 Oct, 2001 1 commit
    • Havoc Pennington's avatar
      allow testing the end position · 77dc57e9
      Havoc Pennington authored
      2001-10-03  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.c (test_log_attrs): allow testing the end
      	position
      
      	* gtk/gtktextbuffer.c (compute_log_attrs): update for pango
      	changes
      
      	* tests/testtextbuffer.c (logical_motion_tests): updates
      77dc57e9
  20. 25 Sep, 2001 2 commits
    • Havoc Pennington's avatar
      fix for #50317 · be6ae47a
      Havoc Pennington authored
      2001-09-25  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c: fix for #50317
      be6ae47a
    • Havoc Pennington's avatar
      use gtk_text_iter_can_insert · 1a26412d
      Havoc Pennington authored
      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
      1a26412d
  21. 24 Sep, 2001 1 commit
    • Havoc Pennington's avatar
      Get rid of the newline-that-could-not-be-deleted; buffers may now be · 1e3b62fd
      Havoc Pennington authored
      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.
      1e3b62fd
  22. 21 Sep, 2001 1 commit
    • Havoc Pennington's avatar
      add variables and checks for specific versions of dependencies. Previously · 85b43351
      Havoc Pennington authored
      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
      85b43351
  23. 08 Sep, 2001 1 commit
    • Havoc Pennington's avatar
      default xscale/yscale to 0.0, not 0.5, 0.5 isn't useful · 9ddcb3e0
      Havoc Pennington authored
      2001-09-08  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkalignment.c (gtk_alignment_class_init): default
      	xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
      
      	* tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
      
      	* gtk/gtktextiter.c: fix docs
      	(gtk_text_iter_spew): get rid of this
      
      	* gtk/gtklayout.c: docs
      
      	* gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
      	to center image and label together, instead of having image on
      	left and label centered, patch/suggestion from Jacob
      
      	* gtk/gtkdialog.c: docs
      
      2001-09-08  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/tmpl/gtklayout.sgml: docs
      
      	* gdk-pixbuf/gdk-pixbuf.sgml: remove the section on compiling
      	gdk-pixbuf since it isn't a standalone package anymore
      
      	* gtk/building.sgml: section on compiling GTK itself
      9ddcb3e0
  24. 07 Sep, 2001 1 commit
  25. 14 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Add missing gdk_rectangle_get_type() prototype. · 22491fd6
      Owen Taylor authored
      Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
      
      	* gtk/gtk[hv]scale.c: Include math.h, stdlib.h
      
      	* gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
      	  gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
      	  gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
      	  gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
      	  to recent changes in Pango.
      
      	* tests/testgtk.c: Set language tags with gtk_label_set_markup()
      	  to test whether the basic engine honors them.
      22491fd6
  26. 08 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      added this function · 7009511a
      Havoc Pennington authored
      2001-06-08  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
      	function
      
      	* gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
      	this function
      7009511a
  27. 05 Jun, 2001 1 commit
  28. 22 May, 2001 1 commit
    • Joe Shaw's avatar
      Simplify as suggested by Havoc. Just get the last iter and work backward · f508a7b7
      Joe Shaw authored
      2001-05-22  Joe Shaw  <joe@ximian.com>
      
      	* gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle):
      	Simplify as suggested by Havoc. Just get the last iter and work
      	backward to the tag instead of getting a line and working back from
      	there. Fixes passing in an invalid offset to
      	iter_init_from_byte_offset().
      f508a7b7
  29. 07 May, 2001 1 commit
    • Havoc Pennington's avatar
      fix some shell typos · b4e4a0ed
      Havoc Pennington authored
      2001-05-04  Havoc Pennington  <hp@redhat.com>
      
      	* configure.in: fix some shell typos
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
      
      	* gtk/gtkimage.c: handle animations
      
      	* gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
      	border_width * 2, not just border_width
      
      	* gtk/gtkscale.c: add "format_value" signal to allow people
      	to override the way values are drawn.
      	(gtk_scale_get_value_size): fix width/height mistake,
      	and compute size from actual displayed text, not
      	from made-up text.
      
      	* gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in
      	signal registration
      
      	* tests/testtext.c: Add "Remove all tags" menu item for testing
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
      
      	* demos/gtk-demo/main.c (main): add hack so we can find modules
      	without installing gtk
      
      	* demos/gtk-demo/textview.c (insert_text): demo font scaling
      
      	* gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
      	factor)
      	(gtk_cell_renderer_text_set_property): remove some bogus
      	g_object_notify
      
      	* gtk/gtktexttag.c: add "scale" property which is a font scaling
      	factor
      
      	* gtk/gtktextlayout.c (add_text_attrs): add font scale attribute
      	to layout
      
      	* gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
      	gtk_text_iter_is_first
      
      2001-05-04  Havoc Pennington  <hp@redhat.com>
      
      	* pixops/pixops.c (pixops_process): merge fix from stable: Patch
      	 from hoshem@mel.comcen.com.au to fix nonzero X offsets.  Fixes
      	 bug #50371.
      
              * gdk-pixbuf/pixops/pixops.c (pixops_composite_nearest): merge
      	from stable: Patch from OKADA Mitsuru <m-okada@fjb.co.jp> to fix
      	confusion of using "src" instead of "p".
              (pixops_composite_color_nearest): Use a more accurate (and
      	correct, to begin with) compositing method.  This cures checks
      	showing through on images with no alpha.
      
      	* gdk-pixbuf.c (gdk_pixbuf_fill): fix bug that left some trailing
      	bytes unfilled.
      
      	* gdk-pixbuf-io.h: fix UpdatedNotifyFunc to use signed ints
      
      	* gdk-pixbuf-loader.h (struct _GdkPixbufLoaderClass): Change
      	area_updated signal to use signed ints.  Removed animation-related
      	signals.
      
      	* io-gif.c, io-gif-animation.h, io-gif-animation.c: Massive
      	rewrite action
      
      	* gdk-pixbuf-animation.c: Add GdkPixbufAnimationIter to abstract
      	all the pesky details. Remove old frame-based API. Make
      	GdkPixbufAnimation an abstract base class, derived by the loaders.
      b4e4a0ed
  30. 24 Apr, 2001 1 commit
    • Havoc Pennington's avatar
      handle 0-height empty/invisible lines. · b84d2f12
      Havoc Pennington authored
      2001-04-21  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
      	empty/invisible lines.
      
      	* gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
      	(gtk_text_iter_set_visible_line_index): new functions to set
      	indexes excluding invisible text
      
      	* gtk/gtktextlayout.c (line_display_iter_to_index): get visible
      	index
      
      	* gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
      	(gtk_text_iter_get_visible_line_offset): new functions to
      	get indexes excluding invisible text
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
      	bunch of extra padding that served no purpose
      
      	* gtk/gtkdialog.c: Make all the spacings configurable via style
      	properties, for chubbiness configuration in themes
      
      	* tests/testtext.c: fix path to the immodules.
      b84d2f12
  31. 17 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      convert the X coordinates so they're with respect to the line, rather than · 08add3cd
      Havoc Pennington authored
      2001-02-15  Havoc Pennington  <hp@redhat.com>
      
      	* gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
      	the X coordinates so they're with respect to the line, rather than
      	with respect to the layout.
      
      	* gtk/gtkalignment.c: Convert to new property API, patch from Lee
      	Mallabone
      
      	* gtk/testgtk.c (create_range_controls): add vscale tests,
      	and inverted test
      
      	* gtk/gtkrange.c (gtk_range_set_inverted): new function to fix
      	#50806
      
      	* gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
      
      	* gtk/gtktextiter.h (gtk_text_iter_is_last): rename
      	gtk_text_iter_is_end
      
      	* gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
      	rename gtk_text_buffer_get_end_iter
      
      	* gtk/testgtk.c (create_labels): Add test for selectable
      
      	* gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
      	the selection stuff. This code is kind of broken since it doesn't
      	use the theme engine.
      
      	* gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
      	fix infinite loop and y offset problem
      	(gdk_draw_layout_line_with_colors): fix foreground color handling
      
              * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag
      	that makes the label selectable.
      
      	* gtk/gtklabel.c (gtk_label_style_set): recreate the label's
      	layout when the style is set, since fonts etc. could have changed.
      08add3cd
  32. 03 Feb, 2001 1 commit
  33. 22 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      Add built marshaller files to support GdkPixbufLoader signals · e0fee22e
      Havoc Pennington authored
      2001-01-22  Havoc Pennington  <hp@redhat.com>
      
      	* Makefile.am: Add built marshaller files to support
      	GdkPixbufLoader signals
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_load_module): have
      	GDK_PIXBUF_MODULEDIR unconditionally replace the compiled-in
      	module location, rather than acting as a fallback, because we are
      	using GDK_PIXBUF_MODULEDIR to use gdk-pixbuf before installing it.
      
      	* gdk-pixbuf.h: include gdk-pixbuf-loader.h
      
              * gdk-pixbuf-loader.h, gdk-pixbuf-loader.c: Move back over here
      	from gtk, and add error to close(), because stop_load may do
      	parsing of the image.
      
      	* pixops/have_mmx.S (_pixops_have_mmx): add newline at end of file
      
              * io-*.c: make individual operations static, and add fill_vtable
      	functions which are exported. Fix the collection of type warnings
      	that surfaced, including a number of functions that didn't
      	properly take a GError and some that weren't
      	const-correct. Involved adding error handling for a few loaders.
      
      	* gdk-pixbuf-io.h: Add error reporting to stop_load function
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_load_module): change to just look up
      	a function that fills in the GdkPixbufModule vtable, instead of
      	looking up all the image functions individually; this means we
      	can get type safety within modules for the loader functions.
      	Also it means you don't have to keep the statically compiled and
      	GModule versions in sync.
      
      	* test-gdk-pixbuf.c (main): remove gdk_pixbuf_init()
      
      	* make-inline-pixbuf.c (main): remove call to gdk_pixbuf_init()
      
      	* gdk-pixbuf.h: nuke gdk_pixbuf_init()
      
      	* gdk-pixbuf-animation.c (gdk_pixbuf_frame_get_type): g_type_init
      	() here
      
      	* gdk-pixbuf.c (gdk_pixbuf_get_type): g_type_init () here
      
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_get_type):
      	g_type_init() here
      
      
      2001-01-22  Havoc Pennington  <hp@redhat.com>
      
      	* demos/testanimation.c: fix to reflect gdk-pixbuf changes
      
      	* demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
      
      	* gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h:
      	Remove, move back to gdk-pixbuf
      
      	* gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
      	to all the word functions
      
      	* gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
      	before doing anything on NULL layout or if we don't have the focus
      
      	* gtk/testtext.c (fill_example_buffer): "justification"
      
      	* gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
      	to be called "justification" not "justify"
      
      	* demos/gtk-demo/textview.c (create_tags): "justification"
      
      	* gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
      e0fee22e
  34. 06 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      hack on this a bit · 5c379067
      Havoc Pennington authored
      
      2001-01-05  Havoc Pennington  <hp@redhat.com>
      
      	* tests/testtreeview.c: hack on this a bit
      
      	* gtk/gtktextlayout.c (gtk_text_layout_class_init):
      	s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
      
      	* gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS):
      	was spelled incorrectly
      	(GTK_IS_TREE_MODEL_SIMPLE): ditto
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
      	from gtk_tree_view_set_headers_active
      
      	* gtk/gtktexttag.c:
      	(gtk_text_tag_get_property): handle PROP_DIRECTION
      	(gtk_text_tag_set_property): g_object_notify when we toggle the _set
      	properties, bug 40235
      
      	* gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
      	forward_to_line_end
      5c379067