Commit Graph

139 Commits

Author SHA1 Message Date
eb8d567158 Make multi-line texts display properly. Fixed some mem leaks.
2000-05-08  Christopher James Lahey  <clahey@helixcode.com>

	* e-cell-text.c: Make multi-line texts display properly.  Fixed
	some mem leaks.

svn path=/trunk/; revision=2911
2000-05-08 06:54:46 +00:00
87eebb44a1 free cell.starting_text here to avoid a memory leak.
* e-cell-text.c (ect_draw): free cell.starting_text here to avoid
        a memory leak.

svn path=/trunk/; revision=2898
2000-05-08 03:35:52 +00:00
0216552439 Add a horizontal scrollbar.
2000-05-07  Christopher James Lahey  <clahey@helixcode.com>

	* e-table.c: Add a horizontal scrollbar.

svn path=/trunk/; revision=2892
2000-05-08 00:53:26 +00:00
56f9196ac4 Handle row_inserted and row_deleted signals properly.
2000-05-07  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c, e-table-item.h, e-table.c, e-table.h: Handle
	row_inserted and row_deleted signals properly.

	* e-table-model.c, e-table-model.h: Created the row_inserted and
	row_deleted signals.

	* e-table-sorted-variable.c, e-table-subset-variable.c: Emit the
	row_inserted and row_deleted signals as appropriate.

svn path=/trunk/; revision=2879
2000-05-07 20:49:02 +00:00
cca467781c only to set_value_at if the value is indeed different. (ect_stop_editing):
* e-cell-text.c (ect_accept_edits): only to set_value_at if the
	value is indeed different.
	(ect_stop_editing): free edit->cell.starting_text
	(build_current_cell): initialize edit->cell.starting_text as a
	copy of the initial text.

svn path=/trunk/; revision=2858
2000-05-07 05:03:53 +00:00
85a334557f Killed some warnings.
2000-05-06  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-group-container.c, e-table.c: Killed some warnings.

svn path=/trunk/; revision=2836
2000-05-06 21:27:35 +00:00
1b8139c995 ignore the .pure directory
* addressbook/backend/ebook/.cvsignore,
        addressbook/contact-editor/.cvsignore,
        addressbook/gui/component/.cvsignore,
        addressbook/gui/minicard/.cvsignore,
        addressbook/printing/.cvsignore,
        calendar/cal-client/.cvsignore,
        calendar/gui/.cvsignore,
        calendar/pcs/.cvsignore,
        filter/.cvsignore,
        mail/.cvsignore,
        shell/.cvsignore,
        tests/.cvsignore,
        widgets/e-table/.cvsignore,
        widgets/e-text/.cvsignore,
        widgets/meeting-time-sel/.cvsignore,
        widgets/shortcut-bar/.cvsignore,
        wombat/.cvsignore: ignore the .pure directory

svn path=/trunk/; revision=2812
2000-05-05 11:46:46 +00:00
4a6a526998 use rows here instead of E_TABLE_SUBSET(etsv)->n_map, since the table can
* e-table-sorted-variable.c (etsv_sort): use rows here instead of
	E_TABLE_SUBSET(etsv)->n_map, since the table can be populated by
	the gtk_main_iteration above.  otherwise the vals_closure may not
	be fully populated.

svn path=/trunk/; revision=2809
2000-05-05 06:49:40 +00:00
ccd8e1fedd Add an e_table_group_add_all function and implement it in the different
2000-05-04  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-group-container.c, e-table-group-leaf.c,
	e-table-group.c, e-table-group.h: Add an e_table_group_add_all
	function and implement it in the different ETableGroup classes.

	* e-table-sort-info.c: Make set_nth not call changed twice if it
	needs to allocate more space.

	* e-table-sorted-variable.c, e-table-subset-variable.c,
	e-table-subset-variable.h: Add and implement an
	e_table_subset_variable_add_all command.

	* e-table.c: Use e_table_group_add_all as appropriate.  Fix ETable
	grouping xml to work if there is a text element at the bottom of
	the grouping tree.

