1. 02 May, 2010 1 commit
  2. 01 Jul, 2008 1 commit
  3. 30 Jun, 2008 1 commit
    • Cody Russell's avatar
      Practically everything changed. · fce9c8b7
      Cody Russell authored
      2008-06-30  Cody Russell  <bratsche@gnome.org>
      
              * Practically everything changed.
      
              Change	all references	of GIMP	Toolkit	(and variations	of it)
              to GTK+	Toolkit, showing no mercy at all to our	beloved
      	ancestry. (#540529)
      
      
      svn path=/trunk/; revision=20709
      fce9c8b7
  4. 28 May, 2008 1 commit
    • Michael Natterer's avatar
      define __GTK_H_INSIDE__ around including all other headers. · eff99c28
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
      	headers.
      
      	* gtk/gtktypebuiltins.h.template
      	* gtk/gtkversion.h.in
      	* gtk/gtk*.h: add single-include guards that #error out if
      	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
      	included individually.
      
      	* gtk/gtkprintbackend.h
      	* gtk/gtkprinter-private.h
      	* gtk/gtktextlayout.h
      	* gtk/gtktexttagprivate.h
      	* gtk/gtktexttypes.h
      	* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
      	headers in these private or semi-private headers.
      
      	* gtk/gtkimmodule.h: also here because it's not in gtk.h.
      
      	* gtk/gtkpagesetupunixdialog.h
      	* gtk/gtkprinter.h
      	* gtk/gtkprintjob.h
      	* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.
      
      	* gtk/gtkclist.h
      	* gtk/gtkcombo.h
      	* gtk/gtkctree.h
      	* gtk/gtkfilesel.h
      	* gtk/gtkitemfactory.h
      	* gtk/gtklist.h
      	* gtk/gtklistitem.h
      	* gtk/gtkoldeditable.h
      	* gtk/gtkoptionmenu.h
      	* gtk/gtkpixmap.h
      	* gtk/gtkpreview.h
      	* gtk/gtksignal.h
      	* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
      	instead of individual headers in these deprecated headers. They
      	don't get included at all when GTK_DISABLE_DEPRECATED is defined,
      	so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
      	and include them individually, which should continue to work.
      
      	* gtk/gtkclist.c: include "gtkctree.h" because of the change
      	above.
      
      
      svn path=/trunk/; revision=20221
      eff99c28
  5. 13 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Make invisible text work a bit better (#66194, patch by Jeroen · 4b14b2d4
      Matthias Clasen authored
      2005-06-13  Matthias Clasen  <mclasen@redhat.com>
      
      	Make invisible text work a bit better (#66194, patch by
      	Jeroen Zwartepoorte)
      
      	* gtk/gtk.symbols:
      	* gtk/gtktextiter.[hc]: Add function to move by
      	visible lines.
      
      	* gtk/gtktextview.c (gtk_text_view_move_cursor_internal):
      	Skip invisible text when moving by paragraphs.
      
      	* gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
      	Skip invisible lines here too.
      4b14b2d4
  6. 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
  7. 23 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark as const. · b69987f2
      Matthias Clasen authored
      2004-11-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkuimanager.h (gtk_ui_manager_get_type):
      	* gtk/gtktreeview.h (gtk_tree_view_get_type):
      	* gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type):
      	* gtk/gtktreestore.h (gtk_tree_store_get_type):
      	* gtk/gtktreeselection.h (gtk_tree_selection_get_type):
      	* gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type):
      	* gtk/gtktreemodel.h (gtk_tree_iter_get_type):
      	(gtk_tree_path_get_type):
      	(gtk_tree_row_reference_get_type):
      	* gtk/gtktoolitem.h (gtk_tool_item_get_type):
      	* gtk/gtktoolbutton.h (gtk_tool_button_get_type):
      	* gtk/gtktoggleaction.h (gtk_toggle_action_get_type):
      	* gtk/gtkthemes.h (gtk_theme_engine_get_type):
      	* gtk/gtktextiter.h (gtk_text_iter_get_type):
      	* gtk/gtksettings.h (gtk_settings_get_type):
      	* gtk/gtkselection.h (gtk_selection_data_get_type):
      	* gtk/gtkradioaction.h (gtk_radio_action_get_type):
      	* gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type):
      	* gtk/gtkliststore.h (gtk_list_store_get_type):
      	* gtk/gtkiconview.h (gtk_icon_view_get_type):
      	* gtk/gtkicontheme.h (gtk_icon_info_get_type):
      	* gtk/gtkiconfactory.h (gtk_icon_factory_get_type):
      	(gtk_icon_set_get_type):
      	(gtk_icon_source_get_type):
      	* gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type):
      	* gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type):
      	* gtk/gtkfilesystem.h (gtk_file_folder_get_type):
      	(gtk_file_info_get_type, gtk_file_path_get_type):
      	(gtk_file_system_get_type):
      	* gtk/gtkfilefilter.h (gtk_file_filter_get_type):
      	* gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type):
      	* gtk/gtkfilechooser.h (gtk_file_chooser_get_type):
      	* gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type):
      	* gtk/gtkexpander.h (gtk_expander_get_type):
      	* gtk/gtkentrycompletion.h (gtk_entry_completion_get_type):
      	* gtk/gtkcombobox.h (gtk_combo_box_get_type):
      	* gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type):
      	* gtk/gtkclipboard.h (gtk_clipboard_get_type):
      	* gtk/gtkcellview.h (gtk_cell_view_get_type):
      	* gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type):
      	* gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type):
      	* gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type):
      	* gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type):
      	* gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type):
      	* gtk/gtkcelllayout.h (gtk_cell_layout_get_type):
      	* gtk/gtkactiongroup.h (gtk_action_group_get_type):
      	* gtk/gtkaction.h (gtk_action_get_type):
      	* gtk/gtkaccessible.h (gtk_accessible_get_type):
      	* gtk/gtkaccelmap.h (gtk_accel_map_get_type):
      	* gtk/gtkaccelgroup.h (gtk_accel_group_get_type):
      	* gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const.
      
      	* gtk/gtkicontheme.h:  Don't mark gtk_icon_theme_error_quark()
      	as const, to be consistent with all the other error_quark
      	functions. (technically they are const, but since these are
      	called only in error paths, giving the compiler better
      	optimization opportunities doesn't matter much)
      
      	* gtk/gtk.symbols:
      	* gdk/gdk.symbols: Add attribute annotations.
      
      	* gtk/makegtkalias.pl:
      	* gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE.
      
      	* gtk/Makefile.am (gtk.def):
      	* gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep
      	PRIVATE.
      b69987f2
  8. 14 Jun, 2003 1 commit
    • Matthias Clasen's avatar
      Document new properties as 2.4 additions. · ec280c7b
      Matthias Clasen authored
      2003-06-15  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcalendar.c (gtk_calendar_class_init):
      	* gtk/gtknotebook.c (gtk_notebook_class_init):
      	* gtk/gtkalignment.c (gtk_alignment_class_init):
      	* gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
      	as 2.4 additions.
      
      	* gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs
      	to the proper place, immediately before the g_signal_new() call.
      
      	* gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags
      	more obvious.  (#115122, Jeff Franks)
      ec280c7b
  9. 14 Jan, 2003 1 commit
    • Matthias Clasen's avatar
      Skip invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and · 740f871a
      Matthias Clasen authored
      
      	* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
      	invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
      	GTK_MOVEMENT_WORDS.
      
      	* gtk/gtktextiter.c,
      	gtk/gtktextiter.h: Add some variant movement functions which
      	skip invisible chars, and do some cleanups.
      
      	* gtk/gtk-sections.txt: Add new GtkTextIter functions.
      740f871a
  10. 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
  11. 14 Nov, 2001 1 commit
    • 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
  12. 22 Oct, 2001 1 commit
    • 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
  13. 27 Sep, 2001 1 commit
    • Havoc Pennington's avatar
      add demo of passing non-stock label in to gtk_dialog_new_with_buttons · 1773d815
      Havoc Pennington authored
      2001-09-26  Havoc Pennington  <hp@redhat.com>
      
      	* demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
      	of passing non-stock label in to gtk_dialog_new_with_buttons
      
      	* gtk/gtktextview.c (cursor_blinks): disable cursor blink when
      	debugging updates
      
      	* gtk/gtktextiter.h: comment about how GtkTextIter struct contents
      	are private
      
      	* gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
      	exist, fall back to mnemonic label, not plain label, bug #61184
      1773d815
  14. 25 Sep, 2001 1 commit
    • 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
  15. 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
  16. 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
  17. 05 Jun, 2001 1 commit
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 31 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      Rearrange all the scroll-while-dragging-or-selecting code to be different, · 7a958797
      Havoc Pennington authored
      2000-12-31  Havoc Pennington  <hp@pobox.com>
      
      * gtk/gtktextview.c: Rearrange all the
      scroll-while-dragging-or-selecting code to be different, not
      necessarily better. ;-)
      (gtk_text_view_scroll_to_mark): Change this
      function to take within_margin as a fraction instead of a pixel
      value, and to take alignment arguments (indicating where to align
      the mark inside the visible area)
      
      * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
      to GtkObject
      
      * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
      behavior so that offsets past the end of the line are not
      allowed, and an offset equal to the line length moves the iterator
      to the next line
      (gtk_text_iter_set_line_index): make parallel change
      (gtk_text_iter_get_bytes_in_line): add this function
      
      * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
      of byte indexes off the end of the line; byte index at the end of
      the line now returns FALSE and doesn't fill in the requested
      values, byte index past the end of the line is an error.  Also,
      don't allow -1 offset anymore, since its meaning is unclear.
      
      This change exposes some bug in visual cursor motion, where we
      end up with a huge invalid byte index; needs fixing. Symptom of
      bug is a crash when you hit up arrow.
      
      (_gtk_text_line_char_locate): match the change to byte_locate
      
      * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
      from start of line properly. fixes bug reported by Mikael
      Hermansson where backspace would delete all text before the
      cursor.
      7a958797
  24. 14 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      remove unused call to get_last_line() · 94ec8cff
      Havoc Pennington authored
      2000-12-14  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
      	unused call to get_last_line()
      
      	* gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
      	here until boxed is working (and maybe after that - we should
      	really not gratuitously break old code)
      
      	* gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
      	specific types for font_desc and tabs args, move them to
      	GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get
      	fixed. Move GdkColor args to GTK_TYPE_POINTER also.
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
      	use GTK_TYPE_POINTER for signal signatures as a hack-around
      
      	* gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
      	PangoTabArray
      
      	* gtk/gtktextlayout.c (line_display_iter_to_index):
      	make static
      	(line_display_index_to_iter): make static
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
      	to marshal a string not a boxed
      
      	* gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
      
      	* gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
      	since the UTF-8 isn't validated yet
      
      	* gtk/gtktextsegment.c (char_segment_check_func): don't require
      	lines to end in '\n'
      
      	* gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
      	forward_to_delimiters, and grapheme boundaries
      	(gtk_text_view_delete_from_cursor): properly handle non-newline
      	delimiters, and grapheme boundaries
      
      	* gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
      	to gtk_text_iter_forward_to_delimiters, and make it work properly
      	if empty lines end with a character other than '\n'
      
      	* gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
      	position
      94ec8cff
  25. 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
  26. 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
  27. 06 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      add gdkkeys.[hc] · 36aac017
      Havoc Pennington authored
      2000-12-03  Havoc Pennington  <hp@pobox.com>
      
      * gdk/Makefile.am: add gdkkeys.[hc]
      
      * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
      files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
      
      * acconfig.h, configure.in: add checks and command line options
      for XKB
      
      * gdk/x11/gdkkeys-x11.c: Implement the above functions
      
      * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
      and group in the key event
      
      * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
      field with the low-level hardware key code, and a group
      field with the keyboard group
      
      * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
      and declare a couple globals used for keymap handling
      
      * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
      hold down Shift-Control and type a hex number to get a Unicode
      character corresponding to the hex number
      (gtk_im_context_simple_get_preedit_string): Fix cursor position
      (return bytes not chars)
      36aac017
  28. 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
      35876710
  29. 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_text_iter_get_tags()
      
      	* 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
      f1de9df0
  30. 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
  31. 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
  32. 26 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      add new marshallers used by the text widget · a291b0be
      Havoc Pennington authored
      2000-10-26  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkmarshal.list: add new marshallers used by the text widget
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
      	types
      
      	* gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
      	marshaller types
      
      	* gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
      	gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
      	license on these files.
      
      	* gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
      	work.
      
      	* gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to
      	runtime random number different for each tree, instead of
      	a constant I made up.
      a291b0be
  33. 24 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      make it a static function · 2fab0eb1
      Havoc Pennington authored
      2000-10-24  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
      	it a static function
      
      	* gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
      	redraw text when a tag is applied to it.
      
      	* gtk/gtktexttag.c (gtk_text_tag_affects_size)
      	(gtk_text_tag_affects_nonsize_appearance): private functions to
      	see if a tag requires various kinds of redraw/layout to be queued
      	up.
      
      	* gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
      
      	* gtk/testtext.c (fill_example_buffer): Put the cursor
      	at the start of the buffer, so search works by default
      
      	* gtk/gtktextiter.c (lines_match): init match_start always
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
      	function, get iter at a line + a byte index
      
      	* gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
      	to set byte position within a line
      	(gtk_text_iter_check): remove leftover G_BREAKPOINT thing
      2fab0eb1
  34. 18 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      Some updates · 7a4c6893
      Havoc Pennington authored
      2000-10-18  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtk-sections.txt: Some updates
      
      	* gdk/gdk-sections.txt: remove GdkPixbufAlphaMode
      
      	* gdk-pixbuf/gdk-pixbuf-sections.txt: Add new API, remove
      	GdkPixbufClass/GdkAnimationClass since those are private
      
      	* gdk-pixbuf/Makefile.am (IGNORE_HFILES): ignore more headers
      
      2000-10-18  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug
      	where any number of empty lines would get skipped
      
      	* gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
      	edge.
      
      	* gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
      	warning about invalid iterators (explain more thoroughly)
      	(gtk_text_iter_in_region): rename gtk_text_iter_in_range
      
      	* gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
      	big
      
      	* demos/*.c: Add error handling
      
      	* gtk/gtktextbuffer.c: don't modify const iterators
      
      	* gtk/gdk-pixbuf-loader.c: Add full error handling here
      
      	* gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
      	on file load
      
      	* gtk/gtkiconfactory.c: Update to reflect addition of error
      	handling to gdk-pixbuf loaders
      
      2000-10-16  Havoc Pennington  <hp@redhat.com>
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_get_module)
      	(gdk_pixbuf_get_named_module) (gdk_pixbuf_load_module):
      	add error reporting here also
      
      	* make-inline-pixbuf.c (main): use GError
      
      	* io-xpm.c: include unistd.h
      
      	* gdk-pixbuf-util.c: include string.h
      
      	* io-*.c: add error reporting
      
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): add
      	error reporting
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Add error reporting
      
      	* gdk-pixbuf-io.h: Add GError** to load_increment and load
      	methods
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_save) (gdk_pixbuf_savev): return
      	a G_FILE_ERROR if we fail to write or close the file.
      
      	* gdk-pixbuf.h: remove GDK_PIXBUF_ERROR_IO, instead we'll use
      	G_FILE_ERROR_*. Rename enum to GdkPixbufError, properly following
      	the GError naming rules. Add GError** to load functions.
      7a4c6893
  35. 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
  36. 30 Sep, 2000 1 commit
    • Havoc Pennington's avatar
      fix indentation · 244996ff
      Havoc Pennington authored
      2000-09-29  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
      
              * gtk/gtktextview.c: Implement drag thresholding; change functions
      	that set border window size to have nicer name
      	(gtk_text_view_mark_set_handler):  Fix this to have the
      	right signature.
      
      	* gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
      
      	* gtk/testtext.c: Update with API changes, put line numbers on
      	both sides.
      
      	* gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
      	with this
      
      	* gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
      	pixbuf; delete a big block of #if 0 Tk code
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace
      	insert_pixmap with insert_pixbuf
      244996ff
  37. 31 Aug, 2000 1 commit
    • Havoc Pennington's avatar
      Rename GtkTextStyleValues to GtkTextAttributes · 78500e90
      Havoc Pennington authored
      2000-08-31  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
      	gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c,
      	gtk/gtktexttagprivate.h, gtk/gtktextview.c:
      	Rename GtkTextStyleValues to GtkTextAttributes
      78500e90
  38. 28 Aug, 2000 1 commit
  39. 25 Jul, 2000 1 commit
    • Havoc Pennington's avatar
      update to reflect text widget changes. · a4762fbf
      Havoc Pennington authored
      2000-07-25  Havoc Pennington  <hp@redhat.com>
      
      * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
      widget changes.
      
      * gtk/gtktextview.h: To be consistent with usage of "line"
      throughout the API to mean "newline-terminated thingy", change
      MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
      to MOVEMENT_LINE.
      
      (GtkTextView): Add flags for default editability, and whether to
      show the cursor. Add functions to get/set that. Add
      
      (gtk_text_view_get_iter_location): new function
      
      * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
      gtktextlayout.h
      (g_convert): Add g_convert temporarily, will go in glib in a bit
      
      * gtk/gtktexttagtable.h: include gtktexttag.h, and define
      GtkTextTagTableForeach instead of brokenly using GHFunc.
      Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
      
      * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
      moved to public header.
      
      * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
      "invisible", since "elide" was a bad name.
      (gtk_text_tag_get_priority): Added
      
      (GtkTextStyleValues): put this in public header, along with
      functions to use it.
      
      * gtk/gtktextmarkprivate.h: Include more headers, since we no
      longer include gtktextbtree.h.
      
      * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
      gtk_text_mark_deleted
      
      * gtk/gtktextlayout.h: Don't include the "really private" headers,
      only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
      to make this possible. Now we only need to install
      gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
      (However the Makefile.am isn't changed yet because of the
      logistics of merging gtk-hp-patches piecemeal)
      
      * gtk/gtktextiterprivate.h: include btree header, so it compiles;
      rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
      gtk_text_iter_get_line is now used in the public API for a
      different purpose.
      
      * gtk/gtktextiter.h: Clean up function names to be more
      consistent. Always call char offset "offset" and byte index
      "index". A "line" is always a line number.
      
      (gtk_text_iter_is_last): new function, more efficient than
      the existing way to check
      (gtk_text_iter_is_first): new function, also more efficient
      
      (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
      
      (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from
      gtk_text_iter_forward_char, etc.
      
      (gtk_text_iter_forward_to_tag_toggle): Renamed from
      forward_find_tag_toggle, since this isn't a linear search
      
      (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
      
      (gtk_text_iter_forward_search, gtk_text_iter_backward_search):
      New functions, search for a buffer substring.
      
      * gtk/gtktextbuffer.h: Add fields to store whether a paste is
      interactive and default editable (since we need to store that info
      until we receive the selection data).
      
      Remove all the _at_char and at_line etc. versions of functions;
      only have iterator versions.
      
      Add _interactive() versions of functions, that consider the
      editability of text. (FIXME add interactive flag to the
      insert/delete signals per Darin's suggestion)
      
      (gtk_text_buffer_get_tag_table): new function, demand-creates the
      tag table if necessary
      
      Remove declaration of gtk_text_buffer_get_iter_from_string
      
      (_gtk_text_buffer_get_btree): private/internal function, added.
      
      
      * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
      (gtk_text_line_is_last): new function
      a4762fbf
  40. 19 Jul, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      Include files outside of the extern "C" block. Makes some C++ compiler · 1e166c06
      Sebastian Wilhelmi authored
      
      2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
      	gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
      	gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
      	gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
      	gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
      	gtk/gtktypeutils.h: Include files outside of the extern "C"
      	block. Makes some C++ compiler happy. Reported by Denis Vakatov
      	<vakatov@peony.nlm.nih.gov>.
      
      	I really hope not to have caused a merging nightmare for all
      	the branches out there. Otherwise I'll be available for crucifixion.
      1e166c06