Commit Graph

1057 Commits

Author SHA1 Message Date
6d4840cae8 Changed the variable names here to make it clear that these are view model
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c, e-table-item.h (find_cell): Changed the variable
	names here to make it clear that these are view model and row.
	(eti_event): Added click_count to make it so that if we get two
	clicks in different rows we don't send a double click event.
	(eti_event, view_to_model_row): Set row_guess in a few extra
	places.

svn path=/trunk/; revision=10791
2001-07-05 10:42:36 +00:00
dcb01da05a Make a whole bunch of control keys not start the ETableItem editing.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_event): Make a whole bunch of control keys
	not start the ETableItem editing.

svn path=/trunk/; revision=10789
2001-07-05 08:41:56 +00:00
b530eb4307 Make sure start_row and end_row are within the number of rows in the
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (e_table_item_row_diff): Make sure start_row and
	end_row are within the number of rows in the table.

svn path=/trunk/; revision=10788
2001-07-05 07:05:51 +00:00
e509ad72df Handle an error in construction a little bit better here.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c (e_tree_new, e_tree_new_from_spec_file): Handle an
	error in construction a little bit better here.
	(e_tree_get_cursor): Check for row == -1 here.

svn path=/trunk/; revision=10787
2001-07-05 06:42:56 +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
bacd3a85a4 added functions to set a callback to get the current time, which is used
2001-07-02  Damon Chaplin  <damon@ximian.com>

	* e-calendar-item.c:
	* e-cell-date-edit.c:
	* e-dateedit.c: added functions to set a callback to get the current
	time, which is used instead of localtime(). We need this as we have to
	use our own timezones.

svn path=/trunk/; revision=10728
2001-07-03 04:12:17 +00:00
0c39016124 Only free the root here if it's non-NULL.
2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-sorted.c (ets_destroy): Only free the root here if it's
	non-NULL.

svn path=/trunk/; revision=10726
2001-07-03 04:03:16 +00:00
ae067f4ed9 Made the remove this column menu item greyed out if it's the last column.
2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-item.c (ethi_header_context_menu): Made the
	remove this column menu item greyed out if it's the last column.

svn path=/trunk/; revision=10725
2001-07-03 03:50:27 +00:00
4799dbbf3b Don't send the double click signal if there's no row selected.
2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_event): Don't send the double click signal
	if there's no row selected.

svn path=/trunk/; revision=10712
2001-07-03 02:18:56 +00:00
a344e38cdb *misc/e-filter-bar.c (option_changed): Specified a default size for the
2001-07-02 Anna Marie Dirks <anna@ximian.com>
	*misc/e-filter-bar.c (option_changed): Specified a default size
	for the Advanced Search dialog such that when it first appear, it
	is large enough to view all parts of a search clause without
	the user needing to resize it.

svn path=/trunk/; revision=10703
2001-07-02 21:11:12 +00:00
a5f3fea0ef Take a callback function and user_data so that we can add listeners to
2001-07-02  Jeffrey Stedfast  <fejj@ximian.com>

	* e-charset-picker.c (e_charset_picker_bonobo_ui_populate): Take a
	callback function and user_data so that we can add listeners to
	each of the menu items.

svn path=/trunk/; revision=10702
2001-07-02 21:02:56 +00:00
3b88e97ddc Updated to build e-charset-picker.c
2001-07-02  Jeffrey Stedfast  <fejj@ximian.com>

	* Makefile.am: Updated to build e-charset-picker.c

	* e-charset-picker.[c,h]: Moved here from gal.
	(e_charset_picker_bonobo_ui_populate): New function to populate a
	bonobo-ui with a charset picker menu.

svn path=/trunk/; revision=10687
2001-07-02 18:13:16 +00:00
c5dd7f1185 Calculate the popup position using window coordinates instead of world
2001-07-02  Richard Hult  <rhult@codefactory.se>

	* e-cell-combo.c (e_cell_combo_get_popup_pos): Calculate the popup
	position using window coordinates instead of world coordinates.
	This fixes bug #2613 in ximian's bugzilla, combo box pops up with
	offset if the table is scrolled.

svn path=/trunk/; revision=10671
2001-07-02 08:40:24 +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
a7d41cc36e send signals even if the row/col is -1. (et_drag_drop): same.
2001-06-28  Chris Toshok  <toshok@ximian.com>

	* e-table.c (et_drag_motion): send signals even if the row/col is
	-1.
	(et_drag_drop): same.

	* e-tree.c (et_drag_motion): same.
	(et_drag_drop): same.

svn path=/trunk/; revision=10584
2001-06-29 03:09:48 +00:00
6fa46ef11d Bump version number due to incompatible changes in ETree.
2001-06-27  Peter Williams  <peterw@ximian.com>

        * configure.in: Bump version number due to incompatible changes
        in ETree.


