Commit Graph

181 Commits

Author SHA1 Message Date
0336d7c12f Reworked to fix bugs related to breaking text on newlines. Some fairly
2001-12-27  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-text.c (split_into_lines): Reworked to fix bugs
	related to breaking text on newlines.  Some fairly substantial
	code duplication was removed in the process.

svn path=/trunk/; revision=15219
2001-12-28 02:24:27 +00:00
5f447101dd Don't crash if the text string is NULL. (text_draw_with_objects): Don't
2001-12-10  Jon Trowbridge  <trow@ximian.com>

        * gal/e-text/e-text.c (text_width_with_objects): Don't crash if
        the text string is NULL.
        (text_draw_with_objects): Don't crash if the text string is NULL.
        (Fixes #16359)

svn path=/trunk/; revision=14954
2001-12-10 17:50:14 +00:00
335e0c6bf6 Only popup entries that have focus. Fixes the lingering completion popup
2001-11-08  Jon Trowbridge  <trow@ximian.com>

        * gal/e-text/e-entry.c (full_cb): Only popup entries that have
        focus.  Fixes the lingering completion popup bug.

svn path=/trunk/; revision=14626
2001-11-08 17:28:52 +00:00
114411716d Calc height here if we need it to check the y position of the cursor.
2001-10-30  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (e_text_reflow): Calc height here if we need
	it to check the y position of the cursor.

svn path=/trunk/; revision=14443
2001-10-30 08:22:21 +00:00
b14590968a Added. Makes our popup window a transient of the toplevel.
2001-10-29  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-entry.c (e_entry_make_completion_window_transient):
	Added.  Makes our popup window a transient of the toplevel.
	(e_entry_enable_completion_full): Try to make our popup a
	transient.
	(e_entry_realize): Also try to make our popup a transient here, in
	case the entry wasn't packed before we enabled completion.  This
	is all an attempt to fix bug #13791.

svn path=/trunk/; revision=14390
2001-10-30 01:05:17 +00:00
0027f30446 destroy our completion_view_popup... we've been leaking them all of this
2001-10-29  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-entry.c (e_entry_destroy): destroy our
	completion_view_popup... we've been leaking them all of this time.
	This should fix the mysterious bug #13900.

svn path=/trunk/; revision=14381
2001-10-29 23:37:08 +00:00
75cd5e1f3d Silently drop match strings that contain invalid utf-8... not a good thing
2001-10-29  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-completion-match.c (e_completion_match_set_text):
	Silently drop match strings that contain invalid utf-8... not a
	good thing to do, but better than any of the currently available
	alternatives.

svn path=/trunk/; revision=14364
2001-10-29 21:27:25 +00:00
e3e57f4def Set text->revert = NULL here. (e_text_cancel_editing): Only revert if
2001-10-29  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (e_text_stop_editing): Set text->revert =
	NULL here.
	(e_text_cancel_editing): Only revert if text->revert is non-null.

svn path=/trunk/; revision=14334
2001-10-29 12:24:38 +00:00
f2feef8356 Bumped version number here to 0.15.99.7.
2001-10-29  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped version number here to 0.15.99.7.

	* gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_stop_editing):
	Exported this function.
	(e_text_cancel_editing): New function.  Allows you to revert
	edits.

svn path=/trunk/; revision=14332
2001-10-29 11:52:22 +00:00
0d56746e85 Bumped the version number to 0.15.99.6 for emulate_label_resize.
2001-10-27  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the version number to 0.15.99.6 for
	emulate_label_resize.

	* gal/e-text/e-entry.c: Added "emulate_label_resize" argument to
	make EEntry act like a label for width resizing purposes.

svn path=/trunk/; revision=14227
2001-10-27 21:01:42 +00:00
94cb75aa12 Changed the license announcement at the top of these files.
2001-10-26  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text-test.c, gal/util/e-i18n.h,
	gal/widgets/e-hsv-utils.c, gal/widgets/e-hsv-utils.h: Changed the
	license announcement at the top of these files.

