Commit Graph

817 Commits

Author SHA1 Message Date
3080e47960 Made it so that if you set the row or col to something not equal to -1, it
2001-02-15  Christopher James Lahey  <clahey@ximian.com>

	* e-table-selection-model.c
	(e_table_selection_model_do_something): Made it so that if you set
	the row or col to something not equal to -1, it makes sure that
	the other one is also not equal to -1.

svn path=/trunk/; revision=8240
2001-02-15 09:34:46 +00:00
d4be90f9b2 This new function updates the minimum width of all of the columns based on
2001-02-13  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header.c, e-table-header.h
	(e_table_header_update_horizontal): This new function updates the
	minimum width of all of the columns based on the data contained in
	that column.

	* e-table.c, e-table.h (changed_idle): Added a
	horizontal_scrolling field.  Call e_table_header_update_horizontal
	if the model changes at all and horizontal_scrolling is set to TRUE.

svn path=/trunk/; revision=8214
2001-02-13 23:15:13 +00:00
0e900049a8 Set policy of scrolled window to be automatic/automatic.
2001-02-13  Christopher James Lahey  <clahey@ximian.com>

	* e-table-scrolled.c (e_table_scrolled_real_construct): Set policy
	of scrolled window to be automatic/automatic.

	* e-table-specification.c, e-table-specification.h (etsp_init):
	Added a horizontal-scrolling attribute.

svn path=/trunk/; revision=8208
2001-02-13 20:23:44 +00:00
9aca6f5902 Fix the crash when ETableItems are destroyed.
2001-02-13  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_destroy): Fix the crash when ETableItems are
	destroyed.

svn path=/trunk/; revision=8207
2001-02-13 18:39:39 +00:00
63b02f6746 Made a width other than the default possible if the children have widths
2001-02-11  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-canvas-vbox.c, gal/widgets/e-canvas-vbox.h: Made a
	width other than the default possible if the children have widths
	larger than the default.

svn path=/trunk/; revision=8171
2001-02-11 06:52:10 +00:00
199ae6dbbb Fix selection so that changing a model row equal to 31 mod 32 works.
2001-02-11  Christopher James Lahey  <clahey@ximian.com>

	* e-table-selection-model.c (change_one_row): Fix selection so
	that changing a model row equal to 31 mod 32 works.

svn path=/trunk/; revision=8170
2001-02-11 05:54:56 +00:00
c2f71c6730 Let e_canvas_item_show_area_delayed deal with a delayed area show instead
2001-02-11  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_cursor_change): Let
	e_canvas_item_show_area_delayed deal with a delayed area show
	instead of dealing with it ourselves.

svn path=/trunk/; revision=8169
2001-02-11 05:53:32 +00:00
114587155d Added this function.
2001-02-11  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-canvas-utils.c, gal/widgets/e-canvas-utils.h
	(e_canvas_item_show_area_delayed): Added this function.

svn path=/trunk/; revision=8168
2001-02-11 05:51:59 +00:00
414408be59 Since gdkevent is a union, casting a smaller struct to a gdkevent caused
2001-02-09  JP Rosevear  <jpr@ximian.com>

	* gal/widgets/e-canvas.c (e_canvas_key): Since gdkevent is a
	union, casting a smaller struct to a gdkevent caused unknown
	memory to be copied around.  fix by copying to a full gdkevent
	structure before calling gdkevent.
	(e_canvas_focus_in): ditto
	(e_canvas_focus_out): ditto

svn path=/trunk/; revision=8153
2001-02-09 22:27:37 +00:00
fb6c1a7afb Add a missing gtk_object_ref.
* e-table-sorter.c (ets_set_arg): Add a missing gtk_object_ref.

svn path=/trunk/; revision=8118
2001-02-08 21:05:03 +00:00
5af829a6d2 Use e_format_number.
2001-02-08  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-number.c (ecn_get_text): Use e_format_number.

svn path=/trunk/; revision=8111
2001-02-08 18:00:23 +00:00
aa92a8935b Set the dnd_code on the header properly.
2001-02-08  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (e_table_setup_header): Set the dnd_code on the header
	properly.

svn path=/trunk/; revision=8110
2001-02-08 17:59:50 +00:00
7eb5320460 Commented out this function since it's not being used.
2001-02-08  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text-model-test.c (describe_model): Commented out
	this function since it's not being used.

svn path=/trunk/; revision=8109
2001-02-08 17:40:01 +00:00
82d69c876f Added a "header" argument to set the label at the top of the dialog.
2001-02-08  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/gal-categories.glade, gal/widgets/e-categories.c
	(ec_set_header): Added a "header" argument to set the label at the
	top of the dialog.