gal/e-table:

2001-06-27  Peter Williams  <peterw@ximian.com>

        * e-tree-selection-model.c (e_tree_selection_model_add_to_selection): New function,
        heavily based on select_single_row.

        * e-tree-selection-model.h: Added prototype;

        * e-tree.c (e_tree_get_model): New accessor function.
        (e_tree_get_selection_model): Same.
        (e_tree_selected_count, e_tree_select_all, e_tree_invert_select): Removed. With
        the accessors these become pointless.

        * e-tree.h: Prototype the functions above. Remove a few functions that
        don't make sense anymore.

svn path=/trunk/; revision=10543
2001-06-27 21:11:34 +00:00
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
36fcd68e24 send the value to e_table_model_set_value_at as a string as in
2001-06-20  Mikael Hallendal  <micke@codefactory.se>

	* e-cell-spin-button.c
	(e_cell_spin_button_step): send the value to
	e_table_model_set_value_at as a string as in e_cell_number.
	(e_cell_spin_button_step_float): send the value to
	e_table_model_set_value_at as a string as in e_cell_number_float.

svn path=/trunk/; revision=10336
2001-06-20 15:56:15 +00:00
fdb10dd6d9 copied the EMap widget verbatim from Ximian Setup Tools. Hmm. Maybe it
2001-06-14  Damon Chaplin  <damon@ximian.com>

	* e-map.[hc]: copied the EMap widget verbatim from Ximian Setup Tools.
	Hmm. Maybe it should go in gal, but its not a very general widget.

	* Makefile.am (INCLUDES): defined MAP_DIR for e-map.c.
	(libemiscwidgets_a_SOURCES): added e-map.[hc].

svn path=/trunk/; revision=10221
2001-06-14 04:06:55 +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
8e3439ab3e Store the connection ID of the "changed" signal in the collection.
2001-05-31  Federico Mena Quintero  <federico@ximian.com>

	* menus/gal-view-menus.c (gal_view_menus_construct): Store the
	connection ID of the "changed" signal in the collection.
	(gal_view_menus_new): Added preconditions.
	(gal_view_menus_construct): Added preconditions.

svn path=/trunk/; revision=10075
2001-05-31 23:12:02 +00:00
5fbaf3bd98 Removed unused variable.
2001-05-31  Federico Mena Quintero  <federico@ximian.com>

	* e-dropdown-button.c (impl_button_press_event): Removed unused
	variable.

	* e-cell-date-edit.c (e_cell_date_edit_rebuild_time_list): Removed
	unused variable.

svn path=/trunk/; revision=10062
2001-05-31 19:49:50 +00:00
0213507193 set allow_newlines on the etext item to false, since we are like an entry
2001-05-31  jacob berkman  <jacob@ximian.com>

	* gal/e-text/e-entry.c (e_entry_init): set allow_newlines on the
	etext item to false, since we are like an entry

svn path=/trunk/; revision=10061
2001-05-31 16:54:28 +00:00
642be56505 Document the fact that this function ref()s the factory and that people
2001-05-28  Federico Mena Quintero  <federico@ximian.com>

	* gal-view-collection.c (gal_view_collection_add_factory):
	Document the fact that this function ref()s the factory and that
	people should unref() it after calling the function if they no
	longer need the factory object.
	(gal_view_collection_display_view): Added preconditions.
	(gal_view_collection_set_storage_directories): Likewise.
	(gal_view_collection_add_factory): Likewise.
	(gal_view_collection_load): Likewise.
	(gal_view_collection_save): Likewise.
	(gal_view_collection_get_count): Likewise.
	(gal_view_collection_get_view): Likewise.
	(gal_view_collection_get_view_item): Likewise.
	(gal_view_collection_append): Likewise.
	(gal_view_collection_delete_view): Likewise.
	(gal_view_collection_copy_view): Likewise.

svn path=/trunk/; revision=10044
2001-05-29 20:48:50 +00:00
a99162af68 Remove row row + i instead of row i. (et_table_rows_inserted): Insert row
2001-05-25  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (et_table_rows_deleted): Remove row row + i instead of
	row i.
	(et_table_rows_inserted): Insert row row + i instead of row row.

svn path=/trunk/; revision=10003
2001-05-25 21:31:10 +00:00
9e14fe9c69 Remove row i instead of row row. Destroy et->group when you get the
2001-05-25  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (et_table_rows_deleted): Remove row i instead of row
	row.  Destroy et->group when you get the changed or
	sort_info_changed signal instead of in the idle handler.

svn path=/trunk/; revision=10002
2001-05-25 20:57:04 +00:00
1ce2d2594c #include <stdlib.h> #include <string.h>. Kill warnings.
2001-05-25  Kjartan Maraas  <kmaraas@gnome.org>

	* gal/widgets/e-font.c: #include <stdlib.h>
	* gal/widgets/e-popup-menu.c: #include <string.h>. Kill warnings.