svn path=/trunk/; revision=14169
2001-10-26 20:51:53 +00:00
dc8927136a Changed the license announcement at the top of these files.
2001-10-26  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-paned/e-hpaned.c, gal/e-paned/e-hpaned.h,
	gal/e-paned/e-paned.c, gal/e-paned/e-paned.h,
	gal/e-paned/e-vpaned.c, gal/e-paned/e-vpaned.h,
	gal/e-text/e-completion-match.c, gal/e-text/e-completion-match.h,
	gal/e-text/e-completion-test.c, gal/e-text/e-completion-view.c,
	gal/e-text/e-completion-view.h, gal/e-text/e-completion.c,
	gal/e-text/e-completion.h, gal/e-text/e-entry-test.c,
	gal/e-text/e-entry.c, gal/e-text/e-entry.h,
	gal/e-text/e-table-text-model.c, gal/e-text/e-table-text-model.h,
	gal/e-text/e-text-model-repos.c, gal/e-text/e-text-model-repos.h,
	gal/e-text/e-text-model-test.c, gal/e-text/e-text-model-uri.c,
	gal/e-text/e-text-model-uri.h, gal/e-text/e-text-model.c,
	gal/e-text/e-text-model.h, gal/e-text/e-text.c,
	gal/e-text/e-text.h, gal/util/e-bit-array.c,
	gal/util/e-bit-array.h, gal/util/e-cache.c, gal/util/e-cache.h,
	gal/util/e-iconv.c, gal/util/e-iconv.h, gal/util/e-sorter-array.c,
	gal/util/e-sorter-array.h, gal/util/e-sorter.c,
	gal/util/e-sorter.h, gal/util/e-text-event-processor-emacs-like.c,
	gal/util/e-text-event-processor-emacs-like.h,
	gal/util/e-text-event-processor-types.h,
	gal/util/e-text-event-processor.c,
	gal/util/e-text-event-processor.h, gal/util/e-util.c,
	gal/util/e-util.h, gal/util/e-xml-utils.c, gal/util/e-xml-utils.h,
	gal/widgets/color-group.c, gal/widgets/color-group.h,
	gal/widgets/color-palette.c, gal/widgets/color-palette.h,
	gal/widgets/e-canvas-utils.c, gal/widgets/e-canvas-utils.h,
	gal/widgets/e-canvas-vbox.c, gal/widgets/e-canvas-vbox.h,
	gal/widgets/e-canvas.c, gal/widgets/e-canvas.h,
	gal/widgets/e-categories-master-list-array.c,
	gal/widgets/e-categories-master-list-array.h,
	gal/widgets/e-categories-master-list-combo.c,
	gal/widgets/e-categories-master-list-combo.h,
	gal/widgets/e-categories-master-list-dialog-model.c,
	gal/widgets/e-categories-master-list-dialog-model.h,
	gal/widgets/e-categories-master-list-dialog.c,
	gal/widgets/e-categories-master-list-dialog.h,
	gal/widgets/e-categories-master-list.c,
	gal/widgets/e-categories-master-list.h,
	gal/widgets/e-categories.c, gal/widgets/e-categories.h,
	gal/widgets/e-colors.c, gal/widgets/e-colors.h,
	gal/widgets/e-cursors.c, gal/widgets/e-cursors.h,
	gal/widgets/e-font.c, gal/widgets/e-font.h,
	gal/widgets/e-gui-utils.c, gal/widgets/e-gui-utils.h,
	gal/widgets/e-hscrollbar.c, gal/widgets/e-hscrollbar.h,
	gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h,
	gal/widgets/e-printable.c, gal/widgets/e-printable.h,
	gal/widgets/e-reflow-model.c, gal/widgets/e-reflow-model.h,
	gal/widgets/e-reflow-sorted.c, gal/widgets/e-reflow-sorted.h,
	gal/widgets/e-reflow.c, gal/widgets/e-reflow.h,
	gal/widgets/e-scroll-frame.c, gal/widgets/e-scroll-frame.h,
	gal/widgets/e-selection-model-array.c,
	gal/widgets/e-selection-model-array.h,
	gal/widgets/e-selection-model-simple.c,
	gal/widgets/e-selection-model-simple.h,
	gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h,
	gal/widgets/e-unicode.c, gal/widgets/e-unicode.h,
	gal/widgets/e-vscrollbar.c, gal/widgets/e-vscrollbar.h,
	gal/widgets/gtk-combo-box.c, gal/widgets/gtk-combo-box.h,
	gal/widgets/gtk-combo-stack.c, gal/widgets/gtk-combo-stack.h,
	gal/widgets/gtk-combo-text.c, gal/widgets/gtk-combo-text.h,
	gal/widgets/test-color.c, gal/widgets/test-e-font.c,
	gal/widgets/test-e-font.h, gal/widgets/test-font-loading.c,
	gal/widgets/widget-color-combo.c,
	gal/widgets/widget-color-combo.h,
	gal/widgets/widget-pixmap-combo.c,
	gal/widgets/widget-pixmap-combo.h,
	src/e-table/e-table-sorted-variable.c, tests/test-define-views.c,
	tests/test-shortcut-bar.c, tests/test-table-1.c,
	tests/test-tree-1.c, tests/test-tree-2.c, tests/test-tree-3.c,
	tests/test-unicode.c: Changed the license announcement at the top
	of these files.