svn path=/trunk/; revision=2806
2000-05-05 00:10:32 +00:00
edd558cdd8 Sped up e_cell_text's get_height function.
2000-05-04  Christopher James Lahey  <clahey@helixcode.com>

	* e-cell-text.c: Sped up e_cell_text's get_height function.

svn path=/trunk/; revision=2803
2000-05-04 22:24:10 +00:00
55b79db1f4 Added a height_cache idle loop so that the height_cache will be validated
2000-05-04  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c, e-table-item.h: Added a height_cache idle loop
	so that the height_cache will be validated in the idle loop.

svn path=/trunk/; revision=2794
2000-05-04 08:52:04 +00:00
cb7c636a65 Load all the data to be sorted by before actually doing the sort.
2000-05-04  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-sorted-variable.c: Load all the data to be sorted by
	before actually doing the sort.

svn path=/trunk/; revision=2793
2000-05-04 08:28:36 +00:00
e6f93efbad Fix author information.
2000-05-04  Christopher James Lahey  <clahey@helixcode.com>

	* e-cell-text.c, e-cell-text.h: Fix author information.

	* e-table-group-leaf.c: Set a length threshold of 200.

	* e-table-item.c: Height cache is now actually a map.  Made
	"length_threshold" argument work.  If over the length threshold,
	use the height cache to get a better estimate so that once the
	height cache is full, height estimate is perfect.

svn path=/trunk/; revision=2791
2000-05-04 06:49:31 +00:00
8e733f8305 Add back in main loop calls during sorting.
2000-05-04  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-sorted-variable.c (qsort_callback): Add back in main
	loop calls during sorting.

svn path=/trunk/; revision=2788
2000-05-04 03:31:30 +00:00
1f89b12d0b Replace insert sort completely with a qsort.
2000-05-04  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-sorted-variable.c: Replace insert sort completely with a
	qsort.

svn path=/trunk/; revision=2786
2000-05-04 01:36:06 +00:00
f4204133d9 Changed the insert sort to be binary instead of linear.
2000-05-04  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-sorted-variable.c: Changed the insert sort to be binary
	instead of linear.

svn path=/trunk/; revision=2784
2000-05-04 00:59:10 +00:00
eb5dc08dc9 Made this more reentrant.
2000-04-30  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-item.c: Made this more reentrant.

	* e-table-sorted-variable.c, e-table-sorted-variable.h: Does a
	proper resort when the sorting info changes.

	* e-table.c, e-table.h: Made it so that ETable doesn't destroy and
	recreate the entire table when sorting info changes.

svn path=/trunk/; revision=2704
2000-05-01 04:01:05 +00:00
917d28e2df Fixed some warnings.
2000-04-27  Christopher James Lahey  <clahey@helixcode.com>

	* arrow-down.xpm, arrow-up.xpm, e-cell-text.c, e-cell-toggle.c,
	e-table-col.c, e-table-config.c, e-table-header-item.c: Fixed some
	warnings.

svn path=/trunk/; revision=2659
2000-04-27 17:18:51 +00:00
04195ce9da Added a missing include.
2000-04-26  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-item.c: Added a missing include.

svn path=/trunk/; revision=2637
2000-04-26 15:15:24 +00:00
3c1ddb743e Add argument handling here.
2000-04-24  Miguel de Icaza  <miguel@helixcode.com>

	* e-table.c (e_table_class_init): Add argument handling here.

	* e-table-group-leaf.c (e_table_group_apply_to_leafs): New method.
	Enables us to walk all the children of an ETableGroup.

	* e-table.c (et_get_arg, et_set_arg): Implement ::get and ::set
	methods.
	(e_table_construct_from_spec_file): Now we return the etable.
	(e_table_construct): ditto.
	(et_real_construct): Now we return the ETable.  Returns NULL on
	construct failure.
	(e_table_new): ditto.
	(e_table_new_from_spec_file): ditto.

	* (et_build_grouping_spec): Removed vestige code that still
	contained references to the etable->specification XML code.

	Dumped all the ifdefed out code.

	* e-table.h: Removed ETable->specification finally.

