1. 01 Dec, 2011 1 commit
  2. 06 May, 2011 2 commits
    • Tristan Van Berkom's avatar
      Added internal GdkRGBA support for GtkTextTag::paragraph-background-rgba · cefb9501
      Tristan Van Berkom authored
      Added the remaining implementation bits for rendering paragraph backgrounds
      with rgba values and updated the test case.
      cefb9501
    • Tristan Van Berkom's avatar
      Added GdkRGBA properties to GtkTextTag. · d399a4ac
      Tristan Van Berkom authored
      This now allows text view to render text with alpha values in
      the text foreground and backgrounds, the work is almost complete,
      currently the error-underline-color is still a GdkColor style property
      and since we use only GdkRGBA for rendering it needs to be converted
      and applied, probably a new rgba version of the style property should
      also be introduced.
      
      This commit adds tests/testtextview that must be run from the tests/
      directory to show translucent text in action.
      d399a4ac
  3. 09 Feb, 2011 1 commit
  4. 02 Nov, 2010 1 commit
  5. 01 Nov, 2010 1 commit
  6. 10 Sep, 2010 1 commit
  7. 08 Sep, 2010 1 commit
    • Tor Lillqvist's avatar
      Get rid of the rest of variables exported from libgtk · 87141cf4
      Tor Lillqvist authored
      Especially the gtk_*_type ones in gtktexttypes.h were mentioned in
      gtk.symbols presumably by accident. That header isn't even installed,
      so no way can they be supposed to be public.
      
      gtk_text_attr_appearance_type is from the installed but "semi-private"
      gtktextlayout.h, so drop that one too from gtk.symbols for now.
      
      The use of gtk_text_unknown_char_utf8 is bit of a mess. Code in a few
      files knew implicitly that it is three bytes. Define a symbolic name
      for the length of it instead. Add an exported function
      gtk_text_unknown_char_utf8_gtk_tests_only() that returns a pointer to
      it just for the sake of gtk/tests/textbuffer.c. Prefix the variable
      with an underscore.
      
      I doubt the usefulness of the test_utf8() in textbuffer.c. If it could
      be dropped, gtk_text_unknown_char_utf8_gtk_tests_only() could be
      dropped, too.
      87141cf4
  8. 01 Jul, 2008 1 commit
  9. 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
  10. 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
  11. 12 Jun, 2007 1 commit
    • Yevgen Muntyan's avatar
      Implement block-cursor for overwrite mode. (#80378) · ef1e05f7
      Yevgen Muntyan authored
      2007-06-12  Yevgen Muntyan  <muntyan@tamu.edu>
      
              * gtk/gtkentry.c (gtk_entry_expose), (gtk_entry_toggle_overwrite),
              (gtk_entry_draw_cursor):
              * gtk/gtkstyle.c (_gtk_widget_get_cursor_gc),
              (_gtk_widget_get_cursor_color):
              * gtk/gtkstyle.h:
              * gtk/gtktextdisplay.c (gtk_text_renderer_prepare_run),
              (gtk_text_renderer_draw_shape), (text_renderer_set_state),
              (render_para):
              * gtk/gtktextlayout.c (gtk_text_layout_set_overwrite_mode),
              (gtk_text_layout_invalidate_cache), (get_block_cursor),
              (add_cursor), (gtk_text_layout_get_line_display),
              (_gtk_text_layout_get_block_cursor):
              * gtk/gtktextlayout.h:
              * gtk/gtktextutil.c (layout_get_char_width),
              (_gtk_text_util_get_block_cursor_location):
              * gtk/gtktextutil.h:
              * gtk/gtktextview.c (gtk_text_view_set_editable),
              (gtk_text_view_toggle_overwrite), (gtk_text_view_set_overwrite),
              (gtk_text_view_ensure_layout), (text_window_invalidate_cursors):
              Implement block-cursor for overwrite mode.  (#80378)
      
      
      svn path=/trunk/; revision=18108
      ef1e05f7
  12. 01 Jun, 2007 1 commit
    • Yevgen Muntyan's avatar
      Avoid recreating pangolayouts in GtkTextView on cursor movement (#435405, · 8f4aa8c6
      Yevgen Muntyan authored
      2007-06-01  Yevgen Muntyan  <muntyan@tamu.edu>
      
      	Avoid recreating pangolayouts in GtkTextView on cursor movement
      	(#435405, Behdad Esfahbod).
      
      	* gtk/gtktextlayout.c:
      	* gtk/gtktextlayout.h: new GtkTextLayout method invalidate_cursors(),
      	and functions gtk_text_layout_invalidate_cursors() and
      	gtk_text_layout_cursors_changed(), to use when invalidation is due
      	to moved marks or changed selection.
      
      	* gtk/gtktextbtree.c:
      	* gtk/gtktextbtree.h: use what's appropriate when invalidating layout.
      
      	* gtk/gtk.symbols: add new functions.
      
      	* README.in: added a note about changed GtkTextLayout API.
      
      
      svn path=/trunk/; revision=18000
      8f4aa8c6
  13. 10 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Allow setting paragraph background. (#81045, Gustavo Carneiro, patch by · 43f263a0
      Matthias Clasen authored
      2005-06-10  Matthias Clasen  <mclasen@redhat.com>
      
      	Allow setting paragraph background.  (#81045, Gustavo
      	Carneiro, patch by Jeroen Zwartepoorte)
      
      	* gtk/gtktextlayout.c (set_para_values): Propagate
      	pg_bg_color to the display struct.
      	(gtk_text_layout_free_line_display): Free it here.
      
      	* gtk/gtktextdisplay.c (render_para): If pg_bg_color
      	is set, draw a rectangle in that color behind
      	the paragraph.
      
      	* gtk/gtktexttag.c (gtk_text_tag_class_init): Add
      	paragraph-background, paragraph-background-gdk and
      	paragraph-background-set properties.
      	(set_pg_bg_color): A setter for paragraph-background.
      
      	* gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
      	pg_bg_color.
      
      	* gtk/gtktexttag.h (struct _GtkTextAttributes): Add
      	pg_bg_color.
      	(struct _GtkTextTag): Add pg_bg_color_set.
      43f263a0
  14. 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
  15. 08 Dec, 2004 1 commit
    • Matthias Clasen's avatar
      Fix #111031, reported by Padraig O'Briain: · 057ab5a4
      Matthias Clasen authored
      2004-12-08  Matthias Clasen  <mclasen@redhat.com>
      
      	Fix #111031, reported by Padraig O'Briain:
      
      	* gtk/gtktextlayout.h:
      	* gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_position):
      	Add a variant of gtk_text_layout_get_iter_at_pixel() which
      	returns the character at the position, not the closest
      	cursor position.
      
      	* gtk/gtktextview.h:
      	* gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
      	Add a variant of gtk_text_view_get_iter_at_location() which
      	returns the character at the position, not the closest
      	cursor position.
      057ab5a4
  16. 21 Nov, 2004 1 commit
    • Owen Taylor's avatar
      Add GdkPangoRenderer, a subclass of PangoRenderer targeting GDK drawables. · 3d737ee8
      Owen Taylor authored
      Sat Nov 20 15:13:51 2004  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkpango.[ch]: Add GdkPangoRenderer, a subclass of
      	PangoRenderer targeting GDK drawables. Use to implement the old
      	gdk_draw_layout() and friends.
      
      	* gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkwindow.c gdk/gdkpixmap.c:
      	Add gdk_draw_glyphs_transformed() gdk_draw_trapezoids() and
      	the corresponding members of GdkDrawableClass. Add a fallback
      	implementation of gdk_draw_trapezoids() in terms of pixbufs.
      
      	* gdk/gdkwindowing.h gdk/x11/gdkg-x11.h: Add
      	_gdk_windowing_gc_get_foreground() to enable the fallback
      	trapezoid implementation.
      
      	* gdk/x11/gdkdrawable-x11.c gdk/x11/gdkdisplay-x11.h: Implement
      	draw_glyph_transformed,	draw_trapezoids.
      
      	* gdk/x11/gdkdrawable-x11.[ch]: Add
      	_gdk_x11_drawable_draw_xtrapezoids, _gdk_x11_drawable_draw_xft_glyphs
      	for use of GdkX11Renderer.
      
      	* gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Implement
      	GDK_TILED, GDK_STIPPLED, GDK_OPAQUE_STIPPLED in the RENDER codepath.
      
      	* gdk/gdkpango-x11.c: Add GdkX11Renderer... a subclass of
      	PangoXftRenderer that does tiles/stipples and fallback rendering
      	of trapezoids without the RENDER extension.
      
      	* gdk/gdkpango-x11.c gdk/x11/gdkscreen-x11.[ch] _gdk_x11_renderer_get:
      	Add _gdk_x11_renderer_get() to get a singleton GdkX11Renderer
      	for the screen.
      
      	* gdk/x11/gdkdrawable-x11.c (get_impl_drawable): Fix a None/NULL
      	confusion.
      
      	* gtk/gtklabel.[ch] gtk/gtk.symbols: Add gtk_label_set/get_angle(),
      	and an ::angle property.
      
      	* gtk/gtklabel.c: Remove #if 0'd dead code gtk_label_paint_word().
      
      	* gtk/gtktextdisplay.c: Switch to using a GtkTextRenderer subclass
      	of GdkPangoRenderer for drawing.
      
      	* gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Switch to using
      	gtk_attr_shape_new_with_data() to store backreferences to
      	embedded pixmaps and widgets. Leave line_display->shaped_objects
      	around for backwords compatibility.
      
      	* gdk/gdkpango.[ch] (gdk_pango_context_set_colormap): Describe
      	as deprecated, remove implementation.
      
      	* gtk/gtkwidget.c (gtk_widget_create_pango_context): Remove
      	call to gdk_pango_context_set_colormap.
      
      	* demos/gtk-demo/Makefile.am demos/gtk-demo/rotated_text.c: Add
      	a demo showing drawing rotated text.
      
      	* tests/testgtk.c: Add a rotated-label test, and also a rotated
      	drawing test (differs from demos/gtk-demo/rotated_text by also
      	using a tile)
      3d737ee8
  17. 01 Mar, 2004 1 commit
    • Owen Taylor's avatar
      Patch from Dov Grobgeld to implement auto-bidi-direction for GtkTextView · 8130a8a2
      Owen Taylor authored
      Mon Mar  1 10:41:27 2004  Owen Taylor  <otaylor@redhat.com>
      
              Patch from Dov Grobgeld to implement auto-bidi-direction
              for GtkTextView (#118543)
      
              * gtk/gtktextbtree.[ch]: Resolve bidi base direction
              for each line by propagating backwards/forwards as
              necessary.
      
              * gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the
              bidi base direction for the ;ine with the cursor from
              the keyboard direction. Add gtk_text_layout_set_keyboard_direction().
      
      Mon Mar  1 10:31:11 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkentry.[ch]: Implement auto-bidi-direction,
              based on a patch from Dov Grobgeld. (#118540)
      8130a8a2
  18. 08 Nov, 2002 1 commit
    • Soeren Sandmann's avatar
      docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgml · b1165617
      Soeren Sandmann authored
      Fri Nov  8 20:14:52 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/gdk/tmpl/dnd.sgml
      	docs/reference/gdk/tmpl/drawing.sgml
      	docs/reference/gdk/tmpl/gdk-unused.sgml
      	docs/reference/gdk/tmpl/gdkdisplay.sgml
      	docs/reference/gdk/tmpl/general.sgml
      	docs/reference/gdk/tmpl/input_devices.sgml
      	docs/reference/gdk/tmpl/selections.sgml
      	docs/reference/gtk/tmpl/gtkcellrenderer.sgml
      	docs/reference/gtk/tmpl/gtkcurve.sgml
      	docs/reference/gtk/tmpl/gtkdnd.sgml
      	docs/reference/gtk/tmpl/gtkitemfactory.sgml
      	docs/reference/gtk/tmpl/gtkmenu.sgml
      	docs/reference/gtk/tmpl/gtkoldeditable.sgml
      	docs/reference/gtk/tmpl/gtkoptionmenu.sgml
      	docs/reference/gtk/tmpl/gtkpreview.sgml
      	docs/reference/gtk/tmpl/gtkselection.sgml
      	docs/reference/gtk/tmpl/gtksocket.sgml
      	docs/reference/gtk/tmpl/gtkstyle.sgml
      	docs/reference/gtk/tmpl/gtktextbuffer.sgml
      	docs/reference/gtk/tmpl/gtktreemodel.sgml
      	docs/reference/gtk/tmpl/gtkwidget.sgml gdk/gdk.h gdk/gdkdisplay.c
      	gdk/gdkdisplay.h gdk/gdkdnd.h gdk/gdkdraw.c gdk/gdkdrawable.h
      	gdk/gdkinput.h gdk/gdkselection.h gdk/x11/gdkdisplay-x11.c
      	gdk/x11/gdkdnd-x11.c gdk/x11/gdkselection-x11.c gtk/gtkcurve.h
      	gtk/gtkdnd.h gtk/gtkitemfactory.c gtk/gtkitemfactory.h
      	gtk/gtkmenu.h gtk/gtkoldeditable.c gtk/gtkoldeditable.h
      	gtk/gtkoptionmenu.h gtk/gtkplug.c gtk/gtkplug.h gtk/gtkpreview.h
      	gtk/gtkrange.h gtk/gtkselection.c gtk/gtkselection.h
      	gtk/gtksocket.c gtk/gtksocket.h gtk/gtkstyle.c gtk/gtkstyle.h
      	gtk/gtktextlayout.c gtk/gtktextlayout.h gtk/gtktreemodel.c
      	gtk/gtktreemodel.h gtk/gtkwidget.h
      
      	Trivial s/foo/foo_/ fixes to make gtk.h includable with -Wshadow
      	without warnings. (#91680)
      b1165617
  19. 23 Sep, 2002 1 commit
  20. 23 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Massive padding addition to class structures. · e5d1ea8c
      Owen Taylor authored
      Sat Feb 23 11:54:12 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/*.h gdk/*.h: Massive padding addition to class structures.
      
              * gtk/gtktextmark.h: Fix a FIXME about G_CONST_RETURN.
      e5d1ea8c
  21. 17 Jan, 2002 1 commit
    • Havoc Pennington's avatar
      new function (which I then decided not to use but I think it's needed to · 9e404f2a
      Havoc Pennington authored
      2002-01-17  Havoc Pennington  <hp@redhat.com>
      	* gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
      	function (which I then decided not to use but I think it's needed
      	to fix #68963
      	* gtk/gtktextview.c: add page_horizontally action signal and
      	implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig,
      	hackily modified to avoid adding GTK_MOVEMENT_ API. Part of
      	#53934
      	* gtk/gtkmarshalers.list: add NONE:INT,BOOL
      9e404f2a
  22. 05 Dec, 2001 1 commit
    • Havoc Pennington's avatar
      remove g_assert_not_reached() that was bogus, since we demand-create the · 6b1407a3
      Havoc Pennington authored
      2001-12-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
      	g_assert_not_reached() that was bogus, since we demand-create the
      	tag info. reported by Chris Phelps
      
              Jump through assorted hoops to fix bug from Chris Phelps where
      	removing tags from the table resulted in btree trying to
      	access tag->table
      
      	* gtk/gtktextbuffer.c: set up mechanics of adding/removing
      	ourselves to the tag table
      
      	* gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer)
      	(_gtk_text_tag_table_remove_buffer): private cruft to
      	let us notify buffer of disappearing tags
      
      	* gtk/gtktexttag.h: remove BTreeNode typedef from this public
      	header, put it in tagprivate
      
      	* gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
      	tag_removed; it's emitted too late.
      	(_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
      	this
      
      	Padding for ABI-compat expansion
      
      	* gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
      	(struct _GtkTextAppearance): one pad in here too
      
      	* gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
      
      	* gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
      	since action signals etc. seem pretty likely
      
      	* gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
      
      	* gtk/gtktexttag.h (struct _GtkTextTagClass): padding
      
      	* gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
      6b1407a3
  23. 22 Oct, 2001 1 commit
  24. 24 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Fix stupid error introduced last night that was making things decidedly · cc223eef
      Owen Taylor authored
      Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
      	introduced last night that was making things decidedly not work.
      
      	* gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
      	so that we have getter/setter pairing everywhere it makes
      	sense. (#55767)
      
      	* gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
      	Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
      	deprecated compat macro. (#55516)
      
      	* gtk/gtklabel.[ch]: Add functions
      	gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
      	gtk_label_set_label(), which mirror the property API for GtkLabel.
      	Make gtk_label_get_attributes() only reflect the attributes
      	set by gtk_label_set_attributes.
      
      	* gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
      	from gtk_notebook_set_page().
      cc223eef
  25. 08 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Add a direction-changed signal, and gdk_keymap_get_current_direction(). · da562f4d
      Owen Taylor authored
      Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkkeys.[ch]: Add a direction-changed signal,
      	and gdk_keymap_get_current_direction().
      
      	* gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
      	  gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
      	the current locked group, use it to set the keymap
      	direction.
      
      	* gtk/gtksettings.c: Add a new gtk-split-cursor setting
      	to determine whether we draw a split cursor or use
      	a jumping cursor based on the current direction.
      
      	* gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
      	Obey the split cursor setting.
      
      Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimmulticontext.c (activate_cb): Only activate
      	when toggling on, not when toggling off... (#55906)
      
      Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_set_double_buffered):
      	s/gdk_window_begin_paint/gdk_window_begin_paint_region/
      	in docs. (#55812, Vitaly Tishkov)
      da562f4d
  26. 04 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      Adapt to uscore-ification of gtktextiterprivate · c7826b5f
      Havoc Pennington authored
      2001-01-03  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
      
      	* gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use
      	of private functions; remove inclusion of private headers.
      
      	* gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this
      	function, so we don't need private functions in gtktextdisplay.c
      
      	* gtk/gtktextiterprivate.h: underscore-ification
      
      	* gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
      	to instead say "only useful to implement widgets"
      
      	* gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
      	GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
      	GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
      	This function was completely broken
      
      	* gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
      
      	* gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
      
      	* gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
      
      	* gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
      
      	* gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
      
      	* gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
      	gtk_paint_layout
      
      	* gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
      	gtk_paint_layout
      
      	* gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
      	Progress on bug 40103. Add draw_layout to draw a PangoLayout.
      	(struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
      	which were not implemented.
      
      	* gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
      	insert_pixbuf signal. Rename delete_text to delete_range since it
      	also deletes pixbufs and child anchors. This almost closes bug
      	40245 (still need to deal with child anchors)
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
      	insert_pixbuf, change signal names as appropriate, change types of
      	signals taking marks/tags to have the specific type, not just
      	G_TYPE_OBJECT
      
      	* gtk/gtkmain.c (gtk_get_current_event_state): Add this function;
      	closes bug 40051
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
      	unnecessary remove_contents() call
      	(gtk_option_menu_class_init): add a "changed" signal, closes
      	bug 40039
      	(gtk_option_menu_update_contents): emit "changed" if the
      	active menu item changes
      
      	* gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
      	cast to GtkObject, reported by Jonas Borgstrom
      	(gdk_pixbuf_loader_finalize): don't close the loader on finalize;
      	we can't do stuff with side effects in finalize. Instead, spew a
      	warning if the loader isn't closed.
      
      	* gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
      	colormap in here, non-X ports probably need to sync to this change
      
      	* gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove
      	assertion that colormap != NULL, you can set the colormap to NULL
      	if you like.
      
      	* Makefile.am: remove gtk-config-2.0
      
      	* configure.in: Use pkg-config to locate GLib. Remove
      	separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
      	and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
      	Use pkg-config to locate Pango. Output correct Pango libs to
      	gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
      
      	* Makefile.am (pkgconfig_DATA): install only target-specific pc
      	files
      	(install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
      	X11 pc files
      
      	* gtk+-2.0.pc.in (Requires): require the GDK for the current target
      	unref from here
      c7826b5f
  27. 16 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      General cleanup of the log attr iteration stuff. This should make e.g. the · e405f75c
      Havoc Pennington authored
      2000-12-16  Havoc Pennington  <hp@pobox.com>
      
      * gtk/gtktextiter.c: General cleanup of the log attr iteration
      stuff. This should make e.g. the delete key work again in the
      text widget...
      (gtk_text_iter_forward_cursor_positions): handle negative count
      (gtk_text_iter_backward_cursor_positions): handle negative count
      (gtk_text_iter_forward_word_ends): handle negative count
      (gtk_text_iter_backward_word_starts): handle negative count
      
      * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
      gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c,
      gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to
      GObject. No doubt will cause breakage.
      
      * demos/gtk-demo/textview.c: remove hacks around
      non-GObject-ification of the text objects
      
      * demos/gtk-demo/main.c (main): use g_object_set() to manipulate
      the text tag
      e405f75c
  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. 20 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      Semi-finish widget embedding. Need guffaw scrolling to be implemented in · 6f7dd53b
      Havoc Pennington authored
      2000-11-20  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
      	gtk/testtext.c: Semi-finish widget embedding. Need guffaw
      	scrolling to be implemented in GDK to finish. Also, right now
      	we just size_allocate all children on every layout change,
      	which is pretty lame. Test commented out of testtext.c,
      	until it works better.
      6f7dd53b
  30. 13 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      Free the filename of the module file. · 15e0004b
      Havoc Pennington authored
      2000-11-13  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of
      	the module file.
      
      	* gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
      	dest->language
      
      	* gtk/testtext.c: Test pixels above/below/inside paragraphs
      	settings
      
      	* gtk/gtktextview.c: Implement object args and setters/getters for
      	all the aspects of the GtkTextAttributes that are not set from
      	GtkWidget attributes. This is spacing, justification, margins,
      	etc.
      
      	(gtk_text_view_set_arg)
      	(gtk_text_view_get_arg): implement get/set for editable, wrap mode
      	args
      	(gtk_text_view_class_init): Add args for justify, left_margin,
      	right_margin, indent, and tabs
      
      
      	* gtk/gtktextlayout.c (set_para_values): fix to display indent
      	attribute properly
      
      	* gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute,
      	replace with indent attribute
      
      	* gtk/gtktextlayout.c (set_para_values): multiply indent by
      	PANGO_SCALE
      
      	* gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
      	rearranging code to do that
      	(gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
      	i.e. don't subtract the top_margin first, just to keep
      	all margin-futzing in one place.
      
      	* gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
      
      	* gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
      	special case of last line, Pango now handles this itself.
      	(gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the
      	Y coordinate
      	(gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
      	(find_display_line_above): wasn't moving the byte index as it
      	iterated over lines, so always returned byte 0. Also, port to use
      	PangoLayoutIter.
      	(find_display_line_below): same problem as
      	find_display_line_above. Also, port to use PangoLayoutIter.
      15e0004b
  31. 12 Nov, 2000 1 commit
    • Owen Taylor's avatar
      Make parent_class static. · dfba2269
      Owen Taylor authored
      Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcellrenderertextpixbuf.c: Make parent_class
      	static.
      
      Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
      	gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
      	Add support for positioning the cursor within the preedit string.
      
      Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextview.c: Check for bindings after passing
      	events to im context filter.
      
      Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextlayout.c (add_preedit_attrs): Handle
      	empty attribute lists properly.
      
      Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/queryimmodules.c (main): Return non-zero exit
      	status if errors were encountered querying any
      	modules.
      
      Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
      	don't include gtkthemes.h.
      
      	* gtk/testgtk.c gtk/testtext.c: Set environment variables
      	to point
      
      	* gtk/Makefile.am: Add new .c and .h files, build
      	gtk-query-immodules and use it to create a gtk.immodules
      	file for use of test programs.
      
      	* gtk/gtkpreview.c: remove extra blank line.
      
      Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table):
      	Add the ability to add extra tables beyond the default
      	one, and also the ability to have compose sequences
      	that are prefixes of other compose sequences.
      
      	* gtk/gtkimcontextsimple.c: Export a preedit string which
      	consists of possible candidates for keystrokes that have
      	been entered but not yet committed.
      
      	* gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
      	gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
      
      	* gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems):
      	Add a function to add input-method switching menu items
      	to a menu.
      
      	* gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
      	when switching input methods.
      
      	* gtk/gtkimcontextsimple.[ch]: Change the format of
      	the compose table to allow compose tables of different
      	lengths / sequence.
      
      Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkimmodule.[ch]: Support routines for loading
      	GtkIMContext implementations dynamically at runtime.
      
      	* gtk/queryimmodules.c: Program to query the available
      	input modules and write the results into a file.
      
      	* gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
      	extra config options "im_module_file" (cache file for
      	input method modules), and "im_module_path" - path
      	to look for modules when generating cache file.
      
      	This doesn't scale.
      
      Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the
      	generic	code from gtkthemes into a new abstraction
      	GtkModule which has the logic for implementing
      	a loadable module which implements a number of
      	GObject types.
      
      Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkeditable.[ch]: Convert GtkEditable from
      	a class into an interface
      
      	* gtk/gtkoldeditable.[ch]: Move the old editable
      	implementation into here, so legacy widgets can
      	still rely on the implemenation. GtkOldEditable
      	exports GtkEditable. Make selection handling
      	code use new text conversion functions (and
      	handle UTF-8 as a side-effect). Use GtkClipboard
      	for CLIPBOARD.
      
      	* gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
      	Adopt to match above changes.
      
      	* gtk/gtkentry.[ch]: Implement GtkEditable directly,
      	avoid GtkOldEditable implementation. Restructure
              to reduce number of places that modify state directly.
      	Move to GtkBindingSet. Display the preedit string.
      	Queue recomputation of PangoLayout and scroll position
      	to improve effiency of doing complex changes naively.
      	Add a menu with cut/copy/paste and input method selection.
      
      Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
      	to set preedit string and attributes; display preedit string by
      	inserting string and attributes at cursor when creating the
      	GtkTextLineDisplay.
      
      	* gtk/gtktextlayout.c: Move all conversions between byte
      	positions in PangoLayout and GtkTextIter into new functions
      	line_display_iter_to_index/index_to_iter that properly
      	handle the preedit string.
      
      	* gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
      	it to return const char * (eventually will end up
      	as GCONST char *, most likely.)
      
      	* gtk/gtktextview.[ch]: Handle the preedit string, call
      	gtk_im_context_reset() as necessary, add a menu to switch
      	input methods.
      
      	* gtk/gtktextlayout.[ch]: Remove useless
      	gtk_text_layout_get_log_attrs() function.
      dfba2269
  32. 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
  33. 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
  34. 26 Oct, 2000 2 commits
    • 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
    • Tim Janik's avatar
      buncha cleanups, kludged build sources dependencies with a Makefile: · 6700994c
      Tim Janik authored
      Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/Makefile.am: buncha cleanups, kludged build sources
              dependencies with a Makefile: oldest-source-stamp dependancy
              for the moment. automake is really fighting us here, with
              intentionally not allowing user-defined rules or dependancies
              prior to it's -include $(DEP_FILES) statement. sucks rocks!
      
              * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
              to public headers. tehy have a comment stating that they are
              "semi-public" aren't included by gtk.h and if enums popup there,
              they can be /*< skip >*/-ed.
      
              * gtk/gtktextlayout.h:
              * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
              added LGPL... <SIGH>
      6700994c
  35. 04 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      clean up trailing whitespace, add extensive tests for tag toggle · 928c0698
      Havoc Pennington authored
      2000-10-03  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/testtextbuffer.c: clean up trailing whitespace,
      	add extensive tests for tag toggle iteration.
      
      	* gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan
      	distance
      
      	* gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
      	optimize case where the tag root is on level 1
      	(gtk_text_line_previous_could_contain_tag): attempt to implement
      	(gtk_text_line_next_could_contain_tag): Abstract out node_compare
      	functionality
      
      	* gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
      	Implement this, though not very efficiently.
      
      	* gtk/gtktextiterprivate.h: reformat
      
      	* gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
      	iterator
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
      	this to properly revalidate the iterators.
      
      	* gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
      	properly at the end of the line (and therefore on empty lines)
      
      	* gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
      	maybe we should return a value...
      928c0698
  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. 25 Sep, 2000 1 commit
    • Havoc Pennington's avatar
      Draw the focus, and leave space to do so. · 9bec105a
      Havoc Pennington authored
      2000-09-25  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c: Draw the focus, and leave space to do so.
      
      	* gtk/gtktexttypes.c: Remove Latin1 conversion stuff
      
      	* gtk/gtktextbtree.c (gtk_text_btree_node_remove_data):
      	Fix a bug when removing node data, we didn't properly
      	re-splice the linked list after removing the data.
      
      	* gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through
      	GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
      
      	* gtk/gtktextbuffer.c (selection_received): fix g_convert usage
      
      	* gtk/gtktextlayout.c (set_para_values): Set tab array
      	for the layout from the GtkTextTag.
      
      	* gtk/gtktexttypes.h: delete tab and search cruft,
      	remove g_convert() in favor of GLib version
      
      	* gtk/gtktexttypes.c: remove tab implementation from here,
      	move to Pango
      
      	* gtk/gtktexttag.h, gtk/gtktexttag.c: Implement
      	tab stuff using new PangoTabArray from Pango
      
      	* gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
      	unused border_width stuff
      9bec105a
  38. 14 Sep, 2000 1 commit
    • Owen Taylor's avatar
      Remove g_convert (moved to glib) and now useless utf_to_latin1() · 39339f14
      Owen Taylor authored
      Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
      	glib) and now useless utf_to_latin1() latin1_to_utf()
      
      	* gtk/gtktextview.[ch]: Change ::move_insert and
      	::delete_text action signals to ::move and ::delete;
      	create the signals with the right enumeration type,
      	not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
      	C-v bindings, change Home, End to move to beginning/end
      	of line, Add C-Home C-End to move to beginning/end
      	of buffer. Change ::cut_text to ::cut_clipboard, etc;
      	combine ::scroll_text into ::move; use new GtkSelectionData
      	functions to simplify DND text handling.
      
      	* gtk/gtkenums.h gtk/gtktextview.h: Move movement,
      	deletion enumerations here, rename enumeration values to
      	be consistently plural.
      
      	* gtk/gtktextbuffer.c: Use new clipboard interfaces
      	for cut/copy/paste and primary selection.
      
      	* gtk/gtktextbuffer.[ch]: Remove excess time and
      	'interactive' arguments from cut/copy/paste;
      	rename cut to cut_clipboard, etc; remove
      	gtk_text_buffer_get_clipboard_contents().
      
      	* gtk/gtktextlayout.[ch]: Add
      	gtk_text_layout_move_iter_to_line_end() to move	the iter to
      	line ends.
      
      	* gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
      	Functions to set or get a UTF-8 string on the selection
      	data.
      
      	* gtk/gtkclipboard.[ch]: New, simplified selection handling
      	interfaces.
      
      	* gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
      	created widgets - one of these is useless if we don't.
      
      	* gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
      	a public function clear all targets registered for the
      	widget.
      
      	* gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
      	Never call gtk_widget_realize() - that was just asking
      	for bizarre side-effects.
      
      	* gtk/gtkselection.c (gtk_selection_owner_set): Call
      	gdk_selection_owner_set even if the widget is the
      	same so that we reliably update the timestamp on
      	the server.
      
      	* gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
      	gdk_x11_get_server_time() function.
      
      	* gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
      	gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
      	Add some tricky filtering on serial numbers for
      	selection clear events to fix up long-standard
      	race condition FIXME's in gtkselection.c.
      
      	* gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
      	routines to convert from utf8 to compound text or
      	STRING and from a text property to UTF-8.
      
      	* gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
      	a convenience function gdk_get_current_event_time().
      
      	* gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
      	and free selection_data->data properly
      39339f14