svn path=/trunk/; revision=14158
2001-10-26 18:33:33 +00:00
5
ac091e954d Bumped version to 0.15.99.4 for e-iconv changes.
2001-10-25    <NotZed@Ximian.com>

        * configure.in: Bumped version to 0.15.99.4 for e-iconv changes.

        * gal/widgets/e-unicode.c (e_utf8_from_iconv_string_sized): "
        (e_utf8_to_iconv_string_sized): "
        (e_utf8_from_gtk_string_sized): "
        (e_utf8_to_gtk_string_sized): "

        * gal/widgets/e-font.c (e_font_to_native): s/iconv/e_iconv/

        * gal/util/e-iconv.c (e_iconv): Implement a wrapper for iconv() to
        make sure we link with and execute the right iconv to match the
        right iconv_open.  (BLAH!)

svn path=/trunk/; revision=14111
2001-10-26 00:35:20 +00:00
c996010276 Use the widget's style's text_gc for drawing text if either
2001-10-23  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (e_text_draw): Use the widget's style's
	text_gc for drawing text if either draw_background or draw_button
	is on.

svn path=/trunk/; revision=13937
2001-10-23 09:00:27 +00:00
4720ad36fa Bumped version to 0.15.99.3 for EText's "draw_button" argument.
2001-10-23  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped version to 0.15.99.3 for EText's
	"draw_button" argument.

	* gal/e-text/e-entry.c: Forward the "draw_button" argument to the
	contained EText.

	* gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_draw): Added
	new "draw_button" argument.  If this is turned on and the first
	widget that's a parent of the containing canvas with GTK_NO_WINDOW
	turned off above the current one is a button, EText draws a button
	underneath itself to match the containing button.

From gal/shortcut-bar/ChangeLog:

2001-10-23  Christopher James Lahey  <clahey@ximian.com>

	* e-shortcut-bar.c (e_shortcut_bar_add_group): Turn on
	"draw_button" argument to EEntry.

svn path=/trunk/; revision=13934
2001-10-23 06:30:54 +00:00
f22daae8e6 Accept UTF8_STRING, UTF-8, and STRING targets when getting the selection.
2001-10-22  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_get_selection):
	Accept UTF8_STRING, UTF-8, and STRING targets when getting the
	selection.

svn path=/trunk/; revision=13864
2001-10-22 04:16:03 +00:00
c4c8cf0390 Offer UTF8_STRING, UTF-8, COMPOUND_TEXT, STRING, and TEXT targets when we
2001-10-21  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (e_text_get_invisible): Offer UTF8_STRING,
	UTF-8, COMPOUND_TEXT, STRING, and TEXT targets when we offer the
	selection.

svn path=/trunk/; revision=13847
2001-10-21 06:57:50 +00:00
19c5a95912 Changed some of these gbooleans to be guint : 1s.
2001-10-20  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.h: Changed some of these gbooleans to be
	guint : 1s.

	* gal/widgets/e-canvas.c (e_canvas_item_grab_focus): Send the in
	event here to the new focused item instead of the old one.

svn path=/trunk/; revision=13824
2001-10-20 19:03:03 +00:00
35c8845807 Connect keys before we show the widget.
2001-10-18  Jon Trowbridge  <trow@ximian.com>

        * gal/e-text/e-entry.c (e_entry_enable_completion_full): Connect
        keys before we show the widget.

svn path=/trunk/; revision=13756
2001-10-18 17:34:26 +00:00
69b2e6d8ee Use e_strdup_append_strings here instead of g_strdup_printf because
2001-10-11  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-table-text-model.c (e_table_text_model_insert,
	e_table_text_model_insert_length, e_table_text_model_delete),
	gal/e-text/e-text-model.c (e_text_model_real_insert,
	e_text_model_real_insert_length): Use e_strdup_append_strings here
	instead of g_strdup_printf because printf("%.*s") is locale
	dependent on some systems.

	* gal/util/e-util.c (e_strdup_append_strings): New function to
	append a bunch of strings with optional lengths.