svn path=/trunk/; revision=2632
2000-04-26 14:47:10 +00:00
5f54bb7ea0 Fixed a warning.
2000-04-25  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-size-test.c: Fixed a warning.

	* e-table-item.c: Removed the unnecessary gnome_canvas_update_bbox.

svn path=/trunk/; revision=2598
2000-04-25 07:26:27 +00:00
ef9238e9cc Made the tooltip show up in the correct place and configuration when using
2000-04-24  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Made the tooltip show up in the correct
	place and configuration when using the "max_lines", "anchor"
	(untested), or "justification" arguments.

From a patch by Iain Holmes <ih@csd.abdn.ac.uk>

	* widgets/e-text/e-text-event-processor-emacs-like.c,
	widget/e-text/e-text-event-processor-types.h,
	widgets/e-text/e-text.c, widgets/e-text/e-text.h: Changed C-w and
	C-y to control the X clipboard.  Added double and triple click
	events.

From widgets/e-table/:

2000-04-24  Christopher James Lahey  <clahey@helixcode.com>

	* e-table.c: Fixed some warnings.

svn path=/trunk/; revision=2581
2000-04-24 13:36:11 +00:00
bfef6be0fc Calculate the width of the table from the width of all the columns, and
2000-04-23  Iain Holmes  <ih@csd.abdn.ac.uk>

	* e-table-item.c (eti_bounds): Calculate the width of the table from the
	width of all the columns, and update the eti->width field as appropiate.
	(eti_update): Update the bbox.

svn path=/trunk/; revision=2572
2000-04-23 20:16:37 +00:00
832bcdf998 add table-size-test
* Makefile.am (noinst_PROGRAMS): add table-size-test

	* .cvsignore: add table-size-test.

	* e-cell-text.c (ect_ecent): use e_table_model_is_cell_editable
	instead of E_CELL_EDITABLE.

	* e-cell-toggle.c (etog_event): same.

	* e-cell.c (e_cell_init): don't call e_cell_set_editable.  that
	info comes from the model.
	(e_cell_set_editable): removed function.

	* e-cell.h: remove the E_CELL_EDITABLE flag.  that should be
	retrieved from the model.  also, remove the prototype for
	e_cell_set_editable.

	* e-table-size-test.c: new file, for a stress test of sorts, of a
	large, uneditable e-table.

svn path=/trunk/; revision=2468
2000-04-17 05:53:32 +00:00
50c22a17f0 Propagate mouse wheel events upwards.
2000-04-16  Anders Carlsson  <andersca@gnu.org>

	* e-table-item.c (eti_event): Propagate mouse wheel events upwards.

	* e-table.c (et_real_construct): Use a GtkScrolledWindow here
	instead of a GtkScrollbar, since it makes mouse wheel scrolling
	much easier.

svn path=/trunk/; revision=2463
2000-04-16 20:27:11 +00:00
a0cca95826 + * addressbook/gui/component/addressbook.c
+	(search_entry_activated): New function. Gets called when the quick
+	search entry is called on to perform a search.
+	(make_quick_search_widget): New function; returns a "quick search"
+	widget.
+	(control_activate): During the construction of the toolbar, a
+	"quick search" widget is included.
+
+	* e-table.c (et_xml_to_header): sanity-check our parameters.
+	(et_grouping_xml_to_sort_info): same.
+	(et_real_construct): Bail if we couldn't get the children we
+	wanted.

svn path=/trunk/; revision=2455
2000-04-15 21:51:58 +00:00
b8681b4d25 Added a row height cache.
2000-04-14  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-item.c, e-table-item.h: Added a row height cache.

svn path=/trunk/; revision=2443
2000-04-15 00:10:19 +00:00
a7c2eba660 Make `e_table_construct()' work by passing the correct size argument
to `xmlParseMemory()'.

svn path=/trunk/; revision=2442
2000-04-14 22:52:16 +00:00
d870ec752c Switch the parent object to be a GtkTable. (et_real_construct): apply
2000-04-14  Miguel de Icaza  <miguel@gnu.org>

	* e-table.c, e-table.h: Switch the parent object to be a GtkTable.
	(et_real_construct): apply massaging and some loving action to
	make the thing behave as a GtkTable.
	(e_table_init): More love.