svn path=/trunk/; revision=8108
2001-02-08 17:38:38 +00:00
6827ac920d Don't handle C-Enter.
2001-02-08  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text-event-processor-emacs-like.c
	(e_text_event_processor_emacs_like_event): Don't handle C-Enter.

svn path=/trunk/; revision=8107
2001-02-08 16:48:09 +00:00
3d3ac18e0e Added this function. Made frozen an int so that recursive freezes and
2001-02-08  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-model.c, e-tree-model.h (e_tree_model_show_node): Added
	this function.  Made frozen an int so that recursive freezes and
	thaws behaves properly.

svn path=/trunk/; revision=8106
2001-02-08 16:40:26 +00:00
a48def7054 Store the whole GdkColor instead of just the pixel.
2001-02-07  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_realize): Store
	the whole GdkColor instead of just the pixel.

svn path=/trunk/; revision=8063
2001-02-07 22:16:47 +00:00
de975c303a Added Akira's japanese etc. encodings to e-font
svn path=/trunk/; revision=8056
2001-02-07 19:57:19 +00:00
e8054ecace Create the local directory when saving if it doesn't exist already.
2001-02-06  Christopher James Lahey  <clahey@ximian.com>

	* gal-view-collection.c (gal_view_collection_save): Create the
	local directory when saving if it doesn't exist already.

svn path=/trunk/; revision=8043
2001-02-07 03:31:10 +00:00
2319bdca2e Change encoding from locale encoding to utf8.
2001-02-06  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-date.c (ecd_get_text): Change encoding from locale
	encoding to utf8.

svn path=/trunk/; revision=8033
2001-02-06 22:59:05 +00:00
4a01c75587 Check for nl_langinfo (CODESET). Code taken from glib 1.3 branch.
2001-02-06  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Check for nl_langinfo (CODESET).  Code taken from
	glib 1.3 branch.

	* gal/widgets/e-font.c, gal/widgets/e-font.h (e_locale_encoding):
	Added e_locale_encoding, e_iconv_from_locale, and
	e_iconv_to_locale.

	* gal/widgets/e-unicode.c, gal/widgets/e-unicode.h: Added
	e_utf8_from_locale_string, e_utf8_from_locale_string_sized,
	e_utf8_to_locale_string, e_utf8_to_locale_string_sized.

svn path=/trunk/; revision=8032
2001-02-06 22:57:01 +00:00
ab0f7d1ccb Added e-text-model-test
2001-02-05  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/e-text/.cvsignore: Added e-text-model-test

svn path=/trunk/; revision=8015
2001-02-06 04:36:28 +00:00
0e3786d3ec Ignore test-dropdown-button
2001-02-05  Jeffrey Stedfast  <fejj@ximian.com>

	* .cvsignore: Ignore test-dropdown-button

svn path=/trunk/; revision=8013
2001-02-06 04:31:02 +00:00
88b4d80571 Changed draw_borders from a gboolean to a a guint : 1.
2001-02-05  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-entry.h: Changed draw_borders from a gboolean to a
	a guint : 1.

svn path=/trunk/; revision=7990
2001-02-05 21:31:34 +00:00
a078041da8 Removed unnecessary comment about now non-existant virtual column list.
2001-02-05  Christopher James Lahey  <clahey@ximian.com>

	* gal-define-views-model.h: Removed unnecessary comment about now
	non-existant virtual column list.

svn path=/trunk/; revision=7989
2001-02-05 21:30:15 +00:00
b71f1e3b6d Changed the text to pop up the Field Chooser.
2001-02-05  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-item.c: Changed the text to pop up the Field
	Chooser.

svn path=/trunk/; revision=7988
2001-02-05 21:26:44 +00:00
fdb765da59 Fixed a number of small bugs in how we were saving and loading view
2001-02-05  Christopher James Lahey  <clahey@helixcode.com>

	* gal-view-collection.c: Fixed a number of small bugs in how we
	were saving and loading view collections.

	* gal-view-etable.c (config_changed): Send the changed signal
	properly.
	(gal_view_etable_construct): Duplicate the spec's state here.

svn path=/trunk/; revision=7986
2001-02-05 21:18:25 +00:00
707cce7733 Added a "changed" signal.
2001-02-05  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-config.c, e-table-config.h (dialog_apply): Added a
	"changed" signal.

	* e-table-sort-info.c, e-table-sort-info.h
	(e_table_sort_info_duplicate): Added this function.

	* e-table.c (e_table_set_state_object): Duplicate the state's
	sort_info object here.