svn path=/trunk/; revision=13581
2001-10-11 16:17:41 +00:00
6b746897bf Based on patches from Dan Nguyen <dnn@austin.ibm.com>.
2001-10-10  Christopher James Lahey  <clahey@ximian.com>

	Based on patches from Dan Nguyen <dnn@austin.ibm.com>.

	* gal/Makefile.am (libgal_la_LDFLAGS): Added $(GTK_LIBS).

	* gal/e-text/e-text.c (e_text_event): Changed this from a C++
	comment to a C comment.

svn path=/trunk/; revision=13549
2001-10-10 12:49:34 +00:00
c5f392ca0e add E_OBJECT_CLASS_ADD_SIGNALS and E_OBJECT_CLASS_TYPE to ease migration
2001-10-05  Michael Meeks  <michael@ximian.com>

	* gal/util/e-util.h: add E_OBJECT_CLASS_ADD_SIGNALS and
	E_OBJECT_CLASS_TYPE to ease migration to Gnome 2.0 from
	a single source base.

	* All C files:
	s/object_class->type,/E_OBJECT_CLASS_TYPE (object_class),/g;
	s/gtk_object_class_add_signals([^\(]*)\(([^,]*),([^,]*),([^\)]*)/
	E_OBJECT_CLASS_ADD_SIGNALS\1(\2,\3,\4/;

svn path=/trunk/; revision=13428
2001-10-04 23:52:20 +00:00
f6be515182 Added a max length of 2047 to the standard ETextModel. Fixes Ximian bug
2001-10-02  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text-model.c (MAX_LENGTH): Added a max length of
	2047 to the standard ETextModel.  Fixes Ximian bug #3021.

svn path=/trunk/; revision=13298
2001-10-02 12:31:05 +00:00
010204b7bf Allow ctrl-p and ctrl-n to be used to move up and down in the completion
2001-09-26  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-completion-view.c
	(e_completion_view_key_press_handler): Allow ctrl-p and ctrl-n to
	be used to move up and down in the completion list. (Bug #10500)

	* gal/e-text/e-completion-match.c (e_completion_match_set_text):
	Properly validate the utf8.

svn path=/trunk/; revision=13159
2001-09-26 19:42:39 +00:00
20b8f6e7a7 Made it so that if allow_newlines is FALSE, pasting into ETexts doesn't
2001-09-26  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c, gal/e-text/e-text.h (_insert): Made it so
	that if allow_newlines is FALSE, pasting into ETexts doesn't
	insert carriage returns.  Fixes Ximian bug #5761 and Ximian bug
	#9067.

svn path=/trunk/; revision=13143
2001-09-26 10:03:25 +00:00
d8f6b5758f remove redundant NULL checks since g_free handles NULLs. (e_text_destroy):
2001-09-17  Larry Ewing  <lewing@ximian.com>

	* gal/e-text/e-text.c (e_text_supply_selection): remove redundant
	NULL checks since g_free handles NULLs.
	(e_text_destroy): free the selection.  It does appear to be a
	guarantee that we get a selection-clear event before we are
	destroyed.

svn path=/trunk/; revision=12934
2001-09-18 04:00:56 +00:00
a513a5f502 Bumped version number to 0.11.99.4.
2001-09-16  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped version number to 0.11.99.4.

	* gal/e-text/e-completion-view.c (e_completion_view_construct),
	tests/test-table-1.c (create_table): Changed the parameters to
	e_table_simple_new here to adjust to changes in the interface.

	* gal/widgets/e-categories-master-list-array.c (ecmla_default):
	Fixed a memory leak here.

	* gal/widgets/e-categories.c (e_categories_get_save_id): Added
	get_save_id here so that selection would be maintained across
	changes.

From gal/e-table/ChangeLog:

2001-09-16  Christopher James Lahey  <clahey@ximian.com>

	* e-table-model.c, e-table-model.h (e_table_model_class_init):
	Rearranged order of has_save_id and get_save_id to be more
	consistent with ETree.

	* e-table-selection-model.c, e-table-selection-model.h: Turned on
	the code to maintain selection and cursor across changes if the
	model supports get_save_id.

	* e-table-simple.c, e-table-simple.h: Changed this interface to
	take all of the ETableModel functions in the _new function.

	* e-table-subset.c (etss_has_save_id, etss_get_save_id): Added
	these to properly proxy the save_id functionality.

	* e-tree-memory-callbacks.c, e-tree-memory-callbacks.h,
	e-tree-model.c, e-tree-model.h, e-tree-sorted.c: Made the save_id
	parameter to get_node_by_id be const char * instead of char *.

	* e-tree-table-adapter.c (etta_class_init): Rearranged some
	assignments here to be more consistent.

svn path=/trunk/; revision=12869
2001-09-17 03:57:12 +00:00
00368d2905 Unref the model after creating the ETable, since the table will hold a ref
* gal/e-text/e-completion-view.c (e_completion_view_construct):
	Unref the model after creating the ETable, since the table will
	hold a ref on it until we destroy it when we're destroyed.

	* gal/e-text/e-entry.c (e_entry_destroy): Unref the popup window
	rather than destroying it.

svn path=/trunk/; revision=12798
2001-09-13 15:37:59 +00:00
e0cd01768a If our text shrinks, make sure that the selection doesn't spill off over
2001-09-09  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-text.c (e_text_text_model_changed): If our text shrinks,
	make sure that the selection doesn't spill off over the end of the
	reduced buffer.  (Related to bug #8535)

svn path=/trunk/; revision=12717
2001-09-09 22:59:02 +00:00
87b3e9277f Patch to fix few 64bit issues
Tue Aug 28 18:29:28 2001  George Lebl <jirka@5z.com>

	Patch to fix few 64bit issues

	* gal/e-table/e-table-header-item.c (ethi_draw) (ethi_start_drag)
	  gal/widgets/e-categories.c (e_categories_value_at)
	  (e_categories_value_to_string):
	  Use GINT_TO_POINTER and GPOINTER_TO_INT to cast between pointers
	  and ints to fix 64bit issues connected with that.

	* gal/e-table/e-table-sorting-utils.c
	  (e_table_sorting_utils_tree_check_position)
	  gal/util/e-sorter-array.c (e_sorter_array_append):
	  Use size_t for size not ints to fix crashes

	* gal/e-text/e-completion-match.c, gal/e-text/e-completion.c:
	  Include <string.h>

svn path=/trunk/; revision=12507
2001-08-29 01:30:26 +00:00
fd7cce6091 Added "hit_count" to ECompletionMatch. Used by search
2001-08-16  Jon Trowbridge  <trow@ximian.com>

        * gal/e-text/e-completion-match.h: Added "hit_count" to
        ECompletionMatch.  Used by search refinement/unrefinement.

	* gal/e-text/e-completion.c (e_completion_refine_search): Added.
	Handle automatic search refinements.
	(e_completion_unrefine_search): Added.  Handle automatic search
	"unrefinements", or reversions.
	(e_completion_begin_search): Check if the refinement or
	unrefinement operations can be used to handle the search.  Emit
	"request_search" at the end of the call.
	(e_completion_class_init): Added a new signal "request_search".
	"begin_search" is now purely informational, telling views that a
	series of matches and an "end_search" are forthcoming.

	* configure.in: Increment version of 0.10.99.3.

svn path=/trunk/; revision=12116
2001-08-16 19:47:57 +00:00
0c1a805875 bumped up to 0.10.99.3
2001-08-09  jacob berkman  <jacob@ximian.com>

	* configure.in: bumped up to 0.10.99.3

	* gal/e-text/e-completion-view.c (e_completion_view_init): init
	matches array
	(e_completion_view_destroy): free matches array
	(e_completion_view_disconnect): disconnect from the clear and
	lost_match signals
	(e_completion_view_clear_choices): fixup for ptr array
	(e_completion_view_set_cursor_row): ditto
	(e_completion_view_select): ditto
	(e_completion_view_key_press_handler): ditto
	(clear_completion_cb): handle the clear signal
	(lost_completion_cb): remove a row from the model
	(table_row_count): fixup for ptr array
	(table_value_at): ditto
	(e_completion_view_construct): connect to clear and lost
	completion signals
	(e_completion_view_set_width): ptr array fixup again

	* gal/e-text/e-completion.c (e_completion_class_init): add new
	clean / lost completion signals
	(e_completion_init): initialize the matches array
	(e_completion_destroy): free the matches array
	(e_completion_add_match): fixup for matches being a GPtrArray
	(e_completion_clear_matches): ditto
	(e_completion_clear): new function to clear the list of matches
	(e_completion_foreach_match): fixup for ptrarray
	(e_completion_restart): ditto
	(e_completion_found_match): if we are at the limit return first,
	rather than adding and then unreffing.  there very well could be
	some weird crashes this caused but it is kind of unlikely.
	(e_completion_lost_match): new function to forget about a match
	(e_completion_end_search): add a comment on why this is broken

	* gal/e-text/e-entry.c (e_entry_text_keypress): only start a
	delayed completion if our completion timeout is >= 0.  this
	provides a way for the completion starting / stopping to be
	controlled by something other than the EEntry (ie, file-sel)

svn path=/trunk/; revision=11843
2001-08-09 21:16:13 +00:00
9ca73ebd87 Bumped version up to 0.10.99.2.
2001-08-09  Jon Trowbridge  <trow@ximian.com>

	* configure.in: Bumped version up to 0.10.99.2.

	* gal/e-text/e-entry.c (e_entry_class_init): Added
	"completion_popup" signal.
	(e_entry_show_popup): Emit "completion_popup" signal if the popup
	has appeared or disappeared.
	(e_entry_enable_completion_full): Listen for "cancel_completion"
	signals from our model, and disable our completion if get one.
	(e_entry_completion_popup_is_visible): Added.  Returns TRUE if the
	completion popup is on the screen.

	* gal/e-text/e-text-model.c (e_text_model_class_init): Added
	"cancel_completion" signal.
	(e_text_model_cancel_completion): Added.  Emits
	"cancel_completion" signal.

svn path=/trunk/; revision=11824
2001-08-09 06:44:59 +00:00
2d4b0e2c4b Quintuple sigh. See below.
2001-08-09  Federico Mena Quintero  <federico@ximian.com>

	* gal/e-text/e-entry.c (e_entry_destroy): Quintuple sigh.  See below.

	* gal/util/e-bit-array.c (eba_destroy): Sextuple sigh.

svn path=/trunk/; revision=11815
2001-08-09 05:21:41 +00:00
b2dc9932c2 avoid freed memory reading, when you call it like
2001-08-02  Radek Doulik  <rodo@ximian.com>

	* gal/e-text/e-completion-match.c (e_completion_match_set_text):
	avoid freed memory reading, when you call it like
	e_completion_match_set_text (match,
	e_completion_match_get_match_text (match), tmp);

svn path=/trunk/; revision=11571
2001-08-02 10:25:36 +00:00
109c8d5aa6 Properly ref the font we pass in as an ARG_FONT_E. (_do_tooltip): Removed
2001-07-25  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-text.c (e_text_set_arg): Properly ref the font we
	pass in as an ARG_FONT_E.
	(_do_tooltip): Removed some crack.  We no longer have to manually
	ref the font. The ref-counting now happens inside the set_arg
	function, as it should.
	(e_text_destroy): Set text->font to NULL after unrefing it.

2001-07-25  Jon Trowbridge  <trow@ximian.com>

        * e-cell-text.c (ect_unrealize): Set text_view->font to NULL
        after we unref it.

svn path=/trunk/; revision=11393
2001-07-25 07:27:04 +00:00
adbaa361ed Removed some debugging spew I committed by mistake.
2001-07-20  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-completion-view.c (e_completion_view_set_width): Removed
	some debugging spew I committed by mistake.

svn path=/trunk/; revision=11293
2001-07-21 04:53:30 +00:00
efb34b1073 Change window policy to allow the completion window to shrink when the
2001-07-20  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-entry.c (e_entry_enable_completion_full): Change
	window policy to allow the completion window to shrink when the
	number of options decreases.

	* gal/e-text/e-completion-view.c (e_completion_view_construct):
	Removed some obsolete code.

svn path=/trunk/; revision=11292
2001-07-21 04:46:58 +00:00
8b8193e3c0 Start editing immediately on a button_press that grabs the focus.
2001-07-15  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (e_text_event): Start editing immediately on
	a button_press that grabs the focus.  e_canvas_item_grab_focus
	doesn't seem to get us the focus event until the event loop.
	Fixes Ximian bug #1766.

svn path=/trunk/; revision=11111
2001-07-15 09:38:05 +00:00
8feacdf535 For E_TEP_END_OF_BUFFER, use the length in bytes, not the length in
2001-07-09  Federico Mena Quintero  <federico@ximian.com>

	* gal/e-text/e-text.c (_get_position): For E_TEP_END_OF_BUFFER,
	use the length in bytes, not the length in characters --- this
	function is supposed to return byte offsets.

svn path=/trunk/; revision=10941
2001-07-10 01:27:16 +00:00
23bb03e993 Destroy the tooltip if we're the owner when we're destroyed. Also, keep a
2001-07-07  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_destroy):
	Destroy the tooltip if we're the owner when we're destroyed.
	Also, keep a reference to the text object in case we get a signal
	on the window after the text object is destroyed.

	* gal/widgets/e-canvas.c (e_canvas_destroy): Hide the tooltip if
	there is one when the canvas is destroyed.

svn path=/trunk/; revision=10888
2001-07-07 22:21:12 +00:00
29344f2ea8 Don't scroll to the cursor on grab, ungrab, noop, and copy commands.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (e_text_command): Don't scroll to the cursor
	on grab, ungrab, noop, and copy commands.

svn path=/trunk/; revision=10808
2001-07-05 15:31:23 +00:00
5847ef8566 If lines is NULL here split into lines and just return that the point is
2001-07-03  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (e_text_point): If lines is NULL here split
	into lines and just return that the point is outside this text
	object.

svn path=/trunk/; revision=10730
2001-07-03 04:43:42 +00:00
c187a911c8 Do nothing if passed NULL. (e_completion_match_compare): Move the
2001-06-29  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-completion-match.c (e_completion_match_unref): Do
        nothing if passed NULL.
	(e_completion_match_compare): Move the sort_major comparison out
	to make it the primary sort key (followed by score and then
	sort_minor).
	(e_completion_match_compare_alpha): Move the sort_major comparison
	out to make it the primary sort key.

svn path=/trunk/; revision=10625
2001-06-30 05:01:02 +00:00
dea54a3fdf Removed unused frame variable.
2001-06-09  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-completion-view.c (e_completion_view_construct):
	Removed unused frame variable.

svn path=/trunk/; revision=10174
2001-06-09 10:35:25 +00:00
04aed95972 Turned off alternating row colors in our ETable specification.
2001-06-08  Jon Trowbridge  <trow@ximian.com>

        * gal/e-text/e-completion-view.c: Turned off alternating row
        colors in our ETable specification.

        * gal/e-text/e-completion-match.c (e_completion_match_compare_alpha):
        Fix the sort routine to properly use the major & minor keys for
        sorting grouped elements with the same match text.  I had this all
        wrong.

svn path=/trunk/; revision=10159
2001-06-08 18:31:27 +00:00
011e2ddb2e we can ignore the border, as e-text takes care of that for us
2001-06-07  jacob berkman  <jacob@ximian.com>

	* gal/e-text/e-entry.c (canvas_size_allocate): we can ignore the
	border, as e-text takes care of that for us
	(canvas_size_request): correctly handle when borders should be
	drawn

	* gal/e-text/e-completion-view.c (e_completion_view_paint): fix a
	small bug in the drawing-2-pixel-border change to my patch

svn path=/trunk/; revision=10149
2001-06-07 15:50:51 +00:00
35e7e49201 Applied patch from Jacob Berkman to un-offset the completion popup and add
2001-06-06  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-entry.c:
	* gal/e-text/e-completion-view.c: Applied patch from Jacob Berkman
	to un-offset the completion popup and add a border around it.  I
	tweaked it slightly to make the border two pixels thick instead of
	one.  (Which I like, but might annoy everyone else.  We'll see.)

svn path=/trunk/; revision=10133
2001-06-06 17:57:19 +00:00
f90d524db3 Oops. Forgot to remove some debugging code before committing.
svn path=/trunk/; revision=10119
2001-06-05 17:48:07 +00:00
dc04c9c3fa Small changes throughout to use ECompletionMatch.
2001-06-05  Jon Trowbridge  <trow@gnu.org>

	* gal/e-text/e-entry.c: Small changes throughout to use
	ECompletionMatch.

	* gal/e-text/e-completion-view.c: Small changes throughout
	to use ECompletionMatch.

	* gal/e-text/e-completion.c: Small changes throughout to use
	ECompletionMatch.

	* gal/e-text/e-completion-match.h:
	* gal/e-text/e-completion-match.c: Added.  A struct to contain
	completion matches.  This lets us more easily pass around
	information between the various bits of completion machinery.

svn path=/trunk/; revision=10118
2001-06-05 17:46:56 +00:00