svn path=/trunk/; revision=2431
2000-04-14 19:46:55 +00:00
fcc1befdb1 Remove test for source. We will fix this later.
2000-04-12  Miguel de Icaza  <miguel@gnu.org>

	* e-table-header-item.c (ethi_drag_motion): Remove test for
	source.  We will fix this later.

svn path=/trunk/; revision=2413
2000-04-13 01:28:13 +00:00
969fb39532 Reset resize_guide here.
2000-04-12  Miguel de Icaza  <miguel@gnu.org>

	* e-table-header-item.c (ethi_end_resize): Reset resize_guide here.

svn path=/trunk/; revision=2405
2000-04-12 05:27:59 +00:00
215ecb48eb you need the latest gdk-pixbuf to build evolution now.
you need the latest gdk-pixbuf to build evolution now.

2000-04-11  Larry Ewing  <lewing@helixcode.com>

	* widgets/e-table/e-cell-toggle.c (etog_draw): update for new
	gdk-pixbuf.  Added a disabled chuck of code to do alpha blending
	on pixmaps.

	* widgets/shortcut-bar/e-icon-bar.c (flatten_alpha): update for
	new gdk-pixbuf.

svn path=/trunk/; revision=2397
2000-04-11 21:48:49 +00:00
33d700d2ea Add files
svn path=/trunk/; revision=2391
2000-04-11 14:40:59 +00:00
889cb0a633 Add group indent width here. (is_pointer_on_division): Use the group
2000-04-11  Miguel de Icaza  <miguel@helixcode.com>

	* e-table-header-item.c (ethi_add_destroy_marker): Add group
	indent width here.
	(is_pointer_on_division): Use the group indent here, so the
	resize pointer is shown at the correct time.
	(TOLERANCE): Bump it up to 3
	(draw_button): Do not paint an arrow if there is an icon present,
	and not enough space to paint.

2000-04-10  Miguel de Icaza  <miguel@helixcode.com>

	* e-table-header-item.c (make_shapped_window_from_xpm): New
	routine, creates a shapped mask window from an xpm buffer.
	(ethi_add_drop_marker): New version, uses shaped windows instead
	of canvas items to signal the drop location.
	(ethi_maybe_start_drag): Disable dragging if there is only one
	column left.

svn path=/trunk/; revision=2390
2000-04-11 14:27:13 +00:00
901f107f26 Drop frozen count support from here. (ethi_start_drag): ditto.
2000-04-10  Miguel de Icaza  <miguel@gnu.org>

	* e-table-header-item.c (ethi_drag_motion): Drop frozen count
	support from here.
	(ethi_start_drag): ditto.

	* e-table-header.h: Kill frozen_count.

svn path=/trunk/; revision=2385
2000-04-11 00:07:41 +00:00
01bf08bdbc + * addressbook/gui/component/addressbook.c (addressbook_factory):
+	Added gtk_widget_push/pop_colormap/visual, which I assume is
+	necessary for canvas use.
+
+	* folder-browser.c (folder_browser_new): set folder_browser->uri
+	to NULL, so that we know when to free it.
+
+	* e-table-col.c (e_table_col_new_with_pixbuf): ref etc->ecell,
+	like in e_table_col_new, since that same ECell is unref'd in
+	etc_destroy().
+

svn path=/trunk/; revision=2350
2000-04-09 06:47:20 +00:00
742e8fab22 Separated some functions into an xml bit and a generic bit.
2000-04-08  Christopher James Lahey  <clahey@helixcode.com>

	* e-table.c: Separated some functions into an xml bit and a
	generic bit.

svn path=/trunk/; revision=2346
2000-04-09 01:37:37 +00:00
fe016cce58 Got rid of some warnings.
2000-04-06  Christopher James Lahey  <clahey@helixcode.com>

	* test-cols.c, test-table.c: Got rid of some warnings.

	* e-table-group-container.c, e-table-group-container.h,
	e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c,
	e-table-group.h, e-table-header-item.c, e-table-header-item.h,
	e-table-sort-info.c, e-table-sort-info.h,
	e-table-sorted-variable.c, e-table-sorted-variable.h, e-table.c,
	e-table.h: Changed ETableSortInfo to not use xml internally.