svn path=/trunk/; revision=9971
2001-05-24 22:09:11 +00:00
562a10c291 #include <string.h> Same here. Kills warnings on newer gcc.
2001-05-25  Kjartan Maraas  <kmaraas@gnome.org>

	* e-table-specification.c: #include <string.h>
	* e-table-state.c: Same here. Kills warnings on newer gcc.

svn path=/trunk/; revision=9970
2001-05-24 22:06:47 +00:00
c28a61bf26 format similar to nautilus
2001-05-24  jacob berkman  <jacob@ximian.com>

	* e-cell-size.c (ecd_get_text): format similar to nautilus

2001-05-23  jacob berkman  <jacob@ximian.com>

	* e-table-group-container.c: internationalize the grouping text
	string

svn path=/trunk/; revision=9966
2001-05-24 18:58:04 +00:00
c5ed45567e allow NULL pixbufs, and draw with crappy alpha
2001-05-22  jacob berkman  <jacob@ximian.com>

	* e-cell-pixbuf.c: allow NULL pixbufs, and draw with crappy alpha

svn path=/trunk/; revision=9939
2001-05-22 23:28:28 +00:00
f384952f1b Made this faster in some cases.
2001-05-22  Christopher James Lahey  <clahey@ximian.com>

	* e-table-sorted.c (ets_proxy_model_rows_deleted): Made this
	faster in some cases.

svn path=/trunk/; revision=9937
2001-05-22 20:22:36 +00:00
bc885bb22e The double_click signal on the table item now emits the model row instead
2001-05-22  Christopher James Lahey  <clahey@ximian.com>

	* e-table-group-leaf.c (etgl_double_click): The double_click
	signal on the table item now emits the model row instead of the
	view row so don't do the view to model conversion here.

svn path=/trunk/; revision=9924
2001-05-22 17:25:36 +00:00
d8e1a022df a similar change to below, which makes it actually work for the case where
2001-05-22  jacob berkman  <jacob@ximian.com>

	* e-table-sorted.c (ets_proxy_model_rows_deleted): a similar
	change to below, which makes it actually work for the case where
	count != 1

svn path=/trunk/; revision=9923
2001-05-22 15:39:24 +00:00
07a5f9979f make the view menuitems radio items of the same group, and allocate the
2001-05-21  Chris Toshok  <toshok@ximian.com>

	* menus/gal-view-menus.c (build_menus): make the view menuitems
	radio items of the same group, and allocate the closure here.
	(free_verbs): only need to free the one DefineViews verb here.
	(closure_free): new function - EListFreeFunc for our
	listenerClosure list.
	(remove_listeners): new function, free our listener list.
	(gvm_destroy): call remove_listeners.
	(gvm_init): init listenerClosures list.
	(toggled_cb): callback for radio items.
	(build_verbs): strip out almost all the code since there's only 1
	verb now.
	(build_stuff): call remove_listeners.

svn path=/trunk/; revision=9916
2001-05-22 04:04:23 +00:00
de5615cd99 increment row each time through the loop so we don't get @count copies of
2001-05-21  Chris Toshok  <toshok@ximian.com>

	* e-table-sorted.c (ets_proxy_model_rows_inserted): increment row
	each time through the loop so we don't get @count copies of @row.

svn path=/trunk/; revision=9912
2001-05-21 23:28:16 +00:00
0b11ddccb9 Killed a warning here. (model_changed, items_inserted): Check if we're
2001-05-19  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-reflow.c (model_changed): Killed a warning here.
	(model_changed, items_inserted): Check if we're empty.

svn path=/trunk/; revision=9891
2001-05-19 12:49:14 +00:00
b63edae65e Validate utf8 to avoid lock-ups. (_get_position): Validate utf8 to avoid
2001-05-14  Jon Trowbridge  <trow@ximian.com>

	* gal/e-text/e-text.c (calc_line_widths): Validate utf8 to avoid
        lock-ups.
   	(_get_position): Validate utf8 to avoid lock-ups.

svn path=/trunk/; revision=9797
2001-05-14 20:57:35 +00:00
f02973aaf4 Try to deal with bad utf8. (_get_position): Try to deal with bad utf8.
2001-05-14  Jon Trowbridge  <trow@ximian.com>

        * e-cell-text.c (_get_position_from_xy): Try to deal with bad
        utf8.
        (_get_position): Try to deal with bad utf8.
        (number_of_lines): Try to deal with bad utf8.
        (split_into_lines): Try to deal with bad utf8.

svn path=/trunk/; revision=9791
2001-05-14 17:12:34 +00:00
9a9a51c562 my computer crashed while commiting this first time.
2001-05-12  Gediminas Paulauskas <menesis@delfi.lt>

	* folder-browser-factory.c: load pixmaps for MessageCopy and
	MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu>
	for a patch.

