Commit Graph

449 Commits

Author SHA1 Message Date
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
a6459db919 Define `E_TYPE_SHORTCUT_BAR'.
svn path=/trunk/; revision=2795
2000-05-04 11:37:58 +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
91310499b3 EIconBar/EShortcutBar constification.
svn path=/trunk/; revision=2792
2000-05-04 07:09:53 +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
5801d07985 Fixed EShortcutBar API: the icon callback function now gets a `const
char *' url (instead of just a `char *') and a closure.

svn path=/trunk/; revision=2790
2000-05-04 06:16:33 +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
848cacc490 set and reset the GTK_HAS_FOCUS flag. We now get focus_out events
2000-05-02  Damon Chaplin  <damon@helixcode.com>

        * e-canvas.c (e_canvas_focus_in):
        (e_canvas_focus_out): set and reset the GTK_HAS_FOCUS flag. We now get
        focus_out events correctly.

svn path=/trunk/; revision=2758
2000-05-02 22:26:16 +00:00
855b85657d Set G_LOG_DOMAIN in following files.
addressbook/demo/Makefile.am
 addressbook/printing/Makefile.am
 camel/Makefile.am
 camel/providers/MH/Makefile.am
 camel/providers/maildir/Makefile.am
 camel/providers/mbox/Makefile.am
 camel/providers/nntp/Makefile.am
 camel/providers/pop3/Makefile.am
 camel/providers/sendmail/Makefile.am
 camel/providers/smtp/Makefile.am
 composer/Makefile.am
 e-util/Makefile.am
 filter/Makefile.am
 libibex/Makefile.am
 mail/Makefile.am
 shell/Makefile.am
 tests/Makefile.am
 tests/ui-tests/Makefile.am
 widgets/e-table/Makefile.am
 widgets/e-text/Makefile.am
 widgets/meeting-time-sel/Makefile.am
 widgets/shortcut-bar/Makefile.am

svn path=/trunk/; revision=2756
2000-05-02 21:34:01 +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
0ad8dad44a + * widgets/e-text/e-text.c (e_text_destroy): Kill text->timer and
+	text->timeout on destroy.
+
+	* e-shell-view.c (bonobo_widget_is_dead): Helper function to see
+	whether a bonobo widget is a zombie (ie the remote bonobo control
+	died).
+	(e_shell_view_set_view): Try to respawn dead bonobo widgets.

svn path=/trunk/; revision=2638
2000-04-26 19:28:22 +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
85eafe5cb2 add e-popup-menu.[ch]
svn path=/trunk/; revision=2635
2000-04-26 15:03:27 +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
7455842584 oops, silly me.
svn path=/trunk/; revision=2576
2000-04-24 03:13:53 +00:00
7c309e43b2 + * widgets/Makefile.am: Added e-paned directory.
+
+	* default_user/Makefile.am: new file.
+
+	* default_user/Main_Shortcuts.xml: New file; is used to fill the
+	shortcut bar's "main shortcuts" pane.
+
+	* default_user/Other_Shortcuts.xml: New file, used to fill the
+	shortcut bar's "other shortcuts" pane.
+
+	* default_user/Inbox.mbox: New file. This is the first message a
+	new user will see when they fire up Evolution. Needs work.
+
+	* Makefile.am: added default_user directory.
+	* configure.in: same.
+
+	* e-paned.c: New file. Makes a GtkPaned with more than two
+	children.
+	* e-paned.h: same.
+
+	* Makefile.am: added e-paned.[ch].
+
+	* e-shell-view.h: Added hpaned and treeview widgets to
+	EShellView. Added e_shell_view_toggle_shortcut_bar() and
+	e_shell_view_toggle_treeview().
+
+	* e-shell-view.c (e_shell_view_setup_shortcut_display): Use EPaned
+	widget to house our shortcut bar.
+	(e_shell_view_toggle_shortcut_bar): New function; toggles whether
+	the shortcut bar is showing.
+	(e_shell_view_toggle_treeview): Same, for the treeview (NYI).
+	(e_shell_view_new): Put the notebook view in our EPaned widget.
+
+	* e-shell-view-menu.c (esv_cmd_toggle_shortcut_bar): New function;
+	toggles whether the shortcut bar is viewed.
+	(esv_cmd_toggle_treeview): Same, but with the treeview.  Added
+	menuitems in the "view" menu to allow access to the above.
+