svn path=/trunk/; revision=2305
2000-04-06 08:00:35 +00:00
e755dcdaac Update TODO, add Chris to the author list
svn path=/trunk/; revision=2303
2000-04-06 06:47:12 +00:00
bbc6d63ef0 Load the icons from the installation path, not form the GNOME-libs
2000-04-06  Miguel de Icaza  <miguel@gnu.org>

	* shell/e-shortcut.c (shell_icon_cb): Load the icons from the
	installation path, not form the GNOME-libs installation prefix.
	(shell_icon_cb): Memory leak fix.

	* shell/Makefile.am (imagesdir): Pass the EVOLUTION_IMAGES
	installation directory here.

	* art/Makefile.am (images_DATA): Renamed from pixmaps to images.

2000-04-06  Miguel de Icaza  <miguel@gnu.org>

	* message-list.c: Stick pixmaps here.

	* mail-display.c (embeddable_destroy_cb): Replaced C++ comments
	with C comments.

	* message-list.c (load_internal_images): New function, loads images.
	(message_list_init_renderers): Load images, fix previous attempt
	at loading images.

	* Makefile.am (dist-hook): Added distribution of pixmaps.

	* pixmaps: New directory, used to hold the XPMs we ship with.

	* pixmaps/envelope-closed.xpm, pixmaps/envelope-open.xpm: Tigert's
	envelopes incorporated.
2000-04-06  Miguel de Icaza  <miguel@gnu.org>

	* e-cell-text.c: Killed ARG_EDITABLE.
	(ect_event): Updated to new editable setup.
	(e_cell_text_new): Kill editable argument.

	* e-cell-toggle.c (etog_event): Handle editability here

	* e-cell-text.h: Removed editable bit field from here, it is now
	taken care at the e-cell level.

	* e-cell.c (e_cell_set_editable): New function.
	(e_cell_init): Set editable to TRUE by default.

	* test-check.c (check_test): update to new api

	* test-table.c (table_browser_test): ditto.
	(do_e_table_demo): ditto.

	* test-cols.c (multi_cols_test): ditto

svn path=/trunk/; revision=2302
2000-04-06 06:46:20 +00:00
0d327d6fc3 Fixed some referencing and lifetime issues.
2000-04-04  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-minicard/e-minicard.c: Fixed some referencing and
	lifetime issues.

From widgets/e-table:

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

	* e-table-text-model.c: Make this assert a bit more readable.

	* e-table-item.c: Fix update loop behavior.

svn path=/trunk/; revision=2291
2000-04-05 01:21:28 +00:00
cd8753df96 Love, part 3
svn path=/trunk/; revision=2273
2000-03-31 22:42:04 +00:00
1c3d76dfbd Love realization
svn path=/trunk/; revision=2272
2000-03-31 22:28:38 +00:00
df75a67ff6 More love
svn path=/trunk/; revision=2271
2000-03-31 22:06:02 +00:00
bf794358e2 More work
svn path=/trunk/; revision=2266
2000-03-31 04:49:36 +00:00
8078ec7c1f Add so I can go to the chillout hack room
svn path=/trunk/; revision=2264
2000-03-30 22:50:40 +00:00
90d2ce7c45 Add new files
svn path=/trunk/; revision=2258
2000-03-30 18:02:09 +00:00
bd040ea142 One liner
svn path=/trunk/; revision=2253
2000-03-30 01:42:04 +00:00
a02608b078 Fix indentation
svn path=/trunk/; revision=2252
2000-03-30 01:35:18 +00:00
c741f30353 + * wombat/Makefile.am: new file.
+	* wombat/wombat.gnorba: Cleaned up.
+
+	* wombat/wombat.c (setup_pcs): filled in the rest.
+
+	* e-table-text-model.c (e_table_text_model_destroy): made
+	assertion more accurate.

svn path=/trunk/; revision=2244
2000-03-29 04:47:57 +00:00