2001-05-12  Gediminas Paulauskas <menesis@delfi.lt>

	* evolution-mail.xml: add pixmaps for MessageCopy and
	MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu>
	for a patch.

2001-05-12  Gediminas Paulauskas <menesis@delfi.lt>

	* po/POTFILES.in: update with new/moved files.

also:
Removed duplicated DATADIR in mail/Makefile.am
fixed warning in e-search-bar.c in my recent code there

svn path=/trunk/; revision=9783
2001-05-12 10:02:29 +00:00
8b6b6f01bf Make a key press stop the tooltip timeout.
2001-05-11  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_event): Make a key press stop the tooltip
	timeout.

	* e-table-state.c (e_table_state_load_from_node): Make the default
	expansion be one so that if the user doesn't specify any
	expansions they get a uniform expansion.

svn path=/trunk/; revision=9769
2001-05-11 20:07:14 +00:00
d6c788a6b0 Show the date for dates in the future.
2001-05-09  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-date.c (ecd_get_text): Show the date for dates in the
	future.

	* e-tree-memory.c, e-tree-memory.h
	(e_tree_memory_set_node_destroy_func): New function which gets
	called on the data for every node removed from the tree.

svn path=/trunk/; revision=9733
2001-05-09 20:11:01 +00:00
5d4895eb43 Added util/e-sorter-array.lo and widgets/e-reflow-model.lo. Removed
2001-05-07  Christopher James Lahey  <clahey@ximian.com>

	* gal/Makefile.am (libgal_la_LIBADD): Added util/e-sorter-array.lo
	and widgets/e-reflow-model.lo.  Removed
	widgets/e-reflow-sorted.lo.

	* gal/util/Makefile.am (libutil_la_SOURCES): Added
	e-sorter-array.c.
	(libgalinclude_HEADERS): Added e-sorter-array.h.

	* gal/util/e-sorter-array.c, gal/util/e-sorter-array.h: A sorter
	for use with a single compare function to do sorting.

	* gal/util/e-util.c, gal/util/e-util.h
	(e_marshal_INT__OBJECT_POINTER): Added this marshaller.

	* gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added
	e-reflow-model.c.  Removed e-reflow-sorted.c.
	(libwidgetsinclude_HEADERS): Added e-reflow-sorted.h.  Removed
	e-reflow-model.h.

	* gal/widgets/e-reflow-model.c, gal/widgets/e-reflow-model.h:
	Model for EReflow.  Has a number of items and generates canvas
	items on the fly.

	* gal/widgets/e-reflow.c, gal/widgets/e-reflow.h: Major rewrite.
	This now uses a model to generate its canvas items instead of
	having canvas items added to it.  It doesn't create the canvas
	items now until they will be shown on screen.

svn path=/trunk/; revision=9710
2001-05-08 04:56:03 +00:00
10a1eb46a9 Removed EVOLUTION_VERSION from the rest of makefiles. use VERSION instead. So
you must include <config.h>, heh.

and a stil-not-working "fix" for galview menus.

svn path=/trunk/; revision=9707
2001-05-08 00:28:34 +00:00
0a9bafb949 Fix for #2253 (search names not translated), mail-search i18n fixes.
2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* searches.xml: replace title> with _title>. Part of fix to #2253.

2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* mail-search.c: convert search entry to utf8.

	* mail-local.c: d() debugging message.

	* mail-send-recv.c: replace " ..." with "..."

	* Makefile.am: removed EVOLUTION_VERSION.

2001-05-07  Gediminas Paulauskas <menesis@delfi.lt>

	* POTFILES.in: add mail/mail-search.c

2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* misc/e-search-bar.c (add_dropdown), (set_option): first try to
	translate, then if not suceeded -- convert from utf8. This handles
	cases when menuitem needs to be translated (it is passed as N_()), or is
	utf8 search title. However you cannot have a search like "Folders" -- it
	is translated. Part of fix for #2253.

	* misc/e-filter-bar.c: d() debugging strings. Use E_FILTERBAR_ADVANCED
	macro instead of own "Advanced ..." for consistency.

2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* filter-rule.c (xml_decode): allow "_title" in user rules. translate
	them and encode to utf8.
	(get_rule_part_widget): do not call gettext on part->title. It is always
	translated already.

svn path=/trunk/; revision=9706
2001-05-08 00:26:58 +00:00
36e820522e Request an update if just our line widths needed recalculation. This fixes
2001-05-07  Federico Mena Quintero  <federico@ximian.com>

	* gal/e-text/e-text.c (e_text_reflow): Request an update if just
	our line widths needed recalculation.  This fixes the bug where
	the text item would not repaint itself if the canvas lost the
	focus.

svn path=/trunk/; revision=9705
2001-05-08 00:08:19 +00:00