Commit Graph

402 Commits

Author SHA1 Message Date
86236d0687 Made scroll wheel work properly in header.
2000-07-12  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-item.c: Made scroll wheel work properly in
	header.

svn path=/trunk/; revision=4128
2000-07-12 23:03:39 +00:00
e10afbe355 Tried rearranging the casts to try for a more correct computation.
2000-07-12  Christopher James Lahey  <clahey@helixcode.com>

	* e-scroll-frame.c: Tried rearranging the casts to try for a more
	correct computation.

svn path=/trunk/; revision=4107
2000-07-12 04:34:19 +00:00
4cd310350f Removed some debugging printfs.
2000-07-11  Christopher James Lahey  <clahey@helixcode.com>

	* e-canvas-vbox.c: Removed some debugging printfs.

	* e-canvas.c (e_canvas_unrealize): Call parent unrealize method.

svn path=/trunk/; revision=4102
2000-07-12 01:16:42 +00:00
86f093cfb2 Added a missing variable initialization. (That code would have
crashed badly in any circumstance.)

svn path=/trunk/; revision=4066
2000-07-10 22:58:18 +00:00
0b7919fc13 Make sure the ETable is constructed properly, by setting the
arguments in the parent EScrollFrame class.

svn path=/trunk/; revision=4063
2000-07-10 22:57:03 +00:00
cc36af075b Warning cleanup: `#if 0' an unused function and add a missing public
function prototype.

svn path=/trunk/; revision=4060
2000-07-10 22:53:41 +00:00
01e53b8aea Fix a typbraino in the ETableScrolled header file.
svn path=/trunk/; revision=4043
2000-07-10 19:26:19 +00:00
23ca256b7d Add e-table-scrolled.c and e-table-scrolled.h.
2000-07-09  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Add e-table-scrolled.c and e-table-scrolled.h.

	* e-table-item.c: Make sure that find_cell returns FALSE if the
	item doesn't have any cells.

	* e-table-scrolled.c, e-table-scrolled.h: Added a widget to
	contain an ETable and provide scrollbars (for ease of use.)

	* e-table.c, e-table.h: Make this support the scrollable interface
	and not contain its own scrollbars.

svn path=/trunk/; revision=4031
2000-07-10 11:04:18 +00:00
a9cc8f7c2d Put back e_cell_event sometimes when we're not editing.
2000-07-09  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c (eti_event): Put back e_cell_event sometimes when
	we're not editing.

svn path=/trunk/; revision=4019
2000-07-09 16:03:21 +00:00
14f210e058 Don't draw quite as large a "flat_box". If draw_borders is TRUE, cause the
2000-07-09  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Don't draw quite as large a "flat_box".
	If draw_borders is TRUE, cause the cursor to change even if not
	editing.

svn path=/trunk/; revision=4017
2000-07-09 14:43:39 +00:00
eae083de33 Set the dnd_code to something non-null for the ETableHeaderItem.
2000-07-09  Christopher James Lahey  <clahey@helixcode.com>

	* e-table.c: Set the dnd_code to something non-null for the
	ETableHeaderItem.

svn path=/trunk/; revision=4013
2000-07-09 14:27:57 +00:00
80206f6b32 Removed some border padding and set the "draw_borders" argument of the
2000-07-09  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-entry.c: Removed some border padding and set
	the "draw_borders" argument of the contained GtkText.

	* widgets/e-text/e-text.c, widget/e-text/e-text.h: Added a
	"draw_borders" argument which, if set, makes the EText look more
	like a GtkEntry.

svn path=/trunk/; revision=4011
2000-07-09 12:38:16 +00:00
26279f186a Set header canvas scroll region correctly.
2000-07-09  Christopher James Lahey  <clahey@helixcode.com>

	* e-table.c: Set header canvas scroll region correctly.

svn path=/trunk/; revision=4010
2000-07-09 12:36:07 +00:00
af3c0ca939 Several contacts list bugfixes.
svn path=/trunk/; revision=4008
2000-07-09 11:54:25 +00:00
4bd225790a Don't draw drop markers when the layout won't be changed by the drop.
svn path=/trunk/; revision=4005
2000-07-09 10:10:17 +00:00
bc9f58d42a Return "" instead of NULL.
2000-07-09  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text-model.c (e_text_model_real_get_text):
	Return "" instead of NULL.

svn path=/trunk/; revision=4003
2000-07-09 07:17:15 +00:00
7f64833332 Get rid of an unused variable.
svn path=/trunk/; revision=3997
2000-07-09 02:41:32 +00:00
70909df376 When inserting a root node, only call e_table_model_row_inserted if
* e-tree-model.c (e_tree_model_node_insert): When inserting a root
	node, only call e_table_model_row_inserted if root_visible.
	(e_tree_model_node_remove): Call e_table_model_row_deleted before
	removing the row from the row_array, because the chain of signal
	handlers will sometimes need that info.

svn path=/trunk/; revision=3994
2000-07-09 02:05:59 +00:00
9f18b5b934 Don't call e_cell_event if we're not editing.
2000-07-08  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c (eti_event): Don't call e_cell_event if we're not
	editing.

svn path=/trunk/; revision=3991
2000-07-09 01:56:19 +00:00
1150b8d1b3 Commented out some unnecessary and buggy code.
2000-07-08  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c (eti_table_model_changed): Commented out some
	unnecessary and buggy code.

svn path=/trunk/; revision=3988
2000-07-09 01:24:20 +00:00
1b6c15836e comment out true but confused warning about non-scrollable widgets until
* e-scroll-frame.c (e_scroll_frame_add): comment out true but
	confused warning about non-scrollable widgets until Chris and/or
	Federico fix this correctly.
	(e_scroll_frame_size_allocate): If the available space for the
	child is less than the width/height of the frame, give the child
	an allocation of 0 rather than some small negative number cast to
	unsigned.

svn path=/trunk/; revision=3977
2000-07-08 19:18:11 +00:00
053cdfdbc3 Set "anchor" and "fill_clip_rectangle" arguments.
2000-07-07  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-entry.c: Set "anchor" and "fill_clip_rectangle"
	arguments.

	* widgets/e-text/e-text.c, widgets/e-text/e-text.h: Added
	"fill_clip_rectangle" argument which describes whether to accept
	clicks throughout the clipping rectangle.

svn path=/trunk/; revision=3956
2000-07-07 18:39:43 +00:00
a25600d9b5 Fixed some typos.
2000-07-07  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-entry.c: Fixed some typos.

svn path=/trunk/; revision=3949
2000-07-07 16:14:45 +00:00
d692cab641 add a g_return_val_if_fail to etree_node_at_row
svn path=/trunk/; revision=3937
2000-07-07 03:00:52 +00:00
540bde0aff Make this work recursively.
* e-tree-model.c (e_tree_model_node_remove): Make this work
	recursively.

svn path=/trunk/; revision=3935
2000-07-07 02:26:36 +00:00
308228cd4e fix the conditions under which we draw a horizontal line.
2000-07-06  Chris Toshok  <toshok@helixcode.com>

	* e-cell-tree.c (ect_draw): fix the conditions under which we draw
	a horizontal line.

svn path=/trunk/; revision=3929
2000-07-06 23:27:17 +00:00
39d880abe9 Send GDK_BUTTON_RELEASE events to the ecell associated with the cell (if
2000-07-06  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c: Send GDK_BUTTON_RELEASE events to the ecell
	associated with the cell (if it's the cursor.)

svn path=/trunk/; revision=3909
2000-07-06 04:57:37 +00:00
97539df002 Set G_LOG_DOMAIN=__FILE__ rather than "e-title-bar" in all three widgets.
* Makefile.am (INCLUDES): Set G_LOG_DOMAIN=__FILE__ rather than
	"e-title-bar" in all three widgets.

svn path=/trunk/; revision=3897
2000-07-05 20:51:27 +00:00
6f709e4fd7 Added e-entry.c and e-entry.h.
2000-07-03  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/Makefile.am: Added e-entry.c and e-entry.h.

	* widgets/e-text/e-entry.c, widgets/e-text/e-entry.h: New files to
	be a widget containing a text item.

	* widgets/e-text/e-text.c: Fixed some spacing.

svn path=/trunk/; revision=3874
2000-07-03 22:35:47 +00:00
e59563eb7d Added a reflow_compare callback and did removal if you do shift-click on a
2000-07-03  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c: Added a reflow_compare callback and did removal
	if you do shift-click on a selected row that's not the cursor.

svn path=/trunk/; revision=3873
2000-07-03 22:27:25 +00:00
40e24cdab6 New list class with iterators.
2000-07-03  Christopher James Lahey  <clahey@helixcode.com>

	* e-iterator.c, e-iterator.h, e-list-iterator.c,
	e-list-iterator.h, e-list.c, e-list.h: New list class with
	iterators.

	* e-canvas.c: Made it so that you don't get the same selection in
	the selection list more than once.

svn path=/trunk/; revision=3871
2000-07-03 22:25:47 +00:00
fbc6a557a6 Added an extra @allowed_types parameter to the shell's folder
selection dialog, and update the code that uses it accordingly.

svn path=/trunk/; revision=3854
2000-07-02 04:46:36 +00:00
72c913ff20 Add simple deadkey support.
2000-06-29  Jody Goldberg <jgoldberg@home.com>

	* e-canvas.c (e_canvas_init) : Init the InputContext members
	(e_canvas_class_init) : Add a handler for unrealize.
	(e_canvas_focus_in) : enable the input context.
	(e_canvas_focus_out) : enable the input context.
	(e_canvas_realize) : Create an input context.
	(e_canvas_unrealize) : New function to release the input context.

svn path=/trunk/; revision=3817
2000-06-29 22:56:51 +00:00
3649d5dc6d From mail:
2000-06-29  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c, mail-ops.c: Changed the name of
	e_table_select_row to e_table_set_cursor_row.

From widgets/e-table:

2000-06-29  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-click-to-add.c: Made this appear a bit better.

	* e-table-defines.h: Cleaned this up a bit, added
	ETableForeachFunc.

	* e-table-group-container.c, e-table-group-leaf.c,
	e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h,
	e-table.c, e-table.h: Changed e_table_select_row to
	e_table_set_cursor_row.  Changed e_table_get_selected_view_row to
	e_table_get_cursor_row.  Added e_table_selected_row_foreach.

	* e-table-header-item.c: Fixed some warnings.

	* e-table-sorted-variable.c: Removed some unneeded debugging print
	statments.

	* e-tree-example-1.c: Changed e_table_get_selected_view_row to
	e_table_get_cursor_row.

svn path=/trunk/; revision=3799
2000-06-29 19:22:24 +00:00
f704f45bbf Added an unsort command.
2000-06-27  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-item.c: Added an unsort command.

	* e-table-item.c: leave_edit when you loose the cursor.

svn path=/trunk/; revision=3766
2000-06-27 20:54:14 +00:00
e4de45da5f Calculate height including if clip_height is set to -1.
2000-06-26  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Calculate height including if
	clip_height is set to -1.

From addressbook/ChangeLog:

2000-06-26  Christopher James Lahey  <clahey@helixcode.com>

	* contact-editor/e-contact-editor-categories.c,
	addressbook/gui/component/e-cardlist-model.c: Added
	value_to_string handlers.

	* demo/addressbook-widget.c, demo/demo.c: Removed usage of "x" and
	"y" arguments.

	* addressbook/gui/component/addressbook.c: Activated Click To Add
	and set the click to add message.

	* addressbook/gui/component/e-addressbook-model.c: Added
	value_to_string and append_row handlers.

	* addressbook/gui/component/e-select-names.c: Added a column.

From calendar/ChangeLog:

2000-06-26  Christopher James Lahey  <clahey@helixcode.com>

	* gui/calendar-model.c: Added an #ifdefed value_to_string handler
	assignment.

From camel/ChangeLog:

2000-06-26  Christopher James Lahey  <clahey@helixcode.com>

	* providers/mbox/camel-mbox-summary.c: Added debugging
	information.

From composer/ChangeLog:

2000-06-26  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added e-msg-composer-select-file.h for make
	distcheck.

From e-util/ChangeLog:

2000-06-26  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added e-canvas-vbox.c and e-canvas-vbox.h.

	* e-canvas-vbox.c, e-canvas-vbox.h: New canvas object to act like
	a vbox using the reflow system.

From mail/ChangeLog:

2000-06-26  Christopher James Lahey  <clahey@helixcode.com>

	* message-list.c: Added a value_to_string handler.

From shell/ChangeLog:

2000-06-26  Christopher James Lahey  <clahey@helixcode.com>

	* glade/Makefile.am: Added EXTRA_DIST for make distcheck.

From widgets/e-table/ChangeLog:

2000-06-26  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added e-table-click-to-add.c,
	e-table-click-to-add.h, e-table-one.c, and e-table-one.h.

	* e-table-click-to-add.c, e-table-click-to-add.h: A new canvas
	item that represents a single row that sometimes exists.  It's for
	adding new rows to your table.

	* e-table-example-1.c, e-table-example-2.c, e-table-size-test.c,
	test-check.c, test-cols.c, test-table.c: Added value_to_string handlers.

	* e-table-group-container.c: Use value_to_string to make grouping
	not crash for non string columns.  Made some changes to work
	properly in an ECanvasVbox.

	* e-table-group-leaf.c, e-table-item.c: Made some changes to work
	properly in an ECanvasVbox.

	* e-table-model.c, e-table-model.h: Added append_row and
	value_to_string methods.

	* e-table-one.c, e-table-one.h: Given a source ETableModel, this
	provides a single row model that uses the initialize_value,
	duplicate_value, free_value, and value_is_empty methods of the
	original source to implement set_value and value_at (and proxies
	most of the other methods.)  This is used for ETableClickToAdd.

	* e-table-simple.c, e-table-simple.h: Added append_row and
	value_to_string handlers.  append_row uses a GtkArg instead of a
	parameter to e_table_simple_new.

	* e-table-subset.c: Added append_row and value_to_string handlers.

	* e-table.c, e-table.h: Use a vbox containing an ETableClickToAdd
	and an ETableItem instead of an ETableItem directly.  Only show
	the ETableClickToAdd if the top level of the xml SPEC has the
	attribute click-to-add set to some non-zero integer.
	(click-to-add="1").  Add a "click_to_add_message" argument.

	* e-tree-model.c: Add a commented out value_to_string handler.

From widgets/meeting-time-sel/ChangeLog:

2000-06-26  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added the include path to top_srcdir.

svn path=/trunk/; revision=3744
2000-06-27 00:51:06 +00:00
e5924b4f23 Fix compilation with builddir != srcdir.
svn path=/trunk/; revision=3736
2000-06-26 04:25:38 +00:00
b92cdaf00a draw pixmaps with he right background and selection colors.
2000-06-23  Larry Ewing  <lewing@helixcode.com>

	* e-cell-toggle.c (etog_draw): draw pixmaps with he right
	background and selection colors.

svn path=/trunk/; revision=3709
2000-06-23 16:22:50 +00:00
422046cc58 add icon_at virtual function - it was stupid to make the insert call take
2000-06-23  Chris Toshok  <toshok@helixcode.com>

	* e-tree-model.h, e-tree-model.c: add icon_at virtual function -
	it was stupid to make the insert call take 2 pixbufs.  the model
	should give this information.

	* e-cell-tree.c: get rid of the opened/closed pixbuf stuff.  call
	e_tree_model_icon_of_node.

	* e-tree-example-1.c: add my_icon_at.

	* e-tree-simple.c (simple_icon_at): new function
	(e_tree_simple_new): add icon_at parameter.

	* e-tree-simple.h: add SimpleIconAtFn.

svn path=/trunk/; revision=3707
2000-06-23 07:47:37 +00:00
29a313c41e use the expanded/unexpanded pixbufs as node pixbufs for the first level of
2000-06-23  Chris Toshok  <toshok@helixcode.com>

	* e-tree-example-1.c (create_tree): use the expanded/unexpanded
	pixbufs as node pixbufs for the first level of children, to test
	the drawing.

	* e-tree-model.c (e_tree_model_node_get_closed_pixbuf): new function.
	(e_tree_model_node_get_opened_pixbuf): same.
	(e_tree_model_node_insert): add opened/closed pixbuf argument.
	(e_tree_model_node_insert_before): same.

	* e-tree-model.h: add prototypes for opened/closed pixbuf
	accessors, and add them to the e_tree_model_node_insert_* calls.

	* e-cell-tree.c (ect_draw): add opened/closed pixbuf drawing per node.

svn path=/trunk/; revision=3706
2000-06-23 07:19:11 +00:00
ced77ebe05 Make the table not move around as you resize.
2000-06-22  Christopher James Lahey  <clahey@helixcode.com>

	* e-table.c: Make the table not move around as you resize.

svn path=/trunk/; revision=3696
2000-06-22 20:33:04 +00:00
c74b334a2c Killed a warning.
2000-06-22  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c: Killed a warning.

svn path=/trunk/; revision=3691
2000-06-22 16:30:00 +00:00
cf93af47a5 Remove use of the "x" and "y" arguments to EText.
2000-06-22  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-group-container.c: Remove use of the "x" and "y"
	arguments to EText.

	* e-table-item.c: Properly ref the source_model field.

	* test-check.c, test-cols.c, test-table.c: Remove use of the "x"
	and "y" arguments to ETableHeaderItem.

svn path=/trunk/; revision=3690
2000-06-22 16:24:23 +00:00
588fd23c5c Made the Close button work.
2000-06-21  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-field-chooser-dialog.c: Made the Close button work.

	* e-table-field-chooser.glade, e-table-field-chooser.glade.h:
	Added a text description of this dialog.

svn path=/trunk/; revision=3685
2000-06-21 23:01:29 +00:00
a30a2c1162 Changed this to move the cell to the nearest edge instead of to the left
2000-06-21  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-item.c: Changed this to move the cell to the
	nearest edge instead of to the left of the column it's over.

	* e-table-header.c: Made target_index equal to eti->col_count be a
	valid parameter to e_table_header_move.

svn path=/trunk/; revision=3683
2000-06-21 22:49:34 +00:00
b06d4d48ed Made moving columns to the right work properly.
2000-06-21  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header.c: Made moving columns to the right work
	properly.

svn path=/trunk/; revision=3681
2000-06-21 21:12:40 +00:00
06f77b4aab Fixed some vertical scroll bugs.
2000-06-21  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Fixed some vertical scroll bugs.

svn path=/trunk/; revision=3673
2000-06-21 07:18:28 +00:00
3eed16a6cd Fix a bug with intial vertical scroll.
2000-06-21  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Fix a bug with intial vertical scroll.

svn path=/trunk/; revision=3672
2000-06-21 06:19:58 +00:00
dad705c65c Removed the usage of "x" and "y" arguments to EText.
2000-06-21  Christopher James Lahey  <clahey@helixcode.com>

	* notes/e-note.c, widgets/meeting-time-sel/e-meeting-time-sel.c,
	widgets/shortcut-bar/e-icon-bar.c: Removed the usage of "x" and
	"y" arguments to EText.

	* widgets/e-text/e-text.c, widgets/e-text/e-text.h: Removed the
	"x" and "y" arguments to EText.   Added vertical scrolling.

svn path=/trunk/; revision=3670
2000-06-21 05:37:37 +00:00
e1416310da Fix a minor warning.
2000-06-20  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-group-leaf.c: Fix a minor warning.

	* e-table-item.c: Add to the selection if shift is held down.
	Show cursor when changing sort (or if table changes majorly.)

svn path=/trunk/; revision=3667
2000-06-21 04:48:58 +00:00