svn path=/trunk/; revision=7985
2001-02-05 21:16:13 +00:00
fdde6ab383 Make some private variables static in `ETableSorter'.
svn path=/trunk/; revision=7982
2001-02-05 20:27:09 +00:00
6c2bb13f67 Changed the call to iconv to be char ** instead of const char **.
2001-02-05  Christopher James Lahey  <clahey@helixcode.com>

	* gal/widgets/e-font.c (e_font_to_native), gal/widgets/e-unicode.c
	(e_utf8_from_gtk_string_sized, e_utf8_to_gtk_string_sized):
	Changed the call to iconv to be char ** instead of const char **.

svn path=/trunk/; revision=7970
2001-02-05 14:39:55 +00:00
9a8b904d09 Make this not error out if ecol is not found, but simply return -1.
2001-02-04  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (view_to_model_col): Make this not error out if
	ecol is not found, but simply return -1.
	(eti_event): Don't call view_to_model_col here as we already have
	a model column.

svn path=/trunk/; revision=7960
2001-02-04 20:00:00 +00:00
a58c2446e7 Dont overwrite the end of our bitmap array.
2001-02-02  Not Zed  <NotZed@Ximian.com>

        * e-table-selection-model.c (model_row_deleted): Dont overwrite
        the end of our bitmap array.

svn path=/trunk/; revision=7944
2001-02-02 04:06:40 +00:00
82de3a557c make the segfault caused by double clicking into a critical warning until
2001-01-31  Larry Ewing  <lewing@ximian.com>

	* e-table-item.c (view_to_model_col): make the segfault caused by
	double clicking into a critical warning until it can be fixed.

svn path=/trunk/; revision=7927
2001-01-31 23:24:30 +00:00
7932df2252 added gboolean draw_borders to make it compile, probably some forgotten
2001-01-31  Radek Doulik  <rodo@ximian.com>

	* gal/e-text/e-entry.h: added gboolean draw_borders to make it
	compile, probably some forgotten commit of e-entry.h

svn path=/trunk/; revision=7926
2001-01-31 17:39:23 +00:00
500a985e34 Fixed allocation and placement of text for no bordered text.
2001-01-30  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-entry.c (canvas_size_allocate, et_set_arg): Fixed
	allocation and placement of text for no bordered text.

svn path=/trunk/; revision=7922
2001-01-31 00:36:57 +00:00
1a2f7014e8 Fixed allocation and placement of text window.
2001-01-30  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-entry.c (canvas_size_allocate, et_set_arg): Fixed
	allocation and placement of text window.

	* gal/e-text/e-text.c (e_text_draw): Fixed display of the text.

svn path=/trunk/; revision=7920
2001-01-31 00:00:27 +00:00
2dee35819c Reverted the latest change to EText since we're in feature freeze.
2001-01-30  Christopher James Lahey  <clahey@helixcode.com>

	* Reverted the latest change to EText since we're in feature freeze.

svn path=/trunk/; revision=7912
2001-01-30 11:54:53 +00:00
da03d43325 Made the contained %ETableItem have cursor_mode as
2001-01-30  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-click-to-add.c (etcta_event): Made the contained
	%ETableItem have cursor_mode as %E_TABLE_CURSOR_SPREADSHEET.

	* e-table-defines.h, e-table-item.c, e-table-specification.c:
	Added a new cursor mode E_TABLE_CURSOR_SPREADSHEET.  This is
	accessed using cursor_mode="spreadsheet" in your specification
	xml, as well as by the click_to_add item.  It is identical to
	E_TABLE_CURSOR_SIMPLE, except that tab goes to the next item in
	the table instead of to the next widget.

svn path=/trunk/; revision=7910
2001-01-30 11:37:34 +00:00
8ee392b8a3 Made carriage return finish editing.
2001-01-30  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-click-to-add.c (etcta_event): Made carriage return
	finish editing.

	* e-table-item.c (eti_event): Made carriage return key press
	signal go out before sending it to the selection model.

svn path=/trunk/; revision=7909
2001-01-30 11:14:18 +00:00
b0046a3699 Connect to the model's "position" signal. (e_text_init): Set default value
2001-01-29  Jon Trowbridge  <trow@gnu.org>

	* gal/e-text/e-text.c (e_text_init): Connect to the model's
	"position" signal.
	(e_text_init): Set default value for rgba_object as blue.
	(e_text_destroy): Disconnect model position signal.
	(fix_selection): Some extra sanity checking to keep the selection
	from spilling outside of the bounds of the text string as it
	expands or contracts.  Should be obsolete due to the changes to
	objectify_uris --- but I'll leave this in here for now, in an
	attempt to avoid non-\0-terminated strings, segfaults, and all of
	that fun stuff.
	(e_text_text_model_position): Move our cursor according to the
	suggestions made by our ETextModel, via the "position" signal.
	(text_width_with_objects): Check that text is not NULL.
	(text_draw_with_objects): Accept an extra GdkGC for use in drawing
	objects.
	(e_text_set_arg): Properly handle the "position" signal when
	changing models.
	(e_text_draw): Initialize the GC for drawing objects, if
	necessary.
	(_insert): Comment out the code that adjustes text->selection_*.
	The cursor is now moved by the ETextModel directly via the
	position signal, not by the view.

	* gal/e-text/e-text-model-uri.c (objectify_uris): Add more
	sophisticated uri recognition via regular expressions.
	(objectify_uris): Changed to track position changes as model->text
	expands and contracts along with the objects.  Block the
	objectification of any chunks of text that straddle our current
	position.
	(e_text_model_uri_set_text): Added position info to objectify_uris
	call.
	(e_text_model_uri_insert): Added position info to objectify_uris
	call.
	(e_text_model_uri_insert_length): Added position info to
	objectify_uris call.
	(e_text_model_uri_delete): Added position info to objectify_uris
	call.

	* gal/e-text/e-text-model.c (e_text_model_class_init): Added a
	"position" signal that allows the ETextModel to send cursor
	positioning information back to any view.  We need this for text
	with objects, where the text string can grow and shrink in ways
	that the view doesn't expect.
	(e_text_model_real_insert): Added sanity checking of args and a
	position emission.
	(e_text_model_real_insert_length): Added sanity checking of args
	and a position emission.
	(e_text_model_real_delete): Added sanity checking of args.
	(e_text_model_suggest_position): A wrapper around the "position"
	signal emitter.

svn path=/trunk/; revision=7894
2001-01-29 20:27:38 +00:00
da0a3b24e7 Added e-cell-number.lo
2001-01-29  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added e-cell-number.lo

From gal/e-table/Changelog:

2001-01-29  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am: Added e-cell-number.c and e-cell-number.h.

	* e-cell-number.c, e-cell-number.h: A new cell for rendering
	numbers.

	* e-table-extras.c (ete_init): Added a default number cell.  Made
	the default size cell right aligned.

svn path=/trunk/; revision=7889
2001-01-29 11:39:22 +00:00
1b18f022ca Always include +1 for the size. 0*2 == 0, so malloc returns NULL, which is
2001-01-29  Not Zed  <NotZed@Ximian.com>

        * gal/widgets/e-unicode.c (e_utf8_xml1_decode): Always include +1
        for the size.  0*2 == 0, so malloc returns NULL, which is not what
        we want.

svn path=/trunk/; revision=7885
2001-01-29 09:15:03 +00:00
aba2b5bbeb Update copyright and add myself as the author.
svn path=/trunk/; revision=7877
2001-01-28 13:40:04 +00:00
830dd5dd7a Make the ESearchBar pretty by using the same border for the dropdown
button as the option menu, and adding the right amount of empty space
on the right, to match the size of a scrollbar.  (The latter is just a
dirty ugly bad hack, but it's fine for now.)

svn path=/trunk/; revision=7876
2001-01-28 13:38:07 +00:00
b924182143 Made the scrolling to show the current roll happen in a time out.
2001-01-28  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c, e-table-item.h: Made the scrolling to show the
	current roll happen in a time out.

svn path=/trunk/; revision=7875
2001-01-28 12:38:29 +00:00
3ab2eaeb03 Documented.
svn path=/trunk/; revision=7870
2001-01-28 10:00:47 +00:00
50fea9ab7e Changed the EDropdownButton so that it works more like a standard menu
bar (i.e. the menu is popped up on button_press instead of
button_release).  Now it is also based on GtkToggleButton, so it stays
pushed down when the menu is on the screen.

svn path=/trunk/; revision=7869
2001-01-28 09:58:37 +00:00
a7a767287f Make home and end keys move to the beginning and end of the row if cursor
2001-01-27  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c (eti_event): Make home and end keys move to the
	beginning and end of the row if cursor mode is set to
	E_TABLE_CURSOR_SIMPLE.  Otherwise have %ETableSelectionModel
	handle them.

	* e-table-selection-model.c, e-table-selection-model.h: Added a
	"cursor_mode" argument.
	(e_table_selection_model_key_press): Made home and end keys move
	the beginning and end of the table if cursor_mode is
	E_TABLE_CURSOR_MODE_LINE.

	* e-table.c: Set the cursor-mode argument of our
	%ETableSelectionModel.

svn path=/trunk/; revision=7864
2001-01-27 22:21:10 +00:00
fb5ba5787f cvs remove all files in shortcut-bar/, this widget is now in gal, will be
2001-01-27  Jason Leach  <jasonleach@usa.net>

	* cvs remove all files in shortcut-bar/, this widget is now in
	gal, will be maintained there.

	* Makefile.am (SUBDIRS): Remove shortcut-bar from here.

svn path=/trunk/; revision=7857
2001-01-27 15:18:34 +00:00
b8ea424792 Make the ESearchBar use the new EDropdownButton widget.
svn path=/trunk/; revision=7855
2001-01-27 11:24:13 +00:00