aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
Commit message (Collapse)AuthorAgeFilesLines
* add E_OBJECT_CLASS_ADD_SIGNALS and E_OBJECT_CLASS_TYPE to ease migrationMichael Meeks2001-10-0517-86/+93
| | | | | | | | | | | | | | | 2001-10-05 Michael Meeks <michael@ximian.com> * gal/util/e-util.h: add E_OBJECT_CLASS_ADD_SIGNALS and E_OBJECT_CLASS_TYPE to ease migration to Gnome 2.0 from a single source base. * All C files: s/object_class->type,/E_OBJECT_CLASS_TYPE (object_class),/g; s/gtk_object_class_add_signals([^\(]*)\(([^,]*),([^,]*),([^\)]*)/ E_OBJECT_CLASS_ADD_SIGNALS\1(\2,\3,\4/; svn path=/trunk/; revision=13428
* Sometimes put off maybe showing the cursor until an idle callback.Christopher James Lahey2001-10-042-13/+35
| | | | | | | | | | | | | | 2001-10-04 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_idle_maybe_show_cursor): Sometimes put off maybe showing the cursor until an idle callback. * e-tree-selection-model.c (add_model): Use connect_after to connect to all the signals. This means we can assume the sorted tree and table adapters are both done. This also means that those objects cannot assume that the selection is already changed. svn path=/trunk/; revision=13406
* Initialize the hash field. (model_changed_idle): Send cursor changed andChristopher James Lahey2001-10-031-6/+12
| | | | | | | | | | | | 2001-10-03 Christopher James Lahey <clahey@ximian.com> * e-table-selection-model.c (e_table_selection_model_init): Initialize the hash field. (model_changed_idle): Send cursor changed and selection changed signals. (model_pre_change): If there's no cursor here, make sure to set the cursor_id to NULL. svn path=/trunk/; revision=13373
* Pick which field of the row to select based on priority.Christopher James Lahey2001-10-036-13/+43
| | | | | | | | | | | | | | | | | 2001-10-03 Christopher James Lahey <clahey@ximian.com> * e-table-click-to-add.c (set_initial_selection): Pick which field of the row to select based on priority. * e-table-col.c, e-table-col.h: Added the priority field to this class. Adapted the _new functions appropriately. * e-table-column-specification.c, e-table-column-specification.h: Added the priority field to this class. * e-table-utils.c (et_col_spec_to_col): Handle the priority field here. svn path=/trunk/; revision=13370
* Only show the cursor during changes if it was already shown. Fixes XimianChristopher James Lahey2001-10-022-68/+208
| | | | | | | | | | 2001-10-02 Christopher James Lahey <clahey@ximian.com> * e-table-item.c, e-table-item.h: Only show the cursor during changes if it was already shown. Fixes Ximian bug #9810 and Ximian bug #4048. svn path=/trunk/; revision=13297
* Stop the sort idle if the root node gets changed.Christopher James Lahey2001-09-291-5/+15
| | | | | | | | | 2001-09-28 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c (ets_proxy_node_changed): Stop the sort idle if the root node gets changed. svn path=/trunk/; revision=13227
* Set the step_increment on the horizontal scrollbars here to 20.Christopher James Lahey2001-09-262-0/+12
| | | | | | | | | 2001-09-26 Christopher James Lahey <clahey@ximian.com> * e-table.c, e-tree.c: Set the step_increment on the horizontal scrollbars here to 20. svn path=/trunk/; revision=13146
* Set cursor_path = NULL here.Christopher James Lahey2001-09-261-0/+2
| | | | | | | | | 2001-09-26 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c (etsm_node_changed, etsm_destroy): Set cursor_path = NULL here. svn path=/trunk/; revision=13144
* Commit patch from Chris to implement e_tree_right_click_up() forEttore Perazzoli2001-09-265-1/+24
| | | | | | correct right-click behavior in single selection mode. svn path=/trunk/; revision=13123
* Attach to the resorted signal instead of the changed signal on the sortedChristopher James Lahey2001-09-253-77/+54
| | | | | | | | | | | | | 2001-09-24 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c (etsm_sorted_node_resorted): Attach to the resorted signal instead of the changed signal on the sorted model. * e-tree-sorted.c, e-tree-sorted.h (e_tree_sorted_node_resorted): Added this signal. svn path=/trunk/; revision=13108
* Use the correct prototype for the signal handler.Federico Mena Quintero2001-09-252-6/+8
| | | | | | | | | | | 2001-09-24 Federico Mena Quintero <federico@ximian.com> * e-table.c (et_canvas_button_press): Use the correct prototype for the signal handler. * e-tree.c (et_canvas_button_press): Likewise. svn path=/trunk/; revision=13105
* Assert that the virtual method is implemented instead of being forgiving.Federico Mena Quintero2001-09-254-111/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-24 Federico Mena Quintero <federico@ximian.com> * e-table-group.c (e_table_group_add): Assert that the virtual method is implemented instead of being forgiving. (e_table_group_add_array): Likewise. (e_table_group_add_all): Likewise. (e_table_group_remove): Likewise. (e_table_group_increment): Likewise. (e_table_group_decrement): Likewise. (e_table_group_row_count): Likewise. (e_table_group_set_focus): Likewise. (e_table_group_get_focus): Likewise. (e_table_group_get_focus_column): Likewise. (e_table_group_get_printable): Likewise. (e_table_group_compute_location): Likewise. (e_table_group_get_cell_geometry): Likewise. (etg_destroy): Clear the fields after we unref them. * e-table-group-leaf.c (etgl_destroy): Clear the fields after we unref them. (e_table_group_leaf_construct): Subsets should not be sunk. Do not ref/sink the subset. * e-table-header.c (e_table_header_add_column): Document the fact that the header assumes ownership of the column. svn path=/trunk/; revision=13102
* Bumped the version number to 0.12.99.0.Christopher James Lahey2001-09-231-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | 2001-09-22 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the version number to 0.12.99.0. From a patch by Damian Ivereigh <damian@cisco.com>: * gal/util/e-util.c, gal/util/e-util.h (e_strftime_fix_am_pm): New function, takes the same arguments as strftime, but does some fixup if the given string is in 12 hour mode but the locale doesn't have AM/PM descriptors. From gal/e-table/ChangeLog: 2001-09-22 Christopher James Lahey <clahey@ximian.com> From a patch by Damian Ivereigh <damian@cisco.com>: * e-cell-date.c: Made this use e_strftime_fix_am_pm instead of strftime. svn path=/trunk/; revision=13081
* Remove the grab if ->grabbed.Ettore Perazzoli2001-09-211-0/+5
| | | | | | * e-table-item.c (eti_unrealize): Remove the grab if ->grabbed. svn path=/trunk/; revision=13024
* Confirm row count here. (etsm_get_row_count): Make sure etsm->model isn'tChristopher James Lahey2001-09-201-1/+5
| | | | | | | | | | 2001-09-19 Christopher James Lahey <clahey@ximian.com> * e-table-selection-model.c (add_model): Confirm row count here. (etsm_get_row_count): Make sure etsm->model isn't NULL here. If it is, it's not an error. Return 0 in this case. svn path=/trunk/; revision=12993
* Bumped version number to 0.11.99.4.Christopher James Lahey2001-09-1713-208/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-16 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped version number to 0.11.99.4. * gal/e-text/e-completion-view.c (e_completion_view_construct), tests/test-table-1.c (create_table): Changed the parameters to e_table_simple_new here to adjust to changes in the interface. * gal/widgets/e-categories-master-list-array.c (ecmla_default): Fixed a memory leak here. * gal/widgets/e-categories.c (e_categories_get_save_id): Added get_save_id here so that selection would be maintained across changes. From gal/e-table/ChangeLog: 2001-09-16 Christopher James Lahey <clahey@ximian.com> * e-table-model.c, e-table-model.h (e_table_model_class_init): Rearranged order of has_save_id and get_save_id to be more consistent with ETree. * e-table-selection-model.c, e-table-selection-model.h: Turned on the code to maintain selection and cursor across changes if the model supports get_save_id. * e-table-simple.c, e-table-simple.h: Changed this interface to take all of the ETableModel functions in the _new function. * e-table-subset.c (etss_has_save_id, etss_get_save_id): Added these to properly proxy the save_id functionality. * e-tree-memory-callbacks.c, e-tree-memory-callbacks.h, e-tree-model.c, e-tree-model.h, e-tree-sorted.c: Made the save_id parameter to get_node_by_id be const char * instead of char *. * e-tree-table-adapter.c (etta_class_init): Rearranged some assignments here to be more consistent. svn path=/trunk/; revision=12869
* Changed this to change state on button down, even if we aren't editing.Christopher James Lahey2001-09-141-14/+11
| | | | | | | | | 2001-09-13 Christopher James Lahey <clahey@ximian.com> * e-cell-toggle.c (etog_event): Changed this to change state on button down, even if we aren't editing. svn path=/trunk/; revision=12803
* Changed which widget to connect signals to to watch for drag & drop. FixesChristopher James Lahey2001-09-111-4/+4
| | | | | | | | | | 2001-09-10 Christopher James Lahey <clahey@ximian.com> * e-tree.c (e_tree_setup_table): Changed which widget to connect signals to to watch for drag & drop. Fixes Ximian bugs #7450 & #8732. svn path=/trunk/; revision=12744
* Fixed a silly little obvious bug.Jon Trowbridge2001-09-081-3/+3
| | | | | | | | | 2001-09-07 Jon Trowbridge <trow@ximian.com> * e-table-without.c (e_table_without_show_all): Fixed a silly little obvious bug. svn path=/trunk/; revision=12695
* Added GDK_BUTTON_PRESS_MASK to our button mask. Fixes Ximian bug #8241.Christopher James Lahey2001-09-081-1/+1
| | | | | | | | | 2001-09-07 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_event): Added GDK_BUTTON_PRESS_MASK to our button mask. Fixes Ximian bug #8241. svn path=/trunk/; revision=12685
* Don't do_something on button_release if we did something on button_press.Christopher James Lahey2001-09-082-2/+8
| | | | | | | | | | 2001-09-07 Christopher James Lahey <clahey@ximian.com> * e-table-item.c, e-table-item.h (eti_event): Don't do_something on button_release if we did something on button_press. Fixes Ximian bug #3742. svn path=/trunk/; revision=12680
* Added e-table-config-no-group.glade.Christopher James Lahey2001-09-083-102/+1734
| | | | | | | | | | | 2001-09-07 Christopher James Lahey <clahey@ximian.com> * Makefile.am: Added e-table-config-no-group.glade. * e-table-config-no-group.glade, e-table-config.c, e-table-config.glade: Removed the fields bit of ETableConfig. svn path=/trunk/; revision=12678
* Added this function.Christopher James Lahey2001-09-082-2/+30
| | | | | | | | | 2001-09-07 Christopher James Lahey <clahey@ximian.com> * e-table-without.c, e-table-without.h (e_table_without_show_all): Added this function. svn path=/trunk/; revision=12677
* Remove debugging message.Ettore Perazzoli2001-09-051-2/+0
| | | | | | * e-tree.c (e_tree_drag_unhighlight): Remove debugging message. svn path=/trunk/; revision=12599
* Strip spaces at the beginning or end as well as changing " " to " ". FixesChristopher James Lahey2001-09-021-3/+13
| | | | | | | | | 2001-09-02 Christopher James Lahey <clahey@ximian.com> * e-cell-date.c (ecd_get_text): Strip spaces at the beginning or end as well as changing " " to " ". Fixes Ximian bug #7683. svn path=/trunk/; revision=12560
* Rename these functions from ecn_get_text and ecn_free_text.Christopher James Lahey2001-09-019-24/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-01 Christopher James Lahey <clahey@ximian.com> * e-cell-float.c (ecf_get_text, ecf_free_text): Rename these functions from ecn_get_text and ecn_free_text. * e-cell-tree.c (ect_height): Make sure the height is a multiple of two here. * e-table-header-item.c, e-table-header-item.h: Added a "tree" argument so that the sorting can be set by right clicking on the header item. * e-table-item.c (eti_table_model_rows_deleted): Added some assertions here. * e-tree-selection-model.c (etsm_find_node_unless_equals): Fixed indentation. * e-tree-table-adapter.c (etta_proxy_node_changed): Rewrote this to be more readable. (e_tree_table_adapter_node_set_expanded): Added an assertion. * e-tree.c, e-tree.h (e_tree_get_spec): Added this function. (e_tree_setup_header): Set the tree argument on the ETableHeaderItem here. svn path=/trunk/; revision=12553
* Fix this memmove. We've already subtracted the count from eti->rows.Christopher James Lahey2001-09-011-1/+2
| | | | | | | | | 2001-08-31 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_table_model_rows_deleted): Fix this memmove. We've already subtracted the count from eti->rows. svn path=/trunk/; revision=12550
* Patch to fix few 64bit issuesGeorge Lebl2001-08-292-20/+20
| | | | | | | | | | | | | | | | | | | | | | Tue Aug 28 18:29:28 2001 George Lebl <jirka@5z.com> Patch to fix few 64bit issues * gal/e-table/e-table-header-item.c (ethi_draw) (ethi_start_drag) gal/widgets/e-categories.c (e_categories_value_at) (e_categories_value_to_string): Use GINT_TO_POINTER and GPOINTER_TO_INT to cast between pointers and ints to fix 64bit issues connected with that. * gal/e-table/e-table-sorting-utils.c (e_table_sorting_utils_tree_check_position) gal/util/e-sorter-array.c (e_sorter_array_append): Use size_t for size not ints to fix crashes * gal/e-text/e-completion-match.c, gal/e-text/e-completion.c: Include <string.h> svn path=/trunk/; revision=12507
* Fixed this memmove to subtract the count as well as the row for the numberChristopher James Lahey2001-08-271-1/+1
| | | | | | | | | | 2001-08-27 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_table_model_rows_deleted): Fixed this memmove to subtract the count as well as the row for the number of rows to move. svn path=/trunk/; revision=12482
* Convert UTF-8 strings to locale's encoding before putting them in canvasChyla Zbigniew2001-08-251-6/+14
| | | | | | | | * e-table-group-container.c (compute_text): Convert UTF-8 strings to locale's encoding before putting them in canvas item. svn path=/trunk/; revision=12472
* Fixed typo.Chyla Zbigniew2001-08-251-1/+1
| | | | | | * e-table.c (e_table_init): Fixed typo. svn path=/trunk/; revision=12467
* Added start_drag signals.Christopher James Lahey2001-08-2511-255/+329
| | | | | | | | | | | | | | | | | | 2001-08-24 Christopher James Lahey <clahey@ximian.com> * e-table-group-container.c, e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c, e-table-group.h: Added start_drag signals. * e-table-item.c, e-table-item.h (eti_event): Send the start_drag signal. Fixes Ximian bug #807. * e-table.c, e-table.h, e-tree.c, e-tree.h: Added start_drag signal. Made default handler start drag & drop if we're set to automatically handle dnd. Ripped out the code to handle watching events for dnd since start_drag does this now. svn path=/trunk/; revision=12437
* We need to free_gotten_key_func key2, not key! (e_table_without_show):Jon Trowbridge2001-08-212-8/+10
| | | | | | | | | | | | | | | | | | | | 2001-08-20 Jon Trowbridge <trow@ximian.com> * e-table-without.c (check_with_key): We need to free_gotten_key_func key2, not key! (e_table_without_show): Renamed, used to be e_table_without_remove. Double-negative function names are confusing! (e_table_without_hide_adopt): Renamed, used to be e_table_without_add_adopt. (e_table_without_hide): Renamed, used to be e_table_without_add. 2001-08-20 Jon Trowbridge <trow@ximian.com> * configure.in: Increment version number to 0.10.99.5 for changes to ETableWithout api. svn path=/trunk/; revision=12332
* Added these functions.Christopher James Lahey2001-08-212-8/+33
| | | | | | | | | | 2001-08-20 Christopher James Lahey <clahey@ximian.com> * e-table-subset.c, e-table-subset.h (e_table_subset_model_to_view_row, e_table_subset_view_to_model_row): Added these functions. svn path=/trunk/; revision=12317
* Made this object handle NULLs for all the handler functions.Christopher James Lahey2001-08-211-8/+22
| | | | | | | | | 2001-08-20 Christopher James Lahey <clahey@ximian.com> * e-table-without.c: Made this object handle NULLs for all the handler functions. svn path=/trunk/; revision=12316
* Changed the used parity of the return value of check here.Christopher James Lahey2001-08-211-2/+2
| | | | | | | | | | 2001-08-20 Christopher James Lahey <clahey@ximian.com> * e-table-without.c (etw_proxy_model_rows_inserted, etw_proxy_model_changed): Changed the used parity of the return value of check here. svn path=/trunk/; revision=12313
* Chain to the destroy handler in the parent class. Hey, I'm getting used toFederico Mena Quintero2001-08-181-0/+2
| | | | | | | | | 2001-08-18 Federico Mena Quintero <federico@ximian.com> * e-table-without.c (etw_destroy): Chain to the destroy handler in the parent class. Hey, I'm getting used to this :) svn path=/trunk/; revision=12199
* Destroy the hash table and all objects in it, as well as the privChristopher James Lahey2001-08-171-2/+32
| | | | | | | | | 2001-08-17 Christopher James Lahey <clahey@ximian.com> * e-table-without.c (etw_destroy): Destroy the hash table and all objects in it, as well as the priv structure. svn path=/trunk/; revision=12147
* Bumped version number to 0.10.99.4. Fixed some comments.Christopher James Lahey2001-08-172-34/+206
| | | | | | | | | | | | | | | | | | | | | 2001-08-16 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped version number to 0.10.99.4. Fixed some comments. * gal/Makefile.am (libgal_la_LIBADD): Added e-table/e-table-without.lo. From gal/e-table/ChangeLog: 2001-08-16 Christopher James Lahey <clahey@ximian.com> * Makefile.am: Added e-table-without.c and e-table-without.h. * e-table-without.c, e-table-without.h: Got this to compile. Finished the first version of it. svn path=/trunk/; revision=12144
* Adding the first versions of these files. Doesn't work yet.Christopher James Lahey2001-08-172-0/+181
| | | | | | | | | 2001-08-16 Christopher James Lahey <clahey@ximian.com> * e-table-without.c, e-table-without.h: Adding the first versions of these files. Doesn't work yet. svn path=/trunk/; revision=12121
* Destroy, do not unref, the popup_window.Federico Mena Quintero2001-08-151-1/+2
| | | | | | | | | 2001-08-14 Federico Mena Quintero <federico@ximian.com> * e-cell-combo.c (e_cell_combo_destroy): Destroy, do not unref, the popup_window. svn path=/trunk/; revision=12021
* Workaround for Ximian bug #6795. Will prevent a crash and doesn't seem toPeter Williams2001-08-141-1/+1
| | | | | | | | | | | 2001-08-14 Peter Williams <peterw@ximian.com> * e-tree-selection-model.c (etsm_selected_count_recurse): Workaround for Ximian bug #6795. Will prevent a crash and doesn't seem to cause any problems, but the underlying problem still exists. svn path=/trunk/; revision=12010
* Handle GDK_KP_Page_Up, GDK_KP_Page_Down, GDK_KP_Right, and GDK_KP_LeftChristopher James Lahey2001-08-142-4/+6
| | | | | | | | | | 2001-08-14 Christopher James Lahey <clahey@ximian.com> * e-table.c (group_key_press), e-tree.c (item_key_press): Handle GDK_KP_Page_Up, GDK_KP_Page_Down, GDK_KP_Right, and GDK_KP_Left here. svn path=/trunk/; revision=11996
* Got rid of event forwarding for double clicks and releases and such andChristopher James Lahey2001-08-141-6/+1
| | | | | | | | | | 2001-08-14 Christopher James Lahey <clahey@ximian.com> * e-table-click-to-add.c (etcta_event): Got rid of event forwarding for double clicks and releases and such and for single clicks except when first creating the row object. svn path=/trunk/; revision=11993
* If the sort_info can't group, hide the grouping button and label.Christopher James Lahey2001-08-115-10/+47
| | | | | | | | | | | | | | | | | | | | | | 2001-08-10 Christopher James Lahey <clahey@ximian.com> * e-table-config.c (setup_gui): If the sort_info can't group, hide the grouping button and label. * e-table-header-item.c (ethi_header_context_menu): Removed the Group By This Field menu item if the sort_info doesn't support grouping. * e-table-sort-info.c, e-table-sort-info.h (e_table_sort_info_get_can_group, e_table_sort_info_set_can_group): Added these functions. * e-tree.c (e_tree_set_state_object, et_real_construct): Set can_group to FALSE for all our sort infos. (e_tree_get_state_object): Fixed a potential gtk_object_ref (NULL) here. svn path=/trunk/; revision=11896
* new proto and virtual methodJP Rosevear2001-08-104-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-10 JP Rosevear <jpr@ximian.com> * gal/widgets/e-canvas-vbox.h: new proto and virtual method * gal/widgets/e-canvas-vbox.c (e_canvas_vbox_real_add_item_start): adds the the item to the beginning (e_canvas_vbox_add_item_start): call the virtual method 2001-08-10 JP Rosevear <jpr@ximian.com> * e-table.c (et_build_groups): add the items to the start or end based on where the click to add should be (e_table_setup_table): ditto (et_real_construct): read additional spec flag * e-table.h: new flag * e-table-specification.c (etsp_init): init new flag (e_table_specification_load_from_node): set click to add end flag (e_table_specification_save_to_node): write out flag * e-table-specification.h: new flag svn path=/trunk/; revision=11880
* Initialize ret_val. (do_drag_motion): Same.Jeffrey Stedfast2001-08-101-2/+2
| | | | | | | | | 2001-08-09 Jeffrey Stedfast <fejj@ximian.com> * e-tree.c (et_drag_drop): Initialize ret_val. (do_drag_motion): Same. svn path=/trunk/; revision=11861
* Added a "header" argument to these structures which just gets passedChristopher James Lahey2001-08-097-26/+186
| | | | | | | | | | | | | | | | | 2001-08-09 Christopher James Lahey <clahey@ximian.com> * e-table-field-chooser-dialog.c, e-table-field-chooser-dialog.h, e-table-field-chooser.c, e-table-field-chooser.h: Added a "header" argument to these structures which just gets passed downwards. * e-table-field-chooser-item.c, e-table-field-chooser-item.h: Added a "header" argument here. Made it so that only rows that aren't already in the header are shown. * e-table-header-item.c: Set the "header" argument on our e-table-field-chooser-dialog. Fixes Ximian bug #2654. svn path=/trunk/; revision=11828
* Chain to the destroy handler in the parent class!Federico Mena Quintero2001-08-094-1/+15
| | | | | | | | | | | | | | | | 2001-08-08 Federico Mena Quintero <federico@ximian.com> * e-cell-pixbuf.c (pixbuf_destroy): Chain to the destroy handler in the parent class! * e-table-field-chooser.c (e_table_field_chooser_destroy): Likewise. Sigh. * e-table-one.c (one_destroy): Likewise. Double sigh. * e-tree-selection-model.c (etsm_destroy): Likewise. Triple sigh. svn path=/trunk/; revision=11811
* Call the super-class destroy function when done.Not Zed2001-08-081-0/+2
| | | | | | | | | 2001-08-08 Not Zed <NotZed@Ximian.com> * e-table-sort-info.c (etsi_destroy): Call the super-class destroy function when done. svn path=/trunk/; revision=11782
* Check for row >= 0 here. (etgl_destroy): Disconnect from all the signalsChristopher James Lahey2001-08-082-15/+50
| | | | | | | | | | | 2001-08-08 Christopher James Lahey <clahey@ximian.com> * e-table-group-leaf.c, e-table-group-leaf.h (etgl_key_press): Check for row >= 0 here. (etgl_destroy): Disconnect from all the signals we connect to on our ETableItem here. svn path=/trunk/; revision=11766
* Implemented this function. Fixes Ximian bug #5353.Christopher James Lahey2001-08-081-6/+50
| | | | | | | | | 2001-08-07 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c (etsm_selected_count): Implemented this function. Fixes Ximian bug #5353. svn path=/trunk/; revision=11753
* Make tree nodes open if you hover over them while drag & dropping.Christopher James Lahey2001-08-081-0/+71
| | | | | | | | | 2001-08-07 Christopher James Lahey <clahey@ximian.com> * e-tree.c: Make tree nodes open if you hover over them while drag & dropping. svn path=/trunk/; revision=11746
* Added scrolling to access nodes that are scrolled off screen for drops.Christopher James Lahey2001-08-073-64/+290
| | | | | | | | | | | | | 2001-08-07 Christopher James Lahey <clahey@ximian.com> * e-tree.c (scroll_timeout): Added scrolling to access nodes that are scrolled off screen for drops. Fixes Ximian bug #5645. * e-table.c, e-table.h (scroll_timeout): Added scrolling to access rows that are scrolled off screen for drops. This doesn't work for some reason, but I'm checking the code in. svn path=/trunk/; revision=11724
* Implemented these functions.Christopher James Lahey2001-08-073-6/+110
| | | | | | | | | | | | 2001-08-06 Christopher James Lahey <clahey@ximian.com> * e-table.c, e-table.h (e_table_drag_highlight, e_table_drag_unhighlight): Implemented these functions. * e-tree.c (e_tree_drag_highlight, e_tree_drag_unhighlight): Implemented these functions. svn path=/trunk/; revision=11713
* Set the hadjustment and vadjustment here. From a patch by KevinChristopher James Lahey2001-08-051-2/+4
| | | | | | | | | | 2001-08-04 Christopher James Lahey <clahey@ximian.com> * e-tree-scrolled.c (e_tree_scrolled_new): Set the hadjustment and vadjustment here. From a patch by Kevin Vandersloot <kfv101@psu.edu>. Fixes Ximian bug #6400. svn path=/trunk/; revision=11684
* Change these to actually subtract the allocation as they should.Christopher James Lahey2001-08-041-3/+6
| | | | | | | | | 2001-08-03 Christopher James Lahey <clahey@ximian.com> * e-tree.c (et_drag_motion, et_drag_drop, et_drag_data_received): Change these to actually subtract the allocation as they should. svn path=/trunk/; revision=11649
* e_tree_table_adapter_node_at_row would have pulled data from one past theChristopher James Lahey2001-08-041-6/+8
| | | | | | | | | | | 2001-08-03 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c (e_tree_table_adapter_node_at_row): e_tree_table_adapter_node_at_row would have pulled data from one past the end of its array if you asked it to and the root was hidden. Fixed it. Fixes Ximian bug #4761. svn path=/trunk/; revision=11647
* Subtracted 27.Christopher James Lahey2001-08-041-0/+3
| | | | | | | | | 2001-08-03 Christopher James Lahey <clahey@ximian.com> * e-tree.c (et_drag_motion, et_drag_drop, et_drag_data_received): Subtracted 27. svn path=/trunk/; revision=11624
* Make the right and left key presses be marked as handled here (i.e.,Christopher James Lahey2001-08-031-0/+2
| | | | | | | | | | 2001-08-02 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_event): Make the right and left key presses be marked as handled here (i.e., return 1 always.) Fixes Ximian bug #2090. svn path=/trunk/; revision=11592
* Changed all e_table_model_is_cell_editable calls in this file to be on theChristopher James Lahey2001-08-031-3/+3
| | | | | | | | | 2001-08-02 Christopher James Lahey <clahey@ximian.com> * e-table-item.c: Changed all e_table_model_is_cell_editable calls in this file to be on the model column instead of the view column. svn path=/trunk/; revision=11589
* Set et->priv to NULL here just to be sure.Christopher James Lahey2001-08-031-0/+1
| | | | | | | | | 2001-08-02 Christopher James Lahey <clahey@ximian.com> * e-tree.c (et_destroy): Set et->priv to NULL here just to be sure. svn path=/trunk/; revision=11588
* Don't do most of the work in this function if data->data is NULL. FixesChristopher James Lahey2001-08-031-21/+27
| | | | | | | | | | 2001-08-02 Christopher James Lahey <clahey@ximian.com> * e-table-header-item.c (ethi_drag_data_received): Don't do most of the work in this function if data->data is NULL. Fixes Ximian bug #6041. svn path=/trunk/; revision=11587
* Set the et->cursor_loc *before* committing the click-to-add to avoidFederico Mena Quintero2001-08-021-3/+7
| | | | | | | | | | 2001-08-01 Federico Mena Quintero <federico@ximian.com> * e-table.c (group_cursor_change): Set the et->cursor_loc *before* committing the click-to-add to avoid reentrancy issues if the table model changes while the click-to-add is being committed. svn path=/trunk/; revision=11564
* Make this function not crash if x somehow doesn't land on some column.Christopher James Lahey2001-08-021-4/+8
| | | | | | | | | | | | | 2001-08-01 Christopher James Lahey <clahey@ximian.com> * e-table-header-item.c (ethi_change_sort_state): Make this function not crash if x somehow doesn't land on some column. Fixes Ximian bug #5957. * e-table-header-item.c: Removed a bunch of menu items whose functionality won't be ready for 1.0. Fixes Ximian bug #154. svn path=/trunk/; revision=11560
* Made this not query the 0th row if there are 0 rows in the table. FixesChristopher James Lahey2001-08-011-6/+5
| | | | | | | | | 2001-08-01 Christopher James Lahey <clahey@ximian.com> * e-cell-toggle.c (etog_max_width): Made this not query the 0th row if there are 0 rows in the table. Fixes Ximian bug #5640. svn path=/trunk/; revision=11542
* If the CLICK signal gets a return value, so we're going to be return fromJason Leach2001-07-261-1/+4
| | | | | | | | | | 2001-07-25 Jason Leach <jleach@ximian.com> * e-table-item.c (eti_event): If the CLICK signal gets a return value, so we're going to be return from eti_event immediately after, set the eti->click_count to zero. Fixes bug #811. svn path=/trunk/; revision=11420
* Properly ref the font we pass in as an ARG_FONT_E. (_do_tooltip): RemovedJon Trowbridge2001-07-251-0/+1
| | | | | | | | | | | | | | | | | | 2001-07-25 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-text.c (e_text_set_arg): Properly ref the font we pass in as an ARG_FONT_E. (_do_tooltip): Removed some crack. We no longer have to manually ref the font. The ref-counting now happens inside the set_arg function, as it should. (e_text_destroy): Set text->font to NULL after unrefing it. 2001-07-25 Jon Trowbridge <trow@ximian.com> * e-cell-text.c (ect_unrealize): Set text_view->font to NULL after we unref it. svn path=/trunk/; revision=11393
* Handle GDK_KP_* cursor keys as well.Ettore Perazzoli2001-07-231-1/+5
| | | | | | * e-table-item.c (eti_event): Handle GDK_KP_* cursor keys as well. svn path=/trunk/; revision=11302
* Made these functions return -1 if the x and y aren't over any cell at all.Christopher James Lahey2001-07-131-0/+5
| | | | | | | | | 2001-07-12 Christopher James Lahey <clahey@ximian.com> * e-tree.c (e_tree_get_cell_at): Made these functions return -1 if the x and y aren't over any cell at all. svn path=/trunk/; revision=11077
* Ignore set_expanded if the node is the root and root_visible is FALSE.Christopher James Lahey2001-07-132-4/+13
| | | | | | | | | | | | | 2001-07-12 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c (e_tree_table_adapter_node_set_expanded): Ignore set_expanded if the node is the root and root_visible is FALSE. * e-tree.c (item_key_press): Don't call set_expanded on NULL paths. svn path=/trunk/; revision=11061
* Created this function for key presses that move in some way other thanChristopher James Lahey2001-07-112-8/+8
| | | | | | | | | | | | | | 2001-07-11 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h (e_selection_model_select_as_key_press): Created this function for key presses that move in some way other than just to the next or previous row. (e_selection_model_key_press): Use e_selection_model_select_as_key_press for handling home and end here. svn path=/trunk/; revision=10993
* Made the amount to scroll by smaller here.Christopher James Lahey2001-07-112-4/+4
| | | | | | | | | 2001-07-11 Christopher James Lahey <clahey@ximian.com> * e-table.c (group_key_press), e-tree.c (item_key_press): Made the amount to scroll by smaller here. svn path=/trunk/; revision=10992
* Use e_selection_model_do_something directly for page up and page downChristopher James Lahey2001-07-112-64/+33
| | | | | | | | | | 2001-07-11 Christopher James Lahey <clahey@ximian.com> * e-table.c (group_key_press), e-tree.c (item_key_press): Use e_selection_model_do_something directly for page up and page down instead of emulating a key press. svn path=/trunk/; revision=10990
* Changed the title of this dialog. Fixes bug #2656.Christopher James Lahey2001-07-091-1/+5
| | | | | | | | | | 2001-07-08 Christopher James Lahey <clahey@ximian.com> * e-table-field-chooser-dialog.c (e_table_field_chooser_dialog_init): Changed the title of this dialog. Fixes bug #2656. svn path=/trunk/; revision=10897
* Added checks for if row is outside of the appropriate range.Christopher James Lahey2001-07-071-0/+4
| | | | | | | | | 2001-07-06 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c (e_tree_table_adapter_node_at_row): Added checks for if row is outside of the appropriate range. svn path=/trunk/; revision=10878
* Set new_value = value here to fix a warning.Christopher James Lahey2001-07-071-0/+1
| | | | | | | | | 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
* Added a "state" argument to allow you to get the state out of the configChristopher James Lahey2001-07-071-1/+25
| | | | | | | | | 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
* Added checks that row and col are >= 0.Christopher James Lahey2001-07-061-0/+2
| | | | | | | | | 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
* Call e_table_item_leave_edit here.Christopher James Lahey2001-07-051-0/+4
| | | | | | | | | 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
* Made it so that the drop marker can show up when dragging a new column toChristopher James Lahey2001-07-051-1/+1
| | | | | | | | | | 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
* Bumped the version number of gal to 0.8.99.8.Christopher James Lahey2001-07-051-1/+1
| | | | | | | | | | | | | | | 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
* Changed the variable names here to make it clear that these are view modelChristopher James Lahey2001-07-052-21/+52
| | | | | | | | | | | | | 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
* Make a whole bunch of control keys not start the ETableItem editing.Christopher James Lahey2001-07-051-19/+43
| | | | | | | | | 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
* Make sure start_row and end_row are within the number of rows in theChristopher James Lahey2001-07-051-0/+8
| | | | | | | | | 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
* Handle an error in construction a little bit better here.Christopher James Lahey2001-07-051-6/+16
| | | | | | | | | | 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
* Only free the root here if it's non-NULL.Christopher James Lahey2001-07-031-1/+2
| | | | | | | | | 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
* Made the remove this column menu item greyed out if it's the last column.Christopher James Lahey2001-07-031-2/+4
| | | | | | | | | 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
* Don't send the double click signal if there's no row selected.Christopher James Lahey2001-07-031-3/+6
| | | | | | | | | 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
* Calculate the popup position using window coordinates instead of worldRichard Hult2001-07-021-0/+9
| | | | | | | | | | | 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
* send signals even if the row/col is -1. (et_drag_drop): same.Chris Toshok2001-06-292-66/+56
| | | | | | | | | | | | | 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
* Bump version number due to incompatible changes in ETree.Peter Williams2001-06-284-34/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* send the value to e_table_model_set_value_at as a string as inMikael Hallendal2001-06-201-2/+12
| | | | | | | | | | | | 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
* Remove row row + i instead of row i. (et_table_rows_inserted): Insert rowChristopher James Lahey2001-05-261-2/+2
| | | | | | | | | | 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
* Remove row i instead of row row. Destroy et->group when you get theChristopher James Lahey2001-05-261-4/+11
| | | | | | | | | | 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
* #include <string.h> Same here. Kills warnings on newer gcc.Kjartan Maraas2001-05-252-0/+2
| | | | | | | | | 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
* format similar to nautilusjacob berkman2001-05-252-9/+12
| | | | | | | | | | | | | 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
* allow NULL pixbufs, and draw with crappy alphajacob berkman2001-05-231-33/+17
| | | | | | | | 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
* Made this faster in some cases.Christopher James Lahey2001-05-231-1/+1
| | | | | | | | | 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
* The double_click signal on the table item now emits the model row insteadChristopher James Lahey2001-05-231-2/+1
| | | | | | | | | | 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
* a similar change to below, which makes it actually work for the case wherejacob berkman2001-05-221-1/+1
| | | | | | | | | | 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
* increment row each time through the loop so we don't get @count copies ofChris Toshok2001-05-221-0/+1
| | | | | | | | | 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
* Try to deal with bad utf8. (_get_position): Try to deal with bad utf8.Jon Trowbridge2001-05-151-6/+6
| | | | | | | | | | | | 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
* Make a key press stop the tooltip timeout.Christopher James Lahey2001-05-122-1/+5
| | | | | | | | | | | | | 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
* Show the date for dates in the future.Christopher James Lahey2001-05-103-34/+52
| | | | | | | | | | | | | 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
* (Fix bug #53111: Portability fixes for HP's ANSI compiler.)Jason Leach2001-05-083-6/+12
| | | | | | | | | | | | | | | | | | | | 2001-04-29 Jason Leach <jasonleach@usa.net> (Fix bug #53111: Portability fixes for HP's ANSI compiler.) * e-table-header-item.c (ethi_popup_sort_ascending): Changes for initializing a struct for picky compiler. (ethi_popup_sort_descending): Ditto. (ethi_change_sort_state): Ditto. * e-cell.c (e_cell_realize): Fix trying to return a value for a void function. (e_cell_show_tooltip): Here too. * e-table-subset.c (etss_set_value_at): Another fix for trying to return something instead of void. svn path=/trunk/; revision=9695
* write what was converted to console, this function does not work always.Gediminas Paulauskas2001-05-081-2/+5
| | | | | | | | | | | | | | | | | 2001-05-07 Gediminas Paulauskas <menesis@delfi.lt> * gal/widgets/e-unicode.c (e_utf8_to_gtk_string_sized): write what was converted to console, this function does not work always. (e_utf8_gtk_editable_get_chars), (e_utf8_gtk_menu_item_new_with_label): removed some unneeded checks. (e_xml_get_translated_utf8_string_prop_by_name): if i.e. "title" was found, do not convert it to utf8 -- it already is. do this only on "_title". * gal/e-table/e-table-header-item.c: fix warning. svn path=/trunk/; revision=9692
* Added a read only argument "model" to ETable.Christopher James Lahey2001-04-291-1/+10
| | | | | | | | 2001-04-29 Christopher James Lahey <clahey@ximian.com> * e-table.c: Added a read only argument "model" to ETable. svn path=/trunk/; revision=9624
* (Make the alternating row colors a option in ETableSpecification insteadJason Leach2001-04-2911-17/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-28 Jason Leach <jasonleach@usa.net> (Make the alternating row colors a option in ETableSpecification instead of a compiled in #define) * e-table-specification.c (e_table_specification_load_from_node): Read in the "alternating-row-colors=bool" option for ETableSpecifications. Default value is true so unless it is specified to be false, row colors will alternate. (e_table_specification_save_to_node): Save the alternating row color options here. * e-table.c (et_build_groups): Pass down the alternating row colors through to the ETableGroup. * e-table-group-container.[ch]: Handle the new alternating row colors option here, passing it to ETableItem. * e-table-group-leaf.[ch]: Here too. * e-table-item.c (eti_get_cell_background_color): Got rid of the #define ALTERNATE_COLORS, replaced with truth check for ETableItem::alternating_row_colors. * e-tree.c: Make ETree recognize alternating row color options as well. svn path=/trunk/; revision=9622
* Add the header height to the returned y location here so that things willChristopher James Lahey2001-04-261-1/+3
| | | | | | | | | | 2001-04-25 Christopher James Lahey <clahey@ximian.com> * e-table.c (e_table_get_cell_geometry): Add the header height to the returned y location here so that things will be lined up correctly. svn path=/trunk/; revision=9563
* Made this return -1 instead of -2 for not found if the root is notChristopher James Lahey2001-04-262-3/+8
| | | | | | | | | | | | | 2001-04-25 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c (e_tree_table_adapter_row_of_node): Made this return -1 instead of -2 for not found if the root is not visible. * e-tree-selection-model.c (etsm_row_foreach_cb): Made this accept any negative number as not found instead of just -1. svn path=/trunk/; revision=9562
* One-line fix (missing a 'break' at the end of the ARG_SELECTION_MODELJason Leach2001-04-251-0/+1
| | | | | | | | | 2001-04-25 Jason Leach <jasonleach@usa.net> * e-table-group-leaf.c (etgl_set_arg): One-line fix (missing a 'break' at the end of the ARG_SELECTION_MODEL case). svn path=/trunk/; revision=9561
* Documented this function properly.Christopher James Lahey2001-04-243-118/+159
| | | | | | | | | | | | 2001-04-23 Christopher James Lahey <clahey@ximian.com> * e-table.c (e_table_get_cell_geometry): Documented this function properly. * e-tree.c, e-tree.h (e_tree_get_cell_geometry): Added this function. svn path=/trunk/; revision=9533
* Added get_cell_geometry method.Christopher James Lahey2001-04-248-9/+122
| | | | | | | | | | | | | | 2001-04-23 Christopher James Lahey <clahey@ximian.com> * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group-.h: Added get_cell_geometry method. * e-table-item.c, e-table-item.h: Added e_table_item_get_cell_geometry. * e-table.c, e-table.h: Added e_table_get_cell_geometry. svn path=/trunk/; revision=9532
* Made it so that if a message is from the last 8 hours, it only prints theChristopher James Lahey2001-04-241-5/+21
| | | | | | | | | 2001-04-23 Christopher James Lahey <clahey@ximian.com> * e-cell-date.c (ecd_get_text): Made it so that if a message is from the last 8 hours, it only prints the time, not the date. svn path=/trunk/; revision=9519
* Make pixbuf columns show their title if there is space.Christopher James Lahey2001-04-241-2/+23
| | | | | | | | | 2001-04-23 Christopher James Lahey <clahey@ximian.com> * e-table-header-utils.c (e_table_header_draw_button): Make pixbuf columns show their title if there is space. svn path=/trunk/; revision=9517
* remove UNICODE_CFLAGSDan Winship2001-04-241-21/+20
| | | | | | | | * Makefile.am (INCLUDES): remove UNICODE_CFLAGS * e-cell-text.c: Remove <unicode.h> include, use gunicode functions svn path=/trunk/; revision=9513
* Submit a signal even if there are no extras.Christopher James Lahey2001-04-203-44/+132
| | | | | | | | | | | | | | | 2001-04-19 Christopher James Lahey <clahey@ximian.com> * e-table-header.c (eth_calc_widths): Submit a signal even if there are no extras. * e-table-item.c (eti_request_column_width): Don't compute widths if our cells aren't realized yet. * e-tree.c: Call e_table_header_update_horizontal whenever our data changes. svn path=/trunk/; revision=9465
* Turned off information expanders (tooltips) in ETable by default. TurnChristopher James Lahey2001-04-201-7/+9
| | | | | | | | | | 2001-04-19 Christopher James Lahey <clahey@ximian.com> * e-table-item.c: Turned off information expanders (tooltips) in ETable by default. Turn them back on with the environment variable GAL_DO_TOOLTIPS. svn path=/trunk/; revision=9462
* Free some things that weren't getting freed.Dan Winship2001-04-192-3/+10
| | | | | | | | | | | | * e-table.c (et_destroy): Free some things that weren't getting freed. * e-tree.c (et_destroy): Free some things that weren't getting freed. (e_tree_set_state_object): Don't ref the return value of e_table_state_to_header. svn path=/trunk/; revision=9448
* Turned on tooltips and alternating colors.Christopher James Lahey2001-04-171-2/+2
| | | | | | | | 2001-04-16 Christopher James Lahey <clahey@ximian.com> * e-table-item.c: Turned on tooltips and alternating colors. svn path=/trunk/; revision=9393
* Propagate the event after sending it to the base EText.Christopher James Lahey2001-04-171-1/+7
| | | | | | | | | 2001-04-16 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (tooltip_event): Propagate the event after sending it to the base EText. svn path=/trunk/; revision=9379
* Fix a crash here.Christopher James Lahey2001-04-161-2/+0
| | | | | | | | 2001-04-16 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c (ets_sort_idle): Fix a crash here. svn path=/trunk/; revision=9374
* Set the background color to the specified tooltip->background. Set theChristopher James Lahey2001-04-165-23/+112
| | | | | | | | | | | | | | | | | | | 2001-04-15 Christopher James Lahey <clahey@ximian.com> * e-cell-text.c (ect_show_tooltip): Set the background color to the specified tooltip->background. Set the foreground color to the specified tooltip->foreground. * e-table-item.c (eti_get_cell_background_color, eti_get_cell_foreground_color): Added these functions. (eti_draw, _do_tooltip): Use these new functions. * e-table-tooltip.h: Added foreground and background colors to this structure. * e-tree.c, e-tree.h (e_tree_get_tooltip): Added this function. svn path=/trunk/; revision=9338
* Added /* #defines */ at the top. Fixed ALTERNATE_COLORS to be an #ifdefChristopher James Lahey2001-04-162-1/+5
| | | | | | | | | | | | 2001-04-15 Christopher James Lahey <clahey@ximian.com> * e-table-item.c: Added /* #defines */ at the top. Fixed ALTERNATE_COLORS to be an #ifdef instead of an #if. * e-cell-text.c (ect_show_tooltip): Set "strikeout" argument on created tooltip. svn path=/trunk/; revision=9328
* Use e_canvas_hide_tooltip and e_canvas_popup_tooltip.Christopher James Lahey2001-04-163-68/+19
| | | | | | | | | | | | | | 2001-04-15 Christopher James Lahey <clahey@ximian.com> * e-cell-text.c (tooltip_event): Use e_canvas_hide_tooltip and e_canvas_popup_tooltip. * e-table-item.c: Cleaned this up. Removed some #if 0 and replaced others with #ifdefs. * e-table-tooltip.h: Removed some unnecessary fields. svn path=/trunk/; revision=9326
* Cleaned this up. Removed some #if 0 and replaced others with #ifdefs.Christopher James Lahey2001-04-151-59/+4
| | | | | | | | | 2001-04-15 Christopher James Lahey <clahey@ximian.com> * e-table-item.c: Cleaned this up. Removed some #if 0 and replaced others with #ifdefs. svn path=/trunk/; revision=9321
* Set "bold" argument on created tooltip. Adjusted position of displayedChristopher James Lahey2001-04-154-31/+32
| | | | | | | | | | | | | | | | | | 2001-04-15 Christopher James Lahey <clahey@ximian.com> * e-cell-text.c (ect_show_tooltip): Set "bold" argument on created tooltip. Adjusted position of displayed tooltip. * e-cell-tree.c (offset_of_node): Changed it so that this function handles knowing whether on not to indent non expandable first level nodes. This makes things more consistent. * e-table-item.c (eti_realize): Cleaned up the ETableItem code to properly hide tooltips when going off the screen. * e-table-tooltip.h: Added a visibility_count field to ETableTooltip. svn path=/trunk/; revision=9320
* Added widget/e-hsv-utils.lo.Christopher James Lahey2001-04-151-14/+13
| | | | | | | | | | | | | | | | | | | | | 2001-04-14 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am: Added widget/e-hsv-utils.lo. * gal/widgets/Makefile.am: Added e-hsv-utils.c and e-hsv-utils.h. * gal/widgets/e-hsv-utils.c, gal/widgets/e-hsv-utils.h: Moved from gal/e-table/e-table-hsv-utils.c and gal/e-table/e-table-hsv-utils.h. Handle modifying hue saturation and value of colors. 2001-04-13 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-selection-model.c (e_selection_model_do_something): Always emit the cursor changed signal. Even if it's changed to the same row/column. svn path=/trunk/; revision=9318
* Fix memory leakDan Winship2001-04-141-1/+2
| | | | | | * e-table-header.c (eth_destroy): Fix memory leak svn path=/trunk/; revision=9301
* New cell for floats.Mikael Hallendal2001-04-134-0/+906
| | | | | | | | | | | | | | 2001-04-13 Mikael Hallendal <micke@codefactory.se> * e-cell-float.[ch]: New cell for floats. * e-cell-spin-button.[ch]: New cell for spin-button. * Makefile.am: - Added e-cell-spin-button.[ch] - Added e-cell-float.[ch] svn path=/trunk/; revision=9294
* Upped the version number to 0.6.99.0. Upped the so number to 6.Christopher James Lahey2001-04-1310-114/+396
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-12 Christopher James Lahey <clahey@ximian.com> * configure.in: Upped the version number to 0.6.99.0. Upped the so number to 6. * docs/etablexml.txt: Made some updates here. * tests/test-tree-1.c, tests/test-tree-3.c: Added NULL, NULL to the call to e_tree_memory_callbacks_new. From gal/e-table/ChangeLog: 2001-04-12 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_cursor_change): Only move the screen to show the cursor if there are no changes pending. Updated the commented out code for alternating colors a bit. * e-table-model.c, e-table-model.h: Added e_table_model_has_change_pending. * e-tree-memory-callbacks.c, e-tree-memory-callbacks.h: Added has_get_node_by_id and get_node_by_id. * e-tree-model.c, e-tree-model.h: Added e_tree_model_has_get_node_by_id and e_tree_model_get_node_by_id. Added e_tree_model_has_change_pending. * e-tree-selection-model.c: Handle the selection and cursor properly across the tree changing. * e-tree-sorted.c: Implemented has_get_node_by_id and get_node_by_id, and has_changes_pending. * e-tree-table-adapter.c: Implemented has_changes_pending. Fixed an array underflow. svn path=/trunk/; revision=9289
* Return TRUE for left and right arrows.Christopher James Lahey2001-04-111-0/+2
| | | | | | | | | 2001-04-11 Christopher James Lahey <clahey@ximian.com> * e-tree.c (item_key_press): Return TRUE for left and right arrows. svn path=/trunk/; revision=9234
* Put debugging stuff in d().Christopher James Lahey2001-04-111-3/+5
| | | | | | | | 2001-04-10 Christopher James Lahey <clahey@ximian.com> * e-table-item.c: Put debugging stuff in d(). svn path=/trunk/; revision=9220
* #include "gal/widgets/e-unicode.h".Christopher James Lahey2001-04-111-0/+1
| | | | | | | | 2001-04-10 Christopher James Lahey <clahey@ximian.com> * e-table.c: #include "gal/widgets/e-unicode.h". svn path=/trunk/; revision=9218
* i18n fixes.Gediminas Paulauskas2001-04-111-1/+1
| | | | | | | | | | | | | | | i18n fixes. 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * gal/widgets/e-unicode.c (e_utf8_*_*_string): if (!string) return NULL; to avoid crashes in strlen(NULL). TODO: need g_strlen which does that. 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * e-table.c (et_real_construct): convert click_to_add_message locale->utf8. svn path=/trunk/; revision=9214
* Changed resizeable to resizable in ETableCol for consistency.Christopher James Lahey2001-04-106-21/+25
| | | | | | | | | | | | | | | 2001-04-09 Christopher James Lahey <clahey@ximian.com> * e-table-col.c, e-table-col.h, e-table-header-item.c, e-table-header.c, e-table-item.c: Changed resizeable to resizable in ETableCol for consistency. * e-tree-selection-model.c (etsm_row_of_node): Return -1 here if the path isn't found. (etsm_sorted_node_changed): If cursor_row is -1, make cursor_col -1 as well. svn path=/trunk/; revision=9211
* add "break;" to otherwise-empty "default:" cases to make them ANSI.Dan Winship2001-04-081-0/+2
| | | | | | | * e-cell-tree.c (ect_event): add "break;" to otherwise-empty "default:" cases to make them ANSI. svn path=/trunk/; revision=9199
* Some small header cleanups & fixes, and fix to translate all popup menusGediminas Paulauskas2001-04-051-3/+1
| | | | | | | | | | | | (woohoo!): 2001-04-05 Gediminas Paulauskas <menesis@delfi.lt> * gal/widgets/e-popup-menu.c: Copied gnome_app_helper_gettext function here, and use it for translating menu names (they are passed from app as well as from gal in arrays with N_(), and domains differ). svn path=/trunk/; revision=9190
* Call cursor_activated as well.Christopher James Lahey2001-04-041-1/+6
| | | | | | | | | 2001-04-04 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c (e_tree_selection_model_change_cursor): Call cursor_activated as well. svn path=/trunk/; revision=9176
* Fixed headers.Christopher James Lahey2001-04-046-12/+26
| | | | | | | | | | | | | 2001-04-04 Christopher James Lahey <clahey@ximian.com> * e-table-config.c, e-table-item.c, e-table-memory.c, e-table-sort-info.c, e-table-specification.c, e-tree-sorted.c: Fixed headers. * e-table-config.c, e-table-specification.c: Replaced strcasecmp with g_strcasecmp. svn path=/trunk/; revision=9174
* Made this work properly for models with 0 rows in the tree table adapter.Christopher James Lahey2001-04-041-1/+14
| | | | | | | | | 2001-04-04 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c: Made this work properly for models with 0 rows in the tree table adapter. svn path=/trunk/; revision=9173
* Added this function.Christopher James Lahey2001-04-043-0/+11
| | | | | | | | | | | | 2001-04-04 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c, e-tree-selection-model.h (e_tree_selection_model_change_cursor): Added this function. * e-tree.c (e_tree_set_cursor): Screwed up moving the cursor a small bit when I changed this to be faster before. Fixed it. svn path=/trunk/; revision=9171
* Make it so you can switch checking around the last access on and off forChristopher James Lahey2001-04-042-0/+8
| | | | | | | | | | | | | 2001-04-04 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c: Make it so you can switch checking around the last access on and off for tuning purposes. * e-tree-table-adapter.c: Apparently, ETreeTableAdapter is much faster if the value_at function doesn't change the last_access variable. svn path=/trunk/; revision=9170
* Added e_tree_selection_model_select_single_path and made selection_startChristopher James Lahey2001-04-045-47/+150
| | | | | | | | | | | | | | | | | | | | 2001-04-04 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c, e-tree-selection-model.h: Added e_tree_selection_model_select_single_path and made selection_start be the path as it should be instead of the row. * e-tree-sorted.c: Added a last_access variable to speed up access. * e-tree-table-adapter.c: Made checking last_access look at the 10 values before and after the listed value to look for the value requested. * e-tree.c: Call e_tree_selection_model_select_single_path if E_TREE_USE_TREE_SELECTION. svn path=/trunk/; revision=9169
* Fixed this to not call the callback with a row of -1.Christopher James Lahey2001-04-041-1/+2
| | | | | | | | | 2001-04-04 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c (etsm_row_foreach_cb): Fixed this to not call the callback with a row of -1. svn path=/trunk/; revision=9167
* Turn on E_TREE_USE_TREE_SELECTION.Christopher James Lahey2001-04-041-1/+1
| | | | | | | | | 2001-04-04 Christopher James Lahey <clahey@ximian.com> * e-tree.h (E_TREE_USE_TREE_SELECTION): Turn on E_TREE_USE_TREE_SELECTION. svn path=/trunk/; revision=9165
* Fix headers. Ditto. Ditto. Ditto. Ditto. Ditto. Ditto. Ditto. Ditto.Kjartan Maraas2001-04-0435-52/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-04 Kjartan Maraas <kmaraas@gnome.org> * e-cell-date.c: Fix headers. * e-cell-number.c: Ditto. * e-cell-pixbuf.[ch]: Ditto. * e-cell-size.c: Ditto. * e-cell-text.c: Ditto. * e-cell-tree.c: Ditto. * e-table-click-to-add.[ch]: Ditto. * e-table-column-specification.h: Ditto. * e-table-config-field.c: Ditto. * e-table-config.[ch]: Ditto. * e-table-example-2.c: Ditto. * e-table-field-chooser-dialog.[ch]: Ditto. * e-table-field-chooser-item.c: Ditto. * e-table-field-chooser.h: Ditto. * e-table-group-container.c: Ditto. * e-table-item.c: Ditto * e-table-memory.c: Ditto. * e-table-selection-model.c: Ditto. * e-table-sorter.c: Ditto. * e-table-subset-variable.c: Ditto. * e-table.c: Ditto. * e-tree-memory.c: Ditto. * e-tree-model.c: Ditto. * e-tree-selection-model.[ch]: Ditto. * e-tree-sorted-variable.c: Ditto. * e-tree-sorted.c: Ditto. * e-tree-table-adapter.c: Ditto. * e-tree.[ch]: Same here. svn path=/trunk/; revision=9164
* Fixed an off by one error.Richard Hult2001-04-041-1/+1
| | | | | | | | | 2001-04-03 Richard Hult <rhult@codefactory.se> * e-tree-table-adapter.c (etta_proxy_node_inserted): Fixed an off by one error. svn path=/trunk/; revision=9157
* Add argument to get the table adapter. (et_set_arg): Add arguments forRichard Hult2001-04-043-1/+117
| | | | | | | | | | | | | | | 2001-04-03 Richard Hult <rhult@codefactory.se> * e-tree.c (et_get_arg): Add argument to get the table adapter. (et_set_arg): Add arguments for setting drawing of the grid and focus. * e-tree-model.c, e-tree-model.h (e_tree_model_node_traverse): Fill in missing implementation. (e_tree_model_node_traverse_preorder): Likewise, but preorder traversal. svn path=/trunk/; revision=9156
* forgot last timeGediminas Paulauskas2001-04-041-50/+0
| | | | svn path=/trunk/; revision=9131
* Typo fix; call e_cell_unrealize(), not e_cell_realize().Federico Mena Quintero2001-04-034-7/+9
| | | | | | | | | | | | | | | | | | | 2001-04-02 Federico Mena Quintero <federico@ximian.com> * e-cell-popup.c (ecp_unrealize): Typo fix; call e_cell_unrealize(), not e_cell_realize(). * e-cell-text.c (ect_event): Removed fallback "else", from "if (edit_display)"since our planned return value is already zero and we do need to unbuild_current_cell() instead of returning immediately. * e-table-state.c (etst_destroy): Free the expansions field. * e-table.c (e_table_set_state_object): Do not ref the header since we just created it! svn path=/trunk/; revision=9123
* Don't draw the button if it's less than 1 pixel wide.Christopher James Lahey2001-04-032-1/+7
| | | | | | | | | | | | | 2001-04-03 Christopher James Lahey <clahey@ximian.com> * e-table-header-item.c (ethi_draw): Don't draw the button if it's less than 1 pixel wide. * e-tree-table-adapter.c (etta_proxy_node_inserted): Fixed a small array overrun (wasn't causing problems, but it's best to be correct.) svn path=/trunk/; revision=9120
* Ahem, the ETableItem argument is now "selection_model", notFederico Mena Quintero2001-04-031-2/+2
| | | | | | | | | 2001-04-02 Federico Mena Quintero <federico@ximian.com> * e-table-click-to-add.c (finish_editing): Ahem, the ETableItem argument is now "selection_model", not "table_selection_model". svn path=/trunk/; revision=9108
* Removed glade.h files -- xml-i18n-tools generates them itself.Gediminas Paulauskas2001-04-025-28/+0
| | | | | | | | | | Updated glade files not to save strings. Updated Makefiles. ...nad my translation svn path=/trunk/; revision=9094
* No one responds on IRC, explained everything in bugzilla and these changelogs.Gediminas Paulauskas2001-04-022-4/+4
| | | | | | | | | | | | | | | | | | | | | | | 2001-04-01 Gediminas Paulauskas <menesis@delfi.lt> * gal-define-views-dialog.c, gal-view-new-dialog.c: replaced glade_xml_new with glade_xml_new_with_domain. fixes #2030 2001-04-01 Gediminas Paulauskas <menesis@delfi.lt> * e-table-config.c, e-table-field-chooser.c: replaced glade_xml_new with glade_xml_new_with_domain. 2001-04-01 Gediminas Paulauskas <menesis@delfi.lt> * gal/widgets/e-categories.c: replaced glade_xml_new with glade_xml_new_with_domain. * gal/widgets/e-popup-menu.c: call gettext on every menu item. Works only on popup menus of gal, not evolution (different domain). wrapped every category name in N_() and call _() where appriopriate, fixes #2029, but #2013 appears. svn path=/trunk/; revision=9091
* Monitor the sorted model and send selection and cursor changed signals.Christopher James Lahey2001-04-021-1/+111
| | | | | | | | | 2001-04-01 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c: Monitor the sorted model and send selection and cursor changed signals. svn path=/trunk/; revision=9090
* Made this traverse the source model instead of the sorted model since theChristopher James Lahey2001-04-021-10/+9
| | | | | | | | | | | 2001-04-01 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c (etsm_foreach_all_recurse, etsm_foreach_recurse, e_tree_selection_model_foreach): Made this traverse the source model instead of the sorted model since the selection model is in the order of the source model. svn path=/trunk/; revision=9089
* Fixed some bugs with the privitization of ETreeSelectionModel.Christopher James Lahey2001-04-012-8/+7
| | | | | | | | | | | | 2001-04-01 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c: Fixed some bugs with the privitization of ETreeSelectionModel. * e-tree.c: One more required change to make it work with E_TREE_USE_TREE_SELECTION on. svn path=/trunk/; revision=9084
* Added e-tree-selection-model.c. (libetableinclude_HEADERS): AddedChristopher James Lahey2001-04-012-0/+35
| | | | | | | | | | | | | 2001-04-01 Christopher James Lahey <clahey@ximian.com> * Makefile.am (libetable_la_SOURCES): Added e-tree-selection-model.c. (libetableinclude_HEADERS): Added e-tree-selection-model.h. * e-tree.c, e-tree.h: Added code to use ETreeSelectionModel if the string E_TREE_USE_TREE_SELECTION is defined. svn path=/trunk/; revision=9082
* Initialize all necessary fields here.Christopher James Lahey2001-04-011-0/+18
| | | | | | | | 2001-03-31 Christopher James Lahey <clahey@ximian.com> * e-tree.c (e_tree_init): Initialize all necessary fields here. svn path=/trunk/; revision=9081
* Roll back another part of the change.Christopher James Lahey2001-04-011-1/+5
| | | | | | | | | 2001-03-31 Christopher James Lahey <clahey@ximian.com> * e-tree.c (et_real_construct): Roll back another part of the change. svn path=/trunk/; revision=9080
* Accidently committed this with using the tree selection model turned on.Christopher James Lahey2001-04-012-19/+2
| | | | | | | | | 2001-03-31 Christopher James Lahey <clahey@ximian.com> * e-tree.c, e-tree.h: Accidently committed this with using the tree selection model turned on. Rolled back this change. svn path=/trunk/; revision=9076
* Include <gal/util/e-util.h> here.Christopher James Lahey2001-04-015-639/+796
| | | | | | | | | | | | | | 2001-03-31 Christopher James Lahey <clahey@ximian.com> * e-tree-scrolled.c: Include <gal/util/e-util.h> here. * e-tree-selection-model.c, e-tree-selection-model.h: Privatized this class. Cleaned this up a bit. Added handlers for signals from the model. * e-tree.c, e-tree.h: Privatized this class. svn path=/trunk/; revision=9075
* Set orig_position properly on inserted nodes.Christopher James Lahey2001-04-011-2/+3
| | | | | | | | | 2001-03-31 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c (ets_proxy_node_inserted): Set orig_position properly on inserted nodes. svn path=/trunk/; revision=9074
* Made e_tree_selection_model_foreach work. (etsm_select_all): MadeChristopher James Lahey2001-03-311-8/+15
| | | | | | | | | | | 2001-03-31 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c (etsm_foreach_all_recurse): Made e_tree_selection_model_foreach work. (etsm_select_all): Made etsm_select_all work. (update_parents): Fixed a crash. svn path=/trunk/; revision=9073
* Removed this since it's out of date. Replaced by tests/test-table-1.c.Christopher James Lahey2001-03-311-287/+0
| | | | | | | | | 2001-03-31 Christopher James Lahey <clahey@ximian.com> * e-table-example-1.c: Removed this since it's out of date. Replaced by tests/test-table-1.c. svn path=/trunk/; revision=9072
* New implementation based on a tree instead of a hash table.Christopher James Lahey2001-03-314-58/+433
| | | | | | | | | | | | 2001-03-31 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c, e-tree-selection-model.h: New implementation based on a tree instead of a hash table. * e-tree-sorted.c, e-tree-sorted.h: Added e_tree_sorted_num_children. svn path=/trunk/; revision=9070
* Fixed little bug, add adjustments.Tambet Ingo2001-03-311-1/+4
| | | | | | | | | 2001-03-31 Tambet Ingo <tambet@ximian.com> * e-table-scrolled.c (e_table_scrolled_new_from_spec_file): Fixed little bug, add adjustments. svn path=/trunk/; revision=9068
* Fixed removing the last child of a node.Christopher James Lahey2001-03-311-4/+29
| | | | | | | | | 2001-03-30 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c (etta_proxy_node_removed): Fixed removing the last child of a node. svn path=/trunk/; revision=9051
* removed #include <gal/e-table/e-tree-selection-model.h>Radek Doulik2001-03-301-1/+0
| | | | | | | | | 2001-03-30 Radek Doulik <rodo@ximian.com> * e-tree.h: removed #include <gal/e-table/e-tree-selection-model.h> svn path=/trunk/; revision=9044
* Made these use GTK_TYPE_GDK_EVENT whenever sending an event through theChristopher James Lahey2001-03-305-17/+23
| | | | | | | | | | | | | | | 2001-03-30 Christopher James Lahey <clahey@ximian.com> * e-table-group.c, e-table-header-item.c, e-table-item.c, e-table.c, e-tree.c: Made these use GTK_TYPE_GDK_EVENT whenever sending an event through the signal system instead of GTK_TYPE_POINTER. * e-table.c, e-tree.c (set_header_canvas_width): Check that none of the variables we're going to need are NULL before executing this function. svn path=/trunk/; revision=9042
* Changed the signal "table_selection_model" to just be "selection_model"Christopher James Lahey2001-03-3010-55/+69
| | | | | | | | | | | | | | | | | | | 2001-03-30 Christopher James Lahey <clahey@ximian.com> * e-table-group-container.c, e-table-group-container.h, e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c, e-table-item.h, e-table.c, e-tree.c: Changed the signal "table_selection_model" to just be "selection_model" everywhere and made it be ESelectionModels instead of ETableSelectionModels for generality. * e-table-item.c (eti_event): Make right arrow and left arrow accessible as events that can be caught. * e-tree-sorted.c, e-tree-sorted.h (e_tree_sorted_orig_position): Added this function. svn path=/trunk/; revision=9041
* Updated to set the width of the header canvas to be equal to the width ofChristopher James Lahey2001-03-303-25/+73
| | | | | | | | | | | 2001-03-29 Christopher James Lahey <clahey@ximian.com> * e-table.c, e-tree.c, e-tree.h: Updated to set the width of the header canvas to be equal to the width of the table canvas to avoid infinite loops. Added left arrow and right arrow as tree collapse and expand bindings. svn path=/trunk/; revision=9035
* New class implementing a tree model. Not finished yet or in use, but IChristopher James Lahey2001-03-282-0/+563
| | | | | | | | | | 2001-03-27 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c, e-tree-selection-model.h: New class implementing a tree model. Not finished yet or in use, but I wanted to get it checked in. svn path=/trunk/; revision=8987
* Updated these to match the new e_tree_model_node_removed signal.Christopher James Lahey2001-03-275-45/+95
| | | | | | | | | | | | | | | | 2001-03-26 Christopher James Lahey <clahey@ximian.com> * e-tree-memory.c, e-tree-table-adapter.c: Updated these to match the new e_tree_model_node_removed signal. * e-tree-model.c, e-tree-model.h: Added an old_position parameter to the node_removed signal so that it would be completely deterministic. * e-tree-sorted.c: Changed this so that paths keep track of their original position. This makes sorting much faster. svn path=/trunk/; revision=8953
* un Mar 25 22:31:19 2001 George Lebl <jirka@5z.com>George Lebl2001-03-261-4/+4
| | | | | | | * e-tree.c (e_tree_class_init): Fix gtk_signal_new arguments, INT and POINTER were switched causing my alpha to go nuts. svn path=/trunk/; revision=8935
* ref the sort_info taken from the state object. Ditto. Fixes the last ETreeDan Winship2001-03-262-0/+2
| | | | | | | | | * e-table.c (et_real_construct): ref the sort_info taken from the state object. * e-tree.c (et_real_construct): Ditto. Fixes the last ETree crash-on-exit bug for me. svn path=/trunk/; revision=8929
* Added e-selection-model-array.lo.Christopher James Lahey2001-03-252-31/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-25 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added e-selection-model-array.lo. * gal/widgets/Makefile.am: Added e-selection-model-array.c and e-selection-model-array.h. * gal/widgets/e-selection-model-array.c, gal/widgets/e-selection-model-array.h: New class that implements the details of ESelectionModel. ESelectionModel has been refactored to just be a this virtual class. ESelectionModelArray is the original implementation of ESelectionModel. This is what most people will want to use or derive from. * gal/widgets/e-selection-model-simple.c, gal/widgets/e-selection-model-simple.h: Made the parent class of this be ESelectionModelArray instead of ESelectionModel. Changed some function names to match this change. * gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h: Refactored most of the implementation of this class into ESelectionModelArray. Now just a thin virtual class. From gal/e-table/ChangeLog: 2001-03-25 Christopher James Lahey <clahey@ximian.com> * e-table-selection-model.c, e-table-selection-model.h: Made the parent object of this be ESelectionModelArray instead of ESelectionModel due to their refactoring. Changed the commented out code for saving the selection a bit. svn path=/trunk/; revision=8924
* Added '=' and '-' as tree node expand and collapseChristopher James Lahey2001-03-251-3/+11
| | | | | | | | | 2001-03-25 Christopher James Lahey <clahey@ximian.com> * e-tree.c (item_key_press): Added '=' and '-' as tree node expand and collapse svn path=/trunk/; revision=8923
* Properly remove old items from the ETableExtras if they are replaced byChristopher James Lahey2001-03-241-0/+3
| | | | | | | | | 2001-03-23 Christopher James Lahey <clahey@ximian.com> * e-table-extras.c: Properly remove old items from the ETableExtras if they are replaced by new objects. svn path=/trunk/; revision=8919
* Made this only up the insert_count if it actually had to do any nonChristopher James Lahey2001-03-241-3/+4
| | | | | | | | | | 2001-03-23 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c (reposition_path): Made this only up the insert_count if it actually had to do any non constant work to reposition the path. svn path=/trunk/; revision=8918
* Ignore these signals if we aren't realized yet.Christopher James Lahey2001-03-231-4/+19
| | | | | | | | | 2001-03-23 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_cursor_change, eti_cursor_activated): Ignore these signals if we aren't realized yet. svn path=/trunk/; revision=8917
* Made this not create the new font until realize instead of at new_viewChristopher James Lahey2001-03-232-15/+28
| | | | | | | | | | | | | 2001-03-23 Christopher James Lahey <clahey@ximian.com> * e-cell-text.c: Made this not create the new font until realize instead of at new_view time. * e-table-item.c: Don't request heights or do other things that you aren't allowed to do before realization unless you're realized. svn path=/trunk/; revision=8915
* Fixed the g_return_if_fail here to allow for appending.Christopher James Lahey2001-03-221-1/+1
| | | | | | | | | 2001-03-22 Christopher James Lahey <clahey@ximian.com> * e-table-memory.c (e_table_memory_insert): Fixed the g_return_if_fail here to allow for appending. svn path=/trunk/; revision=8889
* Make `ETableSortInfo' non-floating and use _unref, not _destroy, toEttore Perazzoli2001-03-222-1/+3
| | | | | | get rid of the ETableSortInfo in ETableState's destroy method. svn path=/trunk/; revision=8888
* Fixed the parity on all the g_return_ifs and g_return_val_ifs.Christopher James Lahey2001-03-221-8/+8
| | | | | | | | | 2001-03-22 Christopher James Lahey <clahey@ximian.com> * e-table-memory.c: Fixed the parity on all the g_return_ifs and g_return_val_ifs. svn path=/trunk/; revision=8887
* Made this able to take -1 to denote appending to the table. Also, removedChristopher James Lahey2001-03-222-23/+48
| | | | | | | | | | | | | | 2001-03-22 Christopher James Lahey <clahey@ximian.com> * e-table-memory.c, e-table-memory.h (e_table_memory_insert): Made this able to take -1 to denote appending to the table. Also, removed the node_ from the name of this function. (e_table_memory_remove): Removed the node_ from the name of this function. (e_table_memory_clear): New function which sets the table to empty. svn path=/trunk/; revision=8886
* Changed this to derefence the pointers passed in from qsort as we shouldChristopher James Lahey2001-03-221-2/+7
| | | | | | | | | | | | 2001-03-22 Christopher James Lahey <clahey@ximian.com> * e-tree-memory.c (sort_callback): Changed this to derefence the pointers passed in from qsort as we should instead of just casting them. (e_tree_memory_sort_node): Set the first_child and last_child of the node changed. svn path=/trunk/; revision=8882
* New function to allow you to do non live sorts with weird rules.Christopher James Lahey2001-03-222-12/+102
| | | | | | | | | 2001-03-22 Christopher James Lahey <clahey@ximian.com> * e-tree-memory.c, e-tree-memory.h (e_tree_memory_sort_node): New function to allow you to do non live sorts with weird rules. svn path=/trunk/; revision=8881
* Make `ETableState' a non-`GTK_FLOATING' object. Otherwise theEttore Perazzoli2001-03-211-0/+4
| | | | | | | reference counts are messed up, and a segfault occurs when destroying the ETable widget. svn path=/trunk/; revision=8867
* Added these classes.Christopher James Lahey2001-03-214-0/+641
| | | | | | | | | | | | | 2001-03-20 Christopher James Lahey <clahey@ximian.com> * e-table-memory-callbacks.c, e-table-memory-callbacks.h, e-table-memory.c, e-table-memory.h: Added these classes. * Makefile.am: Added e-table-memory-callbacks.c, e-table-memory-callbacks.h, e-table-memory.c, and e-table-memory.h. svn path=/trunk/; revision=8857
* Fixed a typo in the word horiztonal.Christopher James Lahey2001-03-211-1/+1
| | | | | | | | 2001-03-20 Christopher James Lahey <clahey@ximian.com> * e-table.c: Fixed a typo in the word horiztonal. svn path=/trunk/; revision=8852
* Bumped the version number to 05.99.9.Christopher James Lahey2001-03-2114-48/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-20 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the version number to 05.99.9. From gal/e-table/ChangeLog: 2001-03-20 Christopher James Lahey <clahey@ximian.com> * e-table-click-to-add.c: Turn on the vertical grid. * e-table-group-container.c, e-table-group-container.h, e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c, e-table-item.h: Replaced the "drawgrid" argument with "horizontal_draw_grid" and "vertical_draw_grid" arguments. * e-table-specification.c, e-table-specifcation: Replaced the draw_grid setting with the horizontal_draw_grid and vertical_draw_grid settings. If the draw-grid property is set in a ETableSpecification it is still obeyed and overrides the vertical-draw-grid and horizontal-draw-grid properties. * e-table.c, e-table.h, e-tree.c, e-tree.h: Deal with the horizontal_draw_grid and vertical_draw_grid changes. * e-tree-model.h: Added a missing include. svn path=/trunk/; revision=8846
* Deal with proxy_node_changed being called on a different root node thanChristopher James Lahey2001-03-2036-2461/+7007
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-19 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c (ets_proxy_node_changed): Deal with proxy_node_changed being called on a different root node than the one we have in our tree. * e-tree-table-adapter.c: Did some general clean up here. * Merged branch: 2001-03-19 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c (find_child_path): Added this function to allow us to find paths that have been removed from the source. (ets_proxy_node_removed): Fixed the memmove here a bit. Call find_child_path. * e-tree-table-adapter.c (find_node): Check that the passed in path isn't NULL. 2001-03-19 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_reflow): Get width from header object instead of calculating it ourselves. * e-table-selection-model.c: Turn off selection saving since it's so slow. * e-table.c (e_table_set_state_object): Set the width of the newly created header object. * e-tree.c (e_tree_set_state_object): Set the width of the newly created header object. (tree_canvas_size_allocate): Don't bother setting the dimensions of the white background twice. 2001-03-18 Christopher James Lahey <clahey@ximian.com> * e-table-selection-model.c, e-table-selection-model.h: Made ETableSelectionModel save the cursor properly across changed signals if has_save_id is true. 2001-03-18 Christopher James Lahey <clahey@ximian.com> * e-table-selection-model.c, e-table-selection-model.h: Made ETableSelectionModel save selection properly across changed signals if has_save_id is true. * e-tree-memory.c: A couple of typos. 2001-03-18 Christopher James Lahey <clahey@ximian.com> * e-tree-memory.c, e-tree-sorted.c: Send pre_changes properly. 2001-03-18 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c: Send pre_changes when performing set_expanded or root_node_set_visible. 2001-03-18 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c (ets_is_expandable): When the API requests whether the object is expandable and it isn't, make sure to send a signal when it becomes expandable. * e-tree-table-adapter.c: Made it so that in a number of cases where it doesn't need to create an empty hash table node if the current tree node has no children, it doesn't. 2001-03-18 Christopher James Lahey <clahey@ximian.com> * e-tree-memory-callbacks.c, e-tree-memory-callbacks.h (etmc_has_save_id, etmc_get_save_id): Added has_save_id and get_save_id to the list of methods supported by e_tree_memory_callbacks. * e-tree-table-adapter.c, e-tree-table-adapter.h: Added saving of expanded nodes. 2001-03-18 Christopher James Lahey <clahey@ximian.com> * e-table-model.c, e-table-model.h (e_table_model_get_save_id): Changed row_save_id to get_save_id to be consistent with ETree. * e-tree-model.c, e-tree-model.h: Added "pre_change" signal. Added has_save_id and get_save_id methods. * e-tree-sorted.c: Proxy pre_change signal. Implemented has_save_id and get_save_id. If the base model doesn't provide has_save_id then we g_strdup_printf the pointer of the base model ETreePath as the save_id. * e-tree-table-adapter.c: Proxy pre_change signal. If base model has_save_id, then use the results of get_save_id as the key for the hash table of node attributes. Otherwise use the pointer as before. 2001-03-17 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c (ets_sort_idle): Fixed it so that all nodes get sorted properly instead of just the top node. 2001-03-17 Christopher James Lahey <clahey@ximian.com> * e-table-sorting-utils.c (e_table_sorting_utils_tree_sort): Made tree sorting faster by using a cache. * e-tree-sorted.c: Added commented out debugging g_prints. 2001-03-17 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c: Switched to using GMemChunks. 2001-03-17 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c (resort_node): Made it so that children of a node that's being sorted don't send changed signals. 2001-03-17 Christopher James Lahey <clahey@ximian.com> * e-table-sorting-utils.c, e-table-sorting-utils.h: Switched to using e_sort and e_search instead of qsort and a linear search. Added the tree functions e_table_sorting_utils_tree_sort, e_table_sorting_utils_tree_check_position, and e_table_sorting_utils_tree_insert. * e-tree-sorted.c: Made this actually do sorting. * e-tree-table-adapter.c (etta_proxy_node_changed): The old_size needs to be the number of visible children + 1 to include the top node. * e-tree.c (e_tree_set_state_object): Set the sort_info on the ETreeSorted when you get a new sort_info. 2001-03-16 Christopher James Lahey <clahey@ximian.com> * Makefile.am: Added e-tree-sorted.c and e-tree-sorted.h. * e-table-item.c (eti_realize_cell_views): Only realize the cells if they're not realized already and if the canvas is realized. * e-table-sorted.c (ets_proxy_model_cell_changed): Matched the change to the signature of e_table_sorting_utils_affects_sort. * e-table-sorting-utils.c, e-table-sorting-utils.h (e_table_sorting_utils_affects_sort): Changed the signature of this function to not take the ETableModel source since it doesn't use it and we need to use this function for ETreeSorted which doesn't have an ETableModel. * e-tree-memory.c (etmm_get_expanded_default): Actually implement the get_expanded_default for this tree. * e-tree-model.h: Cleaned up the indentation here. * e-tree-sorted.c, e-tree-sorted.h: New class meant to be used for sorting trees. It doesn't actually sort yet. It simply acts as an ETreeProxy which is the hardest part of making ETreeSorted. * e-tree.c, e-tree.h: Made this use an ETreeSorted. 2001-03-14 Christopher James Lahey <clahey@ximian.com> * e-table-item.c, e-table-item.h, e-table-selection-model.c, e-table-selection-model.h, e-table-sorted.c, e-table-sorted.h, e-table-subset.c, e-table-subset.h, e-table.c, e-table.h: Switch to handling e_table_model_rows_inserted instead of e_table_model_row_inserted and e_table_model_rows_deleted instead of e_table_model_row_deleted. * e-table-model.c, e-table-model.h: Replaced the signals "model_row_inserted" and "model_row_deleted" with "model_rows_inserted" and "model_rows_deleted" so that when multiple rows are inserted or deleted at the same time they can be handled properly. * e-tree-table-adapter.c: Call "model_rows_inserted" and "model_rows_deleted" instead of "model_changed" when inserting or deleting multiple rows. 2001-03-14 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (e_table_item_row_diff): Made this not count the pixel between rows if it isn't there. 2001-03-14 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_header_structure_changed): Properly attach & realize cell views here. 2001-03-13 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c (etta_proxy_node_removed): Check that parent_node and parent aren't NULL before making function calls on them. 2001-03-13 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (confirm_height_cache): Fixed a height cache miscalculation. * e-tree-table-adapter.c (find_first_child_node): Made the semantics of this mean that find_first_child_node(adapter, -1) means return the first node in the tree. 2001-03-13 Christopher James Lahey <clahey@ximian.com> * e-table-extras.c: Added a "string-integer" comparison function to the default %ETableExtras so you can do comparisons based on integer value even if you using strings for the data (this lets you do editable numbers, for instance.) * e-table-item.c: Rearranged it a bit so that if you have draw_grid off it doesn't add space for the horizontal lines, nor leave them the background color. * e-table-model.c, e-table-model.h: Added the row_save_id and has_save_id methods to %ETableModel. * e-tree.c, e-tree.h: Replaced e_tree_compute_location with e_tree_get_cell_at. 2001-03-08 Christopher James Lahey <clahey@ximian.com> * Makefile.am: Added e-table/e-table-utils.c, e-table/e-tree-memory-callbacks.c, e-table/e-tree-memory.c, e-table/e-tree-scrolled.c, e-table/e-tree-table-adapter.c, and e-table/e-tree.c. Removed e-table/e-tree-simple.c. Added e-table/e-table-utils.h, e-table/e-tree-memory-callbacks.h, e-table/e-tree-memory.h, e-table/e-tree-scrolled.h, e-table/e-tree-table-adapter.h, and e-table/e-tree.h. Removed e-table/e-tree-simple.h. * e-cell-tree.c: Updated this for the new tree. * e-table-item.c: Added some redraw requests where appropriate. * e-table-item.h: Fixed an incorrect class method declaration. * e-table-model.c, e-table-model.h: Removed e_table_model_has_sort_group and e_table_model_row_sort_group. * e-table-scrolled.h: Removed unused headers. * e-table-simple.c, e-table-simple.h: Rearranged this a bit. * e-table-sorter.c, e-table-sorting-utils.c, e-table-sorting-utils.h: Removed sort group stuff. Added the function e_table_sorting_utils_check_position. * e-table-utils.c, e-table-utils.h: Utility functions for ETable and ETree. * e-table.c: Moved some of the functionality from here to e-table-utils.c so that it can be reused by ETree. * e-tree-memory-callbacks.c, e-tree-memory-callbacks.h: Class to implement an ETreeMemory as callbacks instead of overriding the class. * e-tree-memory.c, e-tree-memory.h: ETreeModel that stores a tree of physical nodes. * e-tree-model.c, e-tree-model.h: Removed most of the functionality from here to the classes ETreeMemory and ETreeTableAdapter. This is now just a simple virtualized tree class. * e-tree-scrolled.c, e-tree-scrolled.h: New class. An ETree in an EScrollFrame. * e-tree-simple.c: Small change. This is no longer used. * e-tree-table-adapter.c, e-tree-table-adapter.h: ETableModel that represents an ETreeModel as a table. * e-tree.c, e-tree.h: New super class kind of like ETable but for trees. End of branch svn path=/trunk/; revision=8837
* Removed extra printfsMiguel de Icaza2001-03-194-22/+29
| | | | svn path=/trunk/; revision=8812
* Use update_sort_and_group_config dialog instead of the non-implementedMiguel de Icaza2001-03-195-163/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-18 Miguel de Icaza <miguel@ximian.com> * e-table-config.c (sort_entry_changed): Use update_sort_and_group_config dialog instead of the non-implemented update_group_config_dialog. (update_sort_and_group_config_dialog): Update the text correctly. (sort_entry_changed): Handle empty string as not-in-set. (group_entry_changed): Handle empty string as not-in-set. (config_class_init): Fix the signal declaration for "changed", this was sending the wrong information. (update_sort_and_group_config_dialog): Use group_info here, not sort_info * e-table-header-item.c (ethi_popup_customize_view): Changed to use the "changed" signal in the ETableConfig instead of promiscously using the "apply" from the PropertyBox * e-table-config.glade: Set Hide On Close to yes for the Group-By dialog. The groups for Radio Buttons in the Glade file are global, which caused all sorts of strange behaviour and really hard to debug problems. This should be now fixed svn path=/trunk/; revision=8801
* Added #include <string.h> for strcmp(). Same for strlen().Kjartan Maraas2001-03-162-0/+2
| | | | | | | | | 2001-03-16 Kjartan Maraas <kmaraas@gnome.org> * e-cell-combo.c: Added #include <string.h> for strcmp(). * e-table-header-utils.c: Same for strlen(). svn path=/trunk/; revision=8757
* Update arguments to e_canvas_item_grab_focus. (eti_cursor_change): Ditto,Dan Winship2001-03-161-3/+3
| | | | | | | | | | * e-table-item.c (eti_event): Update arguments to e_canvas_item_grab_focus. (eti_cursor_change): Ditto, but pass FALSE! Fixes the problem of the Evolution message list stealing your focus when new mail arrives. Ha! svn path=/trunk/; revision=8746
* New public API call, `e_table_get_cell_at()'. Also upped the GALEttore Perazzoli2001-03-082-44/+42
| | | | | | version number because of that. svn path=/trunk/; revision=8587
* added "editable" Arg, to stop the user from editing the text. The user canDamon Chaplin2001-03-054-5/+74
| | | | | | | | | | | | | | 2001-03-04 Damon Chaplin <damon@ximian.com> * e-cell-text.c: added "editable" Arg, to stop the user from editing the text. The user can still select the text, though. The "editable" Arg is useful for ECellCombo where we want the user to select an item in the popup but not edit the field itself. * e-cell-combo.c: updated to select the matcing item before it pops up the list. svn path=/trunk/; revision=8544
* Fixed some warnings.Christopher James Lahey2001-03-028-223/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-01 Christopher James Lahey <clahey@ximian.com> * e-cell-pixbuf.c: Fixed some warnings. * e-table-subset.c, e-table-subset.h: Added e_table_subset_print_debugging. 2001-02-27 Christopher James Lahey <clahey@ximian.com> * e-table-sorted-variable.c: Moved etsv_compare to etsu_compare in e-table-sorting-utils.c. Moved most of the contents of etsv_add to e_table_sorting_utils_insert in e-table-sorting-utils.c and call the function. * e-table-sorted.c: Rewrote ets_proxy_row_changed, ets_proxy_row_inserted, and ets_proxy_row_deleted. * e-table-sorting-utils.c, e-table-sorting-utils.h (etsu_compare, e_table_sorting_utils_insert): Added e_table_sorting_utils_insert. * e-table-subset-variable.c: Changed this implementation to be slightly more consistent with other code. svn path=/trunk/; revision=8453
* Added new ECellPixbuf -- takes a GdkPixbuf from the model and renders itVladimir Vukicevic2001-03-011-0/+2
| | | | | | | | * e-table-extras.c: Added new ECellPixbuf -- takes a GdkPixbuf from the model and renders it centered in the table cell. svn path=/trunk/; revision=8441
* Added new ECellPixbuf -- takes a GdkPixbuf from the model and renders itVladimir Vukicevic2001-03-012-0/+289
| | | | | | | | | | | * e-cell-pixbuf.c, e-cell-pixbuf.h, Makefile.am, Makefile.am, e-table-extras.c: Added new ECellPixbuf -- takes a GdkPixbuf from the model and renders it centered in the table cell. * gal/Makefile.am: added e-cell-pixbuf.lo svn path=/trunk/; revision=8440
* Changed e_table_selection_model_clear to e_selection_model_clear.Christopher James Lahey2001-02-2816-892/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-02-27 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-completion-view.c: Changed e_table_selection_model_clear to e_selection_model_clear. * tests/test-tree-3.c: Changed E_TABLE_CURSOR_LINE to E_CURSOR_LINE. From gal/e-table/ChangeLog: 2001-02-27 Christopher James Lahey <clahey@ximian.com> * e-table-click-to-add.c, e-table-group-container.c, e-table-group-container.h, e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c, e-table-item.h, e-table-specification.c, e-table-specification.h, e-table.c, e-table.h: Changed a lot of the ETableSelectionModels to ESelectionModels, a lot of the ETableSorters to ESorters, all the ETableCursorModes to ECursorModes, and all of the ETableForeachFuncs into EForeachFuncs. * e-table-defines.h: Moved ETableForeachFunc and ETableCursorMode to e-selection-model.h. * e-table-selection-model.c, e-table-selection-model.h: Made this a subclass of ESelectionModel which simple connects to an ETableModel. * e-table-sorter.c, e-table-sorter.h: Made this a subclass of ESorter so that implements the same semantics it used to. svn path=/trunk/; revision=8422
* Prevent `gtk_signal_disconnect()' warnings when destroying aEttore Perazzoli2001-02-271-10/+18
| | | | | | | non-grouping ETable by only disconnecting the signals that are actually connected. svn path=/trunk/; revision=8401
* new abstract ECell subclass to be used as base class for popup ECells.Damon Chaplin2001-02-266-7/+1240
| | | | | | | | | | | | | | | | | 2001-02-25 Damon Chaplin <damon@ximian.com> * e-cell-popup.c: new abstract ECell subclass to be used as base class for popup ECells. * e-cell-combo.c: subclass of ECellPopup which pops up a simple list of strings. * e-table-item.c: Renamed eti_row_diff() to e_table_item_row_diff() and made public, since the ECellPopup subclasses need it. * Makefile.am: added e-cell-popup.[hc] and e-cell-combo.[hc] svn path=/trunk/; revision=8387
* Added e-table/e-table-sorting-utils.lo.Christopher James Lahey2001-02-2419-641/+1226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-02-23 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added e-table/e-table-sorting-utils.lo. From gal/e-table/ChangeLog: 2001-02-23 Christopher James Lahey <clahey@ximian.com> * Makefile.am (libetable_la_SOURCES): Added e-table-sorting-utils.c. (libetableinclude_HEADERS): Added e-table-sorting-utils.h. * e-table-group-container.c: Implemented add_array method. Use add_array to implement add_all instead of using add. Did some general clean up. * e-table-group-leaf.c, e-table-group-leaf.h: Implemented add_array method. Changed everything to use an ETableSubset variable instead of an ETableSortedVariable. Implemented it as ETableSortedVariable if there's grouping involved and ETableSorted if there isn't. * e-table-group.c, e-table-group.h: Added add_array method. Added unused get_position code. * e-table-sorted-variable.c, e-table-sorted-variable.h: Moved a lot of the actual implementation of sorting to e-table-sorting-utils.c. Got rid of the signal handlers here since we weren't using them and ETableSubset has the proxy virtual methods. * e-table-sorted.c, e-table-sorted.h: Completely replaced these files with a variation on ETableSortedVariable that doesn't have the add methods and such but instead just mimics the source model's set of rows completely. * e-table-sorter.c, e-table-sorter.h: Added functions to get at the arrays here. * e-table-sorting-utils.c, e-table-sorting-utils.h: Utility functions for doing sorting. * e-table-subset-variable.c, e-table-subset-variable.h: Added add_array method. * e-table-subset.c, e-table-subset.h: Made it so that the signal hookups to the source model's signals are virtual methods. * e-table.c, e-table.h: Don't call add_all and add and remove type functions if not grouped. Don't rebuild for sort changes unless it was either grouped before or will be grouped now. svn path=/trunk/; revision=8374
* Doh!Chris Lahey2001-02-231-10/+10
| | | | svn path=/trunk/; revision=8362
* Added a bunch of g_return_if_fails.Christopher James Lahey2001-02-231-7/+78
| | | | | | | | 2001-02-22 Christopher James Lahey <clahey@ximian.com> * e-tree-model.c: Added a bunch of g_return_if_fails. svn path=/trunk/; revision=8360
* Added some g_return_if_fails here.Christopher James Lahey2001-02-211-0/+4
| | | | | | | | 2001-02-20 Christopher James Lahey <clahey@ximian.com> * e-cell.c (e_cell_draw): Added some g_return_if_fails here. svn path=/trunk/; revision=8310
* If we are drawing a top-level tree node, without any children then dontNot Zed2001-02-211-1/+6
| | | | | | | | | | 2001-02-02 Not Zed <NotZed@Ximian.com> * e-cell-tree.c (ect_draw): If we are drawing a top-level tree node, without any children then dont offset it for the expansion image it doesn't need. svn path=/trunk/; revision=8304
* add some more (mostly empty) api docs. (e_tree_model_node_changed): passChris Toshok2001-02-201-2/+355
| | | | | | | | | | | | 2001-02-20 Chris Toshok <toshok@ximian.com> * e-tree-model.c: add some more (mostly empty) api docs. (e_tree_model_node_changed): pass the node in the "node_changed" signal. (etree_destroy): e_tree_model_node_remove our root node here to free up the tree's storage. svn path=/trunk/; revision=8302
* Changed the version number to 0.5.99.1.Christopher James Lahey2001-02-203-288/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-02-19 Christopher James Lahey <clahey@ximian.com> * configure.in: Changed the version number to 0.5.99.1. * gal/Makefile.am (libgal_la_LIBADD): Change the directories for e-table-text-model.lo, e-text-event-processor.lo, and e-text-event-processor-emacs-like.lo. Reordered the e-text directory to be after the e-table directory in build order. * gal/e-text/Makefile.am: Removed e-text-event-processor-emacs-like.c, e-text-event-processor-emacs-like.h, e-text-event-processor-types.h, e-text-event-processor.c, and e-text-event-processor.h. Added e-table-text-model.c and e-table-text-model.h. * gal/e-text/e-table-text-model.c: Changed the signature of these mehtods to match the changed signature in ETextModel. * gal/e-text/e-text-event-processor-emacs-like.c, gal/e-text/e-text-event-processor-emacs-like.h, gal/e-text/e-text-event-processor-types.h, gal/e-text/e-text-event-processor.c, gal/e-text/e-text-event-processor.h: Moved these to gal/util/. * gal/e-text/e-text.c, gal/e-text/e-text.h: Changed the includes to match the moved files. * gal/util/Makefile.am: Added e-text-event-processor-emacs-like.c, e-text-event-processor-emacs-like.h, e-text-event-processor-types.h, e-text-event-processor.c, and e-text-event-processor.h. * gal/util/e-text-event-processor-emacs-like.h, gal/util/e-text-event-processor.h: Changed the includes to match the moved files. 2001-02-19 Christopher James Lahey <clahey@ximian.com> * Makefile.am: Removed e-table-text-model.c and e-table-text-model.h. * e-table-text-model.c, e-table-text-model.h: Moved these to gal/e-text/. * e-cell-text.c: Changed the include line for e-text-event-processor.h and e-text-event-processor-emacs-like.h. svn path=/trunk/; revision=8298
* Removed setting of invalid "horizontal_scrolling" argument.Christopher James Lahey2001-02-172-10/+0
| | | | | | | | | | | 2001-02-17 Christopher James Lahey <clahey@ximian.com> * e-table.c (et_real_construct): Removed setting of invalid "horizontal_scrolling" argument. * e-table-column-model.h: Removed this as it is not used. svn path=/trunk/; revision=8268
* From a patch submitted by Murray Cumming <Murray.Cumming@mybau.com>Christopher James Lahey2001-02-1741-0/+244
| | | | | | | | | | | | | | | | | | | | | | | | 2001-02-17 Christopher James Lahey <clahey@ximian.com> From a patch submitted by Murray Cumming <Murray.Cumming@mybau.com> * e-cell-checkbox.h, e-cell-date.h, e-cell-number.h, e-cell-size.h, e-cell-text.h, e-cell-toggle.h, e-cell-tree.h, e-cell.h, e-table-click-to-add.h, e-table-col-dnd.h, e-table-col.h, e-table-column-specification.h, e-table-config-field.h, e-table-config.h, e-table-defines.h, e-table-extras.h, e-table-field-chooser-item.h, e-table-group-container.h, e-table-group-leaf.h, e-table-group.h, e-table-header-item.h, e-table-header-utils.h, e-table-header.h, e-table-item.h, e-table-model.h, e-table-one.h, e-table-selection-model.h, e-table-simple.h, e-table-sort-info.h, e-table-sorted-variable.h, e-table-sorted.h, e-table-sorter.h, e-table-specification.h, e-table-state.h, e-table-subset-variable.h, e-table-subset.h, e-table-tooltip.h, e-table-tree.h, e-tree-model.h, e-tree-simple.h, e-tree-sorted-variable.h: Added GNOME_DECLS. svn path=/trunk/; revision=8265
* Change the calculation of the maximum with of tree cell, from O(n^2) toRusty Conover2001-02-171-4/+4
| | | | | | | | | | | 2001-02-17 Rusty Conover <rconover@zootweb.com> * e-cell-tree.c (ect_max_width): Change the calculation of the maximum with of tree cell, from O(n^2) to O(n), we don't need to continually recalculate the maximum width of the subcells when calculating the width of every row. svn path=/trunk/; revision=8264
* Made it so that if you set the row or col to something not equal to -1, itChristopher James Lahey2001-02-151-0/+6
| | | | | | | | | | | 2001-02-15 Christopher James Lahey <clahey@ximian.com> * e-table-selection-model.c (e_table_selection_model_do_something): Made it so that if you set the row or col to something not equal to -1, it makes sure that the other one is also not equal to -1. svn path=/trunk/; revision=8240
* This new function updates the minimum width of all of the columns based onChristopher James Lahey2001-02-144-1/+41
| | | | | | | | | | | | | | | 2001-02-13 Christopher James Lahey <clahey@ximian.com> * e-table-header.c, e-table-header.h (e_table_header_update_horizontal): This new function updates the minimum width of all of the columns based on the data contained in that column. * e-table.c, e-table.h (changed_idle): Added a horizontal_scrolling field. Call e_table_header_update_horizontal if the model changes at all and horizontal_scrolling is set to TRUE. svn path=/trunk/; revision=8214
* Set policy of scrolled window to be automatic/automatic.Christopher James Lahey2001-02-143-6/+5
| | | | | | | | | | | | 2001-02-13 Christopher James Lahey <clahey@ximian.com> * e-table-scrolled.c (e_table_scrolled_real_construct): Set policy of scrolled window to be automatic/automatic. * e-table-specification.c, e-table-specification.h (etsp_init): Added a horizontal-scrolling attribute. svn path=/trunk/; revision=8208
* Fix the crash when ETableItems are destroyed.Christopher James Lahey2001-02-141-1/+4
| | | | | | | | | 2001-02-13 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_destroy): Fix the crash when ETableItems are destroyed. svn path=/trunk/; revision=8207
* Fix selection so that changing a model row equal to 31 mod 32 works.Christopher James Lahey2001-02-111-1/+1
| | | | | | | | | 2001-02-11 Christopher James Lahey <clahey@ximian.com> * e-table-selection-model.c (change_one_row): Fix selection so that changing a model row equal to 31 mod 32 works. svn path=/trunk/; revision=8170
* Let e_canvas_item_show_area_delayed deal with a delayed area show insteadChristopher James Lahey2001-02-111-28/+8
| | | | | | | | | | 2001-02-11 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_cursor_change): Let e_canvas_item_show_area_delayed deal with a delayed area show instead of dealing with it ourselves. svn path=/trunk/; revision=8169
* Add a missing gtk_object_ref.Dan Winship2001-02-091-0/+1
| | | | | | * e-table-sorter.c (ets_set_arg): Add a missing gtk_object_ref. svn path=/trunk/; revision=8118
* Use e_format_number.Christopher James Lahey2001-02-091-1/+1
| | | | | | | | 2001-02-08 Christopher James Lahey <clahey@ximian.com> * e-cell-number.c (ecn_get_text): Use e_format_number. svn path=/trunk/; revision=8111
* Set the dnd_code on the header properly.Christopher James Lahey2001-02-091-1/+6
| | | | | | | | | 2001-02-08 Christopher James Lahey <clahey@ximian.com> * e-table.c (e_table_setup_header): Set the dnd_code on the header properly. svn path=/trunk/; revision=8110
* Added this function. Made frozen an int so that recursive freezes andChristopher James Lahey2001-02-092-8/+26
| | | | | | | | | | 2001-02-08 Christopher James Lahey <clahey@ximian.com> * e-tree-model.c, e-tree-model.h (e_tree_model_show_node): Added this function. Made frozen an int so that recursive freezes and thaws behaves properly. svn path=/trunk/; revision=8106
* Change encoding from locale encoding to utf8.Christopher James Lahey2001-02-071-4/+6
| | | | | | | | | 2001-02-06 Christopher James Lahey <clahey@ximian.com> * e-cell-date.c (ecd_get_text): Change encoding from locale encoding to utf8. svn path=/trunk/; revision=8033
* Changed the text to pop up the Field Chooser.Christopher James Lahey2001-02-061-1/+1
| | | | | | | | | 2001-02-05 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c: Changed the text to pop up the Field Chooser. svn path=/trunk/; revision=7988
* Added a "changed" signal.Christopher James Lahey2001-02-065-11/+79
| | | | | | | | | | | | | | | 2001-02-05 Christopher James Lahey <clahey@helixcode.com> * e-table-config.c, e-table-config.h (dialog_apply): Added a "changed" signal. * e-table-sort-info.c, e-table-sort-info.h (e_table_sort_info_duplicate): Added this function. * e-table.c (e_table_set_state_object): Duplicate the state's sort_info object here. svn path=/trunk/; revision=7985
* Make some private variables static in `ETableSorter'.Ettore Perazzoli2001-02-061-4/+4
| | | | svn path=/trunk/; revision=7982
* Make this not error out if ecol is not found, but simply return -1.Christopher James Lahey2001-02-051-3/+2
| | | | | | | | | | | 2001-02-04 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (view_to_model_col): Make this not error out if ecol is not found, but simply return -1. (eti_event): Don't call view_to_model_col here as we already have a model column. svn path=/trunk/; revision=7960
* Dont overwrite the end of our bitmap array.Not Zed2001-02-021-1/+2
| | | | | | | | | 2001-02-02 Not Zed <NotZed@Ximian.com> * e-table-selection-model.c (model_row_deleted): Dont overwrite the end of our bitmap array. svn path=/trunk/; revision=7944
* make the segfault caused by double clicking into a critical warning untilLarry Ewing2001-02-011-0/+1
| | | | | | | | | 2001-01-31 Larry Ewing <lewing@ximian.com> * e-table-item.c (view_to_model_col): make the segfault caused by double clicking into a critical warning until it can be fixed. svn path=/trunk/; revision=7927
* Made the contained %ETableItem have cursor_mode asChristopher James Lahey2001-01-304-34/+45
| | | | | | | | | | | | | | | | 2001-01-30 Christopher James Lahey <clahey@helixcode.com> * e-table-click-to-add.c (etcta_event): Made the contained %ETableItem have cursor_mode as %E_TABLE_CURSOR_SPREADSHEET. * e-table-defines.h, e-table-item.c, e-table-specification.c: Added a new cursor mode E_TABLE_CURSOR_SPREADSHEET. This is accessed using cursor_mode="spreadsheet" in your specification xml, as well as by the click_to_add item. It is identical to E_TABLE_CURSOR_SIMPLE, except that tab goes to the next item in the table instead of to the next widget. svn path=/trunk/; revision=7910
* Made carriage return finish editing.Christopher James Lahey2001-01-302-31/+56
| | | | | | | | | | | | 2001-01-30 Christopher James Lahey <clahey@helixcode.com> * e-table-click-to-add.c (etcta_event): Made carriage return finish editing. * e-table-item.c (eti_event): Made carriage return key press signal go out before sending it to the selection model. svn path=/trunk/; revision=7909
* Added e-cell-number.loChristopher James Lahey2001-01-293-1/+101
| | | | | | | | | | | | | | | | | | | | 2001-01-29 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added e-cell-number.lo From gal/e-table/Changelog: 2001-01-29 Christopher James Lahey <clahey@ximian.com> * Makefile.am: Added e-cell-number.c and e-cell-number.h. * e-cell-number.c, e-cell-number.h: A new cell for rendering numbers. * e-table-extras.c (ete_init): Added a default number cell. Made the default size cell right aligned. svn path=/trunk/; revision=7889
* Made the scrolling to show the current roll happen in a time out.Christopher James Lahey2001-01-282-2/+52
| | | | | | | | | 2001-01-28 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c, e-table-item.h: Made the scrolling to show the current roll happen in a time out. svn path=/trunk/; revision=7875
* Make home and end keys move to the beginning and end of the row if cursorChristopher James Lahey2001-01-284-0/+62
| | | | | | | | | | | | | | | | | | | | 2001-01-27 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c (eti_event): Make home and end keys move to the beginning and end of the row if cursor mode is set to E_TABLE_CURSOR_SIMPLE. Otherwise have %ETableSelectionModel handle them. * e-table-selection-model.c, e-table-selection-model.h: Added a "cursor_mode" argument. (e_table_selection_model_key_press): Made home and end keys move the beginning and end of the table if cursor_mode is E_TABLE_CURSOR_MODE_LINE. * e-table.c: Set the cursor-mode argument of our %ETableSelectionModel. svn path=/trunk/; revision=7864
* Make ETable stop editing when it looses focus.Christopher James Lahey2001-01-272-8/+32
| | | | | | | | | | | | | 2001-01-27 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c (eti_event): Make ETable stop editing when it looses focus. * e-table.c (et_canvas_button_press): Make ETable stop editing if you click on an unhandled area of the table canvas (The white area at the bottom for instance.) svn path=/trunk/; revision=7849
* Set the GTK_CAN_FOCUS flag on the widget, since an ETable ought to beFederico Mena Quintero2001-01-262-85/+165
| | | | | | | | | | | | | | | | | | | | | | | | 2001-01-25 Federico Mena Quintero <federico@ximian.com> * e-table.c (e_table_init): Set the GTK_CAN_FOCUS flag on the widget, since an ETable ought to be focusable. (e_table_class_init): Override ::grab_focus() and ::focus(). (et_grab_focus): Since people may do gtk_widget_grab_focus() on the ETable, we have to proxy the request to the actual focusable canvas. (e_table_setup_header): Unset GTK_CAN_FOCUS for the header canvas. (et_focus): Reject focus if our child canvas already had it. * e-table-scrolled.c (e_table_scrolled_init): Set the GTK_FOCUS_FLAG on the widget. This is just so that people can easily do gtk_widget_grab_focus (my_e_table_scrolled) on their own applications. (e_table_scrolled_class_init): Override ::grab_focus() and ::focus(). (ets_grab_focus): Proxy the grab_focus to our child ETable. (ets_focus): Proxy the request to the child ETable. svn path=/trunk/; revision=7830
* Made this correctly check for going off the end of the table.Christopher James Lahey2001-01-261-2/+4
| | | | | | | | | 2001-01-25 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c (move_selection): Made this correctly check for going off the end of the table. svn path=/trunk/; revision=7817
* Documented. Added a "cursor_activated" signal. Removed some unusedChristopher James Lahey2001-01-2510-129/+461
| | | | | | | | | | | | | | | | | | | | 2001-01-25 Christopher James Lahey <clahey@helixcode.com> * 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: Documented. Added a "cursor_activated" signal. Removed some unused functions (e_table_group_get_count and e_table_group_get_ecol). * e-table-selection-model.c, e-table-selection-model.h: Added a "cursor_activated" signal. Call it when the user changes the selection to match the cursor. * e-table.c, e-table.h: Added a "cursor_activated" signal. Fixed the e_table_compute_location function to take into account the scrolled position. svn path=/trunk/; revision=7808
* Made the cursor move when rows are inserted or deleted. If in single modeChristopher James Lahey2001-01-221-0/+11
| | | | | | | | | | 2001-01-21 Christopher James Lahey <clahey@helixcode.com> * e-table-selection-model.c: Made the cursor move when rows are inserted or deleted. If in single mode and the selected row gets removed, move it up. svn path=/trunk/; revision=7691
* Made this conform to the new prototype for e_popup_menu_run.Christopher James Lahey2001-01-218-105/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-21 Christopher James Lahey <clahey@helixcode.com> * e-table-header-item.c (ethi_header_context_menu): Made this conform to the new prototype for e_popup_menu_run. * e-table-item.c, e-table-item.h: Documented. (e_table_item_is_row_selected): Removed this function. (eti_draw): Changed this so that if the ETableItem is in cursor-mode="row", the cursor is draw all the way across the row. (eti_cursor_move_up, eti_cursor_move_down): Commented these out since they're no longer used. (_do_tooltip, eti_event): Commented out tooltips. (eti_event): Made it so that we call the key_press function in the %ETableSelectionModel on each key press. * e-table-selection-model.c, e-table-selection-model.h: Documented. Added a function e_table_selection_model_key_press that does whatever behavior is correct for the user having pressed the given key. Changed the behavior of this to better match windows (use selection-mode="browse"). * e-table-specification.c, e-table-specification.h: Added a draw_focus variable. * e-table.c: Decide whether to draw the focus based on the ETableSpecification. Removed the argument for setting whether to draw the focus. svn path=/trunk/; revision=7673
* Fix memory leak: Unref some stuff if we're not showing the tooltip.Iain Holmes2001-01-211-1/+2
| | | | svn path=/trunk/; revision=7667
* Do most of the work to get Grouping working, by reusing massive ammountsMiguel de Icaza2001-01-194-185/+282
| | | | | | | | | | | | | | | | | | Do most of the work to get Grouping working, by reusing massive ammounts of code from the sorting pieces. 2001-01-19 Miguel de Icaza <miguel@gnu.org> * e-table-config.c (group_entry_changed, group_ascending_toggled): New methods. (configure_group_dialog): New function, sets up the group GUI. (e_table_config_construct): Populate column names here and use in configure_group_dialog and configure_sort_dialog (sort_entry_changed, sort_ascending_toggled): renamed from entry_changed, ascending_toggled. svn path=/trunk/; revision=7637
* Keep track of the valid column names (not used right now).Miguel de Icaza2001-01-195-157/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-18 Miguel de Icaza <miguel@gnu.org> * e-table-config.c (configure_sort_dialog): Keep track of the valid column names (not used right now). (config_destroy): release column names (entry_changed): Handle invalid input to mean "Next entry is grayed out". * e-table-header-item.c (ethi_popup_customize_view): Hook up to the "apply" signal on the dialog box to apply the changes. (apply_changes): New function to apply the changes from the ETableConfig object. * e-table-sort-info.c (e_table_sort_info_load_from_node): Notify of sort info changes. * e-table-header-item.c: Swapped the way arrows were done, so that they actually match the sorting that its expected. * e-table.c: Added inline documentation for a few methods. * e-table-config.h: Dropped ::spec, and temp_spec, we always use ::source_spec, as we never modify this variable. svn path=/trunk/; revision=7633
* Disconnect from the etss->source's signals *before* we unref it.Federico Mena Quintero2001-01-192-10/+22
| | | | | | | | | | | | | 2001-01-18 Federico Mena Quintero <federico@ximian.com> * e-table-subset.c (etss_destroy): Disconnect from the etss->source's signals *before* we unref it. * e-table-group-container.c (e_table_group_apply_to_leafs): Ref() and unref() around the callback to protect ourselves from being unrefed in the middle of iterating through the nodes. svn path=/trunk/; revision=7621
* New function. (update_sort_config_dialog): Massive update to thisMiguel de Icaza2001-01-185-26/+230
| | | | | | | | | | | | | | | | | | | | 2001-01-18 Miguel de Icaza <miguel@gnu.org> * e-table-config.c (find_model_column_by_name): New function. (update_sort_config_dialog): Massive update to this function, it is almost complete now, it just needs a few cosmetic touchups. (config_sort_config_show): Get the main interaction working as well. (config_group_info_update): Beautify. (entry_changed): Do all the magic for the GUI for entries. (ascending_toggled): Implement callback. (configure_sort_dialog): Do also descending. (configure_sort_dialog): Hook up changed/toggled. * e-table-config.h: Put all the configuration stuff for sorting into its own structure to pass around funny functions. svn path=/trunk/; revision=7617