1. 04 Jun, 2003 1 commit
    • Owen Taylor's avatar
      Keep track of when we have a clip mask set for the GC, and when we unset · 76fc08a3
      Owen Taylor authored
      Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
              track of when we have a clip mask set for the GC,
              and when we unset it, or switch to a clip region,
              immediately call XSetClipMask (..., None) to avoid
              Xlib caching stale data. (#111806)
      
              * gtk/gtktextdisplay.c: Don't set a clip mask
              when drawing alpha pixmaps; it isn't necessary any more.
              (#111806)
      76fc08a3
  2. 08 Jan, 2003 1 commit
  3. 25 Dec, 2002 1 commit
  4. 10 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · ac770765
      Manish Singh authored
      Thu Oct 10 14:41:05 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextdisplay.c
              gtk/gtktextlayout.c gtk/gtktextmark.c gtk/gtktexttag.[ch]
              gtk/gtktexttagtable.c gtk/gtktextutil.c gtk/gtktextview.[ch]:
              Deprecation cleanup
      ac770765
  5. 02 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Export _gdk_draw_pixbuf as gdk_draw_pixbuf(), rename the _draw_pixbuf · 6cb79658
      Owen Taylor authored
      Wed Oct  2 17:46:53 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
              gdk/gdkwindow.c gdk/gdkdrawable.c: Export _gdk_draw_pixbuf
              as gdk_draw_pixbuf(), rename the _draw_pixbuf virtual
              function to draw_pixbuf. (#60582)
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable[_alpha]):
              Note that these functions are obsolete in the docs.
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
              Remove all the sanity checks now we make it clear
              that it is obsolete name for gdk_draw_pixbuf().
      
              * gdk/gdkpixmap.c gtk/gtkcellrendererpixbuf.c gtk/gtkimage.c
                gtk/gtkpixmap.c demos/testpixbuf-scale.c demos/testpixbuf.c
                tests/testrgb.c: Use gdk_draw_pixbuf() everywhere.
      
              * gtk/gtklabel.c (gtk_label_set_mnemonic_widget): Fix
              some warnings.
      
              * gdk/gdkinternals.h (struct _GdkEventPrivate): Fix missed
              bit from last gdk_event_get_screen() change.
      
              * gdk/gdkevents.c: Couple of small fixes.i
      6cb79658
  6. 29 Apr, 2002 1 commit
    • Alexander Larsson's avatar
      Integrate Erwann Chenede's multihead changes for the gtk/ directory. · 4632fb81
      Alexander Larsson authored
      Mon Apr 29 18:28:00 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Integrate Erwann Chenede's multihead changes for the gtk/ directory.
      
      	* gtk/gtkclipboard.[ch]: Add gtk_clipboard_get_for_display(),
      	make internals multihead aware.
      
      	* gtk/gtkcolorsel.[ch]: Add
      	gtk_color_selection_set_change_palette_with_screen_hook () [ugh!]
      	make up for non-multihead safety of
      	gtk_color_selection_set_change_palette_hook()
      
      	* gtk/gtkinvisible.[ch] gtk/gtkmenu.[ch] gtkwindow.[ch]: Add
      	gtk_{invisible,menu,window}_set_screen(); add "screen" properties
      	for GtkWindow and GtkMenu.
      
      	* gtk/gtkplug.[ch]: Add gtk_plug_construct_for_display(),
      	gtk_plug_new_for_display(). Multihead fixes.
      
      	* gtk/gtkselection.[ch]: Add gtk_selection_owner_set_for_display(),
      	make internals multihead aware.
      
      	* gtk/gtksettings.[ch]: Add gtk_settings_get_for_screen(), get
      	rid of now-useless gtk_settings_constructor().
      
      	* gtk/gtkstyle.[ch]: Add gtk_style_get_font_for_display(), fix
      	check/radio button indicators bitmap handling to be multihead
      	safe.
      
      	* gtk/gtkwidget.[ch]: Add gtk_widget_get_screen(), gtk_widget_has_screen(),
      	gtk_widget_get_display(), gtk_widget_get_clipboard(),
      	gtk_widget_get_root_window().
      
      	* gtk/gtkbindings.c gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkcombo.c
      	gtk/gtkctree.c gtk/gtkdnd.c gtk/gtkfilesel.c gtk/gtkgamma.c
      	gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtkimcontext.c gtk/gtklabel.c
      	gtk/gtklist.c gtk/gtkmain.c gtk/gtkmenuitem.c gtk/gtkmenushell.c
      	gtk/gtknotebook.c gtk/gtkoldeditable.c gtk/gtkoptionmenu.c
      	gtk/gtkpaned.c gtk/gtkpreview.c gtk/gtksocket.c gtk/gtktext.c
      	gtk/gtktextbuffer.c gtk/gtktextview.c gtk/gtktipsquery.c
      	gtk/gtktooltips.c gtk/gtktreeview.c gtk/gtktreeviewcolumn.c:
      	misc mechanical multihead-safety fixes.
      
      	* gtk/gtkclipboard.c: Use a GtkImage rather than a pixmap for
      	the dropper, look up the color palette only at realization time,
      	other multihead fixes.
      
      	* gtk/gtkcombo.c (gtk_combo_unrealize): Popdown the list when
      	unrealizing.
      
      	* gtk/gtkentry.c: Only claim ownership of the primary selection
      	when realized, misc multihead fixes.
      
      	* gtk/gtkfontsel.c: Only fill in fonts when attached to a screen,
      	fix gtk_font_selection_get_font() for multihead.
      
      	* gtk/gtkgc.c: make the depth => drawable hash per-screen.
      
      	* gtk/gtkinvisible.c: Add a constructor that realizes the
      	widget, so we get a realized widget with g_object_new() as
      	well gtk_invisible_new() as before.
      
      	* gtk/gtkmain.c: Get rid of unused gtk_visual/gtk_colormap
      	variables.
      
      	* gtk/gtktextdisplay.c: Add warnings if stipple bitmaps
      	are used on the wrong screen.
      
      	* gtk/gtktoolbar.c: Make handling of GtkSettings-based layout
      	read properties and connect to settings when the screen is changed,
      	rather than on init/finalize.
      
      	* gtk/gtkwindow.c: Fix icon handing to be multihead safe ...
      	default icon pixmaps/mask are only shared between windows on the
      	same screen. Misc multihead fixes.
      
      Sat Apr 27 13:49:53 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkclipboard.c (gtk_clipboard_get_for_display):
      	Update docs to reference GDK_SELECTION_CLIPBOARD rather GDK_NONE.
      
      2002-04-29  Alex Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkproperty-fb.c (gdk_property_get):
      	Fix silly bug, noticed by Sven Neumann.
      
      Sun Apr 28 22:43:55 2002  Jonathan Blandford  <jrb@gnome.org>
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): Fix
      	so that you can set a new sort func.
      4632fb81
  7. 03 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Centralize lookup and caching of cursor GC's here. · c848fbbc
      Owen Taylor authored
      Sun Mar  3 14:26:33 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkstyle.[ch] (_gtk_get_insertion_cursor_gc):
              Centralize lookup and caching of cursor GC's here.
      
              * gtk/gtkentry.[ch] gtk/gtktextview.[ch] gtk/gtktextdisplay.c
              gtk/gtklabel.c: Move to using _gtk_get_insertion_cursor_gc().
      
              * gtk/gtkentry.c (gtk_entry_expose): Draw cursors
              under the text, not over the text.
      
              * gtk/gtkwidget.c (gtk_widget_class_init): add
              a secondary-cursor-color property.
      
              * gtk/gtkwidget.c (gtk_widget_class_init): Decrease
              the default aspect ratio to 1/25 (0.04).
      
              * tests/testgtkrc (bell_duration): Comment out
              cursor color setting.
      c848fbbc
  8. 25 Feb, 2002 1 commit
    • Havoc Pennington's avatar
      change to pass in the cursor direction always, not just when we need an · 8ddb92e4
      Havoc Pennington authored
      2002-02-24  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkstyle.c (_gtk_draw_insertion_cursor): change to pass in
      	the cursor direction always, not just when we need an arrow, so we
      	can flip the cursor around its axis for RTL. Resolves #72372
      
      	* gtk/gtkentry.c (gtk_entry_draw_cursor): update for
      	draw_insertion_cursor change
      
      	* gtk/gtklabel.c (gtk_label_draw_cursor): ditto
      
      	* gtk/gtktextdisplay.c (gtk_text_layout_draw): ditto
      8ddb92e4
  9. 14 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Patch from Bill Haneman and Padraig O'Briain to add cursor_aspect_ratio · 8f5c2c76
      Owen Taylor authored
      Thu Feb 14 16:46:48 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c gtk/gtktextdisplay.c gtk/gtklabel.c
      	gtk/gtkstyle.[ch] gtk/gtkwidget.c: Patch from Bill
      	Haneman and Padraig O'Briain to add cursor_aspect_ratio
      	style property to GtkWidget to allow theming the aspect
      	ratio of the cursor.
      
      	* gtk/gtkentry.c gtk/gtktextview.c gtk/gtklabel.c
      	gtk/gtkwidget.c tests/testgtkrc: Move cursor-color style property
      	to GtkWidget.
      8f5c2c76
  10. 13 Nov, 2001 1 commit
    • Havoc Pennington's avatar
      fix to properly replace selection with Return or Tab · 8befd2f8
      Havoc Pennington authored
      2001-11-13  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
      	properly replace selection with Return or Tab
      
      	* gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
      	that didn't locate the end of the line correctly, should fix #63800
      8befd2f8
  11. 06 Nov, 2001 1 commit
    • Havoc Pennington's avatar
      expose the child widgets in here (gtk_text_view_realize): set parent · 604eebd3
      Havoc Pennington authored
      2001-11-05  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_paint): expose the child
      	widgets in here
      	(gtk_text_view_realize): set parent window of child widgets
      	(gtk_text_view_size_request): use child req to decide whether
      	to invalidate layout, not widget->requisition
      
      	* gtk/gtktextdisplay.c (render_layout_line): set
      	shaped_width_pixels for NULL shape objects, so that we properly
      	draw the "missing pixbuf/widget" thing
      	(render_layout_line): don't draw the widget here
      	(gtk_text_layout_draw): pass out a list of widgets that need exposing
      
      	* demos/gtk-demo/textview.c (insert_text): add demo of child
      	widgets
      
      	* gtk/gtktextlayout.c (add_child_attrs): remove debug spew
      
      	* gtk/gtktextdisplay.c (render_layout_line): remove debug spew
      
      	* gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
      	scroll offsets
      	(gtk_text_view_value_changed): poke new X and Y into child allocations
      604eebd3
  12. 22 Oct, 2001 1 commit
  13. 25 Sep, 2001 1 commit
    • Owen Taylor's avatar
      ue Sep 25 12:41:17 2001 Owen Taylor <otaylor@redhat.com> · 0c3be554
      Owen Taylor authored
      	* configure.in: Version 1.3.9, interface age 0, binary age 0.
      
      	* configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
      
      	* NEWS: Updates.
      
      Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
      	function for drawing cursors between gtkentry/gtklabel/gtktextview.
      	Should this be public? It has a bit of an odd interface, but
      	custom editing widgets probably should be using it.
      	Function will draw with wider width for taller cursors, and
      	draws a little indicator arrow to indicate directoin for split
      	cursors.
      
      	* gtk/gtktextview.c: Add a "cursor_color" property.
      
      	* gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
      	gtk_text_layout_draw().
      
      	* gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
      	_gtk_draw_insertion_cursor().
      
      Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
      	the behavior where you could turn family_set (etc) back on
      	and get back the values you had before.
      
      	* demos/gtk-demo/stock_browser.c (id_to_macro): Use
      	g_string_ascii_up() rather than looping through the
      	string ourself.
      0c3be554
  14. 19 Sep, 2001 1 commit
    • Alexander Larsson's avatar
      Don't draw with GTK_STATE_ACTIVE. · 1a46d3d5
      Alexander Larsson authored
      2001-09-18  Alex Larsson  <alexl@redhat.com>
      
              * gtk/gtkcheckbutton.c:
      	* gtk/gtkradiobutton.c:
      	Don't draw with GTK_STATE_ACTIVE.
      
      	* gtk/gtkclist.c:
      	* gtk/gtkctree.c:
      	Draw lines between rows with base_gc[GTK_STATE_NORMAL].
      
      	* gtk/gtktextdisplay.c:
      	Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
      	unfocused with base_gc [GTK_STATE_ACTIVE].
      
      	* gtk/gtkentry.c:
      	Add select all menu-item.
      	Default cursor color is red.
      	Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
      	unfocused with base_gc [GTK_STATE_ACTIVE].
      
      	* gtk/gtklabel.[ch]:
      	Add keynav + menu to selectable lables.
      	Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
      	unfocused with base_gc [GTK_STATE_ACTIVE].
      
      	* gtk/gtkfilesel.c:
      	Add drag and drop support.
      
      	* gtk/gtkstyle.c:
      	(This was checked in earlier)
      	New default values for text/base SELECTED and ACTIVE
      1a46d3d5
  15. 30 Aug, 2001 1 commit
    • Havoc Pennington's avatar
      handle NULL shaped object from the empty-child-anchor case by drawing a · 5137409a
      Havoc Pennington authored
      2001-08-30  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
      	object from the empty-child-anchor case by drawing a little box.
      
      	* gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
      	if the child anchor has no anchored widgets - fixes #59328.
      
      	Also, remove bizarre deletion of preedit string that seems to have
      	gotten in here somehow.
      5137409a
  16. 07 Aug, 2001 1 commit
  17. 12 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ] · 79d45ab8
      Owen Taylor authored
      Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
      	  gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
      	  gtk/gtkfontsel.c gtk/gtkhandlebox.c
      	  gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
      	  gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
      	  gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
      	  gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
      	Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
      79d45ab8
  18. 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
  19. 18 May, 2001 1 commit
  20. 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
  21. 18 Apr, 2001 1 commit
    • Havoc Pennington's avatar
      Close bug #50615: · f8ceea8b
      Havoc Pennington authored
      2001-04-18  Havoc Pennington  <hp@redhat.com>
      
              Close bug #50615:
      
      	* gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
      	the layout
      
      	* gtk/gtktext.c: Use base/text instead of bg/fg throughout
      
      	* gtk/gtkentry.c: Use base/text instead of bg/fg throughout
      
      	* gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
      
      	* gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
      	to blue for base, in addition to bg
      f8ceea8b
  22. 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
  23. 14 Dec, 2000 1 commit
  24. 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
  25. 30 Nov, 2000 1 commit
    • Tor Lillqvist's avatar
      Changes by Hans Breuer: · 68ae419b
      Tor Lillqvist authored
      2000-11-30  Tor Lillqvist  <tml@iki.fi>
      
      	Changes by Hans Breuer:
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
      	Dont't use negative width and height as max_hints. This fixes
      	Owen's recent testgtk changes for win32.
      
      	* gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
      	gdk_win32_hdc_release): These are exported and may be called with
      	other drawable types than our GdkDrawableImplWin32 (?).
      
      	* gdk/gdkwindow.c: Backing store appears to work on Windows now,
      	so always #define USE_BACKING_STORE.
      
      	* gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
      	of printf for debugging output.
      
      	* gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
      
      	* gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
      
      	* gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
      	declaration.
      
      	* gtk/gtktexttypes.h: Ditto.
      
      	* gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
      	(GDK_VoidSymbol) also if in case of arg check failure.
      
      	* gtk/gtkimcontextsimple.c
      	(gtk_im_context_simple_get_preedit_string): Don't assign cursor
      	position to the pointer, but to the variable it points to.
      
      	* gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
      
      	* gtk/gtk.def: Updates.
      68ae419b
  26. 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
  27. 16 Nov, 2000 1 commit
    • Owen Taylor's avatar
      remove unecessary rules for win32-specific config-substituted targets. If · bc41c3ff
      Owen Taylor authored
      Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* **/Makefile.am : remove unecessary rules for win32-specific
      	config-substituted targets. If you want these rules, use
      	--enable-maintainer-mode (called automatically by autogen.sh).
      	Stops a lot of unneccessary make-time warnings.
      
      	* gtk/gtktext{layout,display}.c: Factor in total width as
      	well as screen when figuring alignment for word-wrap as well as
      	no wrap; this is necessary to handle lines that cannot be wrapped
      	at all.
      bc41c3ff
  28. 15 Nov, 2000 3 commits
    • Owen Taylor's avatar
      ed Nov 15 16:02:20 2000 Owen Taylor <otaylor@redhat.com> · de49f2ce
      Owen Taylor authored
      	* gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
      	unconditionally, since we may need to update the horizontal
      	scrollbars even if the height didn't change.
      
      	* gtk/gtktextlayout.c (add_preedit_attrs): Always get
      	the extra attrs, since some of them affect size.
      
      	* gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
      	x_offset correctly.
      de49f2ce
    • Havoc Pennington's avatar
      Remove extra pixel from the cursor (render_layout_line): fix reversed test · 42bb04b2
      Havoc Pennington authored
      2000-11-15  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
      	from the cursor
      	(render_layout_line): fix reversed test that caused weird
      	underlines to get drawn
      42bb04b2
    • Havoc Pennington's avatar
      Draw underlines one pixel higher. · fe8da19f
      Havoc Pennington authored
      2000-11-14  Havoc Pennington  <hp@redhat.com>
      
      	* gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
      	higher.
      
      	* gtk/gtktextdisplay.c (render_layout_line): Take rise into
      	account. Also, render rise, underline, background, etc. for
      	pixbufs as well as text. Also, draw underlines one pixel higher.
      
      	* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
      	PangoAttribute for the rise, so it gets drawn properly. Also,
      	add the GtkTextAppearance attribute for pixbuf/widget segments
      	as well; we should go ahead and have rise, underline, background,
      	stipple work for those
      
      	* gtk/gtktexttag.c: Rename "offset" property to "rise" to match
      	Pango
      fe8da19f
  29. 14 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      fix bug where GC didn't always get updated properly · 73a00eeb
      Havoc Pennington authored
      2000-11-13  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug
      	where GC didn't always get updated properly
      
      	* demos/gtk-demo/textview.c (create_tags): Use subattributes
      	of fonts instead of setting the entire font
      
      	* gtk/testtext.c (fill_example_buffer): Use "size" instead of
      	setting entire font
      
      	* gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
      
      	* gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into
      	a bunch of individually-settable font attributes. You can still
      	use the "font" and "font_desc" args, they just set all the font
      	attributes at once.
      73a00eeb
  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. 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
  32. 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
  33. 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
  34. 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
  35. 08 Sep, 2000 1 commit
  36. 25 Jul, 2000 2 commits
    • 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
    • Tor Lillqvist's avatar
      Generate gtk/makefile.mingw. · 20e675e1
      Tor Lillqvist authored
      2000-07-25  Tor Lillqvist  <tml@iki.fi>
      
      	* configure.in: Generate gtk/makefile.mingw.
      
      	* config.h.win32: Add GETTEXT_PACKAGE.
      
      	* gdk/gdk.def
      	* gtk/gtk.def: Updates.
      
      	* gdk/gdkfont.h
      	* gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
      	need them any longer.
      
      	* gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
      
      	* gdk/win32/*.c: More work.
      
      	* gdk/win32/gdkpango-win32.c: New file.
      
      	* gtk/makefile.mingw.in: New file
      
      	* gtk/makefile.cygwin: Removed
      
      	* gtk/Makefile.am: Update accordingly.
      
      	* gtk/gtkmain.c: Use gtk_win32_get_installation_directory().
      
      	* gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
      	is enough.
      
      	* gtk/gtktypeutils.c: Mark glib_debug_objects for import.
      20e675e1
  37. 21 Jul, 2000 1 commit
    • Owen Taylor's avatar
      Use new PangoAttrShape to reserve space for pixmaps, add GSList *pixmaps · e6be8f3f
      Owen Taylor authored
      Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
      	PangoAttrShape to reserve space for pixmaps, add
      	GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
      	in the display functions.
      
      	* gtk/testgtk.c (create_layout): Set some more exotic
      	scrolled window options
      
      	* gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
      	Add function to set the shadow type of a window, to allow
      	putting a shadow around widgets such as GtkLayout or GnomeCanvas
      	which don't draw their own frame.
      e6be8f3f