Commit Graph

1265 Commits

Author SHA1 Message Date
Christopher James Lahey c9da559b50 Set new_value = value here to fix a warning.
2001-07-06  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-spin-button.c (e_cell_spin_button_step_float): Set
	new_value = value here to fix a warning.

svn path=/trunk/; revision=10877
2001-07-07 02:54:36 +00:00
Christopher James Lahey 6256a19a7f Changed this to match the changed signal on the ETableConfig object. Fixes
2001-07-06  Christopher James Lahey  <clahey@ximian.com>

	* gal-view-etable.c (config_changed): Changed this to match the
	changed signal on the ETableConfig object.  Fixes bug 4213.

svn path=/trunk/; revision=10876
2001-07-07 02:53:38 +00:00
Christopher James Lahey 7cc506979e Added a "state" argument to allow you to get the state out of the config
2001-07-06  Christopher James Lahey  <clahey@ximian.com>

	* e-table-config.c (config_get_arg): Added a "state" argument to
	allow you to get the state out of the config object.

svn path=/trunk/; revision=10875
2001-07-07 02:53:21 +00:00
Christopher James Lahey b0be7c3db2 Added checks that row and col are >= 0.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-tree.c (e_tree_get_cell_geometry): Added checks that row and
	col are >= 0.

svn path=/trunk/; revision=10809
2001-07-05 16:38:59 +00:00
Christopher James Lahey 29344f2ea8 Don't scroll to the cursor on grab, ungrab, noop, and copy commands.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (e_text_command): Don't scroll to the cursor
	on grab, ungrab, noop, and copy commands.

svn path=/trunk/; revision=10808
2001-07-05 15:31:23 +00:00
Christopher James Lahey 4bb33b390b Call e_table_item_leave_edit here.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-text.c (ect_cancel_edit): Call e_table_item_leave_edit
	here.

svn path=/trunk/; revision=10805
2001-07-05 14:50:57 +00:00
Christopher James Lahey 7c1e139f0f Made it so that the drop marker can show up when dragging a new column to
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-item.c (ethi_drag_motion): Made it so that the
	drop marker can show up when dragging a new column to the leftmost
	position of the table header item.

svn path=/trunk/; revision=10801
2001-07-05 14:10:56 +00:00
Christopher James Lahey d5227888f9 Bumped the version number of gal to 0.8.99.8.
2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the version number of gal to 0.8.99.8.

From gal/e-table/ChangeLog:

2001-07-05  Christopher James Lahey  <clahey@ximian.com>

	* e-table-one.c (one_is_cell_editable): Ask for the editability of
	row -1 instead of column 0 as we were before.

svn path=/trunk/; revision=10799
2001-07-05 13:24:20 +00:00
Christopher James Lahey 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
Christopher James Lahey 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
Christopher James Lahey 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
Christopher James Lahey 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
Christopher James Lahey 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
Damon Chaplin 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
Christopher James Lahey 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
Christopher James Lahey 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
Christopher James Lahey 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
Anna Marie Dirks 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
Jeffrey Stedfast 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
Jeffrey Stedfast 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
Richard Hult 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
Jon Trowbridge 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
Chris Toshok 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
Peter Williams 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
Ettore Perazzoli 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
Mikael Hallendal 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
Damon Chaplin 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
Christopher James Lahey 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
Jon Trowbridge 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
jacob berkman 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
Jon Trowbridge 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
Jon Trowbridge f90d524db3 Oops. Forgot to remove some debugging code before committing.
svn path=/trunk/; revision=10119
2001-06-05 17:48:07 +00:00
Jon Trowbridge 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
Federico Mena Quintero 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
Federico Mena Quintero 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
jacob berkman 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
Federico Mena Quintero 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
Christopher James Lahey 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
Christopher James Lahey 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
Kjartan Maraas 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
Kjartan Maraas 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
jacob berkman 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
jacob berkman 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
Christopher James Lahey 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
Christopher James Lahey 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
jacob berkman 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
Chris Toshok 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
Chris Toshok 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
Christopher James Lahey 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
Jon Trowbridge 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