svn path=/trunk/; revision=2575
2000-04-24 03:10:30 +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
a2ee0e2ec9 Use "e-minicard" as the log domain.
2000-04-18  Federico Mena Quintero  <federico@helixcode.com>

	* gui/minicard/Makefile.am (INCLUDES): Use "e-minicard" as the log
	domain.

	* gui/component/Makefile.am (INCLUDES): Use
	"evolution-addressbook" as the log domain.

	* backend/pas/Makefile.am: Build libpas.a, not a shared library.
	Do not install any header files.
	(INCLUDES): Remove spurious include paths.

	* backend/pas/*.[ch]: Fix includes.

	* backend/ebook/Makefile.am: Do not install the test programs.
	Fixed some include weirdness.

	* backend/ebook/*.[ch]: Fix includes.

	* contact-editor/Makefile.am (INCLUDES): Set the log domain to
	"contact-editor".
	(INCLUDES): Fix.

	* contact-editor/*.[ch]: Fix includes.

	* gui/minicard/*.[ch]: Fix includes.

svn path=/trunk/; revision=2529
2000-04-20 23:18:51 +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
98a15f3533 Shut up CVS
svn path=/trunk/; revision=2460
2000-04-16 17:29:51 +00:00
13a168017c added buttons to test moving/reordering groups.
2000-04-16  Damon Chaplin  <damon@helixcode.com>

        * test-shortcut-bar.c: added buttons to test moving/reordering groups.

        * e-shortcut-bar.c (e_shortcut_bar_on_drag_end): new function to free
        the dragged name & URL when the drag is finished.

        * e-group-bar.c (e_group_bar_get_increment): fixed bug when distance
        was 0. Should just return 0.
        (e_group_bar_set_current_group_num): added animate option and finished.
        (e_group_bar_unmap): called e_group_bar_stop_all_animation().
        (e_group_bar_reorder_group): finished.

        * e-icon-bar-text-item.[hc]: removed, since we now use EText.

svn path=/trunk/; revision=2459
2000-04-16 13:21:26 +00:00
9ee0c77a74 Add realize. (e_canvas_realize): Set the back pixmap to NULL to reduce
2000-04-16  Anders Carlsson  <andersca@gnu.org>

      * e-canvas.c (e_canvas_class_init): Add realize.
      (e_canvas_realize): Set the back pixmap to NULL to reduce flicker.

svn path=/trunk/; revision=2456
2000-04-16 00:39:00 +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
ef362daa79 Do not use the parent thingie, because it might be like anything. And
2000-04-15  Miguel de Icaza  <miguel@gnu.org>

	* e-group-bar.c (e_group_bar_realize): Do not use the parent
	thingie, because it might be like anything.  And anything can be
	like any visual, and we dont like want any visual here.

svn path=/trunk/; revision=2453
2000-04-15 05:53:20 +00:00
463e00c278 Apply some loving action when it comes to visuals and colormaps. Yes, we
2000-04-15  Miguel de Icaza  <miguel@gnu.org>

	* e-shortcut-bar.c
	(e_shortcut_bar_add_group): Apply some loving action when it comes
	to visuals and colormaps.  Yes, we got one of those machines
	--again--.  Sigh.  This is what you get when you have been away
	from the Indy.  The whole thing is breaking left and right.

	Hopefully, Gtk 1.4 fixes all of this, by always running in the
	slowest visual it can find.

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

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

svn path=/trunk/; revision=2452
2000-04-15 05:33:04 +00:00
9d8f1fa7d5 Add our own ChangeLog
svn path=/trunk/; revision=2451
2000-04-15 05:32:41 +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
879dbf98d7 Moved some logic a bit. Minor changes.
2000-04-11  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Moved some logic a bit.  Minor changes.

svn path=/trunk/; revision=2396
2000-04-11 19:44:35 +00:00
ee070bdf74 e-text.c: Recalc bounds when changing the width/clip_width
forward clicks on the tooltip to the pareent item
tooltip obeys parents line_wrap and max_lines
e_text_point returns 0 when pointer is on the item

svn path=/trunk/; revision=2394
2000-04-11 18:28:59 +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
5485ba72d9 Changed some incorrect gtk_object_refs and gtk_object_unrefs into
2000-04-10  Christopher James Lahey  <clahey@helixcode.com>

	* addressbook/backend/ebook/e-book-view.c,
	addressbook/backend/ebook/e-book.c: Changed some incorrect
	gtk_object_refs and gtk_object_unrefs into bonobo_object_refs and
	bonobo_object_unrefs.

	* addressbook/backend/pas/pas-card-cursor.c: Changed a
	gtk_object_destroy to a gtk_object_unref.

	* addressbook/gui/minicard/e-minicard-view.c,
	addressbook/gui/minicard/e-minicard-view.h: Set a list pointer to
	NULL after freeing its contents.  Added
	e_minicard_view_remove_selection function.

	* addressbook/gui/minicard/e-reflow.c: Set a list pointer to NULL
	after freeing its contents.

svn path=/trunk/; revision=2386
2000-04-11 00:21:08 +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
a5fef3a82e Added proper keyboard focus handling.
2000-04-10  Christopher James Lahey  <clahey@helixcode.com>

	* e-canvas.c: Added proper keyboard focus handling.

svn path=/trunk/; revision=2377
2000-04-10 19:33:35 +00:00