aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
Commit message (Collapse)AuthorAgeFilesLines
* 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-252-3/+3
| | | | | | | | | | | | | | | | | | 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
* don't show the year in the popup submenu for the months, and center theDamon Chaplin2001-07-252-4/+15
| | | | | | | | | | 2001-07-24 Damon Chaplin <damon@ximian.com> * e-calendar-item.c (e_calendar_item_show_popup_menu): don't show the year in the popup submenu for the months, and center the months. Fixes bug #4397. svn path=/trunk/; revision=11365
* 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
* Removed some debugging spew I committed by mistake.Jon Trowbridge2001-07-211-4/+1
| | | | | | | | | 2001-07-20 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-completion-view.c (e_completion_view_set_width): Removed some debugging spew I committed by mistake. svn path=/trunk/; revision=11293
* Change window policy to allow the completion window to shrink when theJon Trowbridge2001-07-212-11/+9
| | | | | | | | | | | | | 2001-07-20 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-entry.c (e_entry_enable_completion_full): Change window policy to allow the completion window to shrink when the number of options decreases. * gal/e-text/e-completion-view.c (e_completion_view_construct): Removed some obsolete code. svn path=/trunk/; revision=11292
* When the dialog gets closed, always make sure the entry widget becomesJeffrey Stedfast2001-07-192-1/+5
| | | | | | | | | | | | 2001-07-18 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (rule_editor_destroyed): When the dialog gets closed, always make sure the entry widget becomes sensitive again. (menubar_activated): Don't use FILTER_SOURCE_INCOMING because that's not what we want, we want (I think) NULL (at least with NULL, bug #4490 goes away). svn path=/trunk/; revision=11209
* When the dialog gets closed, always make sure the entry widget becomesJeffrey Stedfast2001-07-192-188/+179
| | | | | | | | | 2001-07-18 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (rule_editor_destroyed): When the dialog gets closed, always make sure the entry widget becomes sensitive again. svn path=/trunk/; revision=11208
* Remove the debugging message here.Dan Winship2001-07-181-1/+0
| | | | | | | * gal/widgets/e-unicode.c (e_utf8_to_gtk_string_sized): Remove the debugging message here. svn path=/trunk/; revision=11179
* Fixes bug #2901.Federico Mena Quintero2001-07-172-16/+10
| | | | | | | | | | | 2001-07-16 Federico Mena Quintero <federico@ximian.com> Fixes bug #2901. * e-dateedit.c (e_date_edit_parse_date): Use e_time_parse_date(). (e_date_edit_parse_time): Use e_time_parse_time(). svn path=/trunk/; revision=11137
* *** empty log message ***Jacob Berkman2001-07-163-21/+27
| | | | svn path=/trunk/; revision=11126
* Reset the view when we set the model here. Fixes Ximian #4105.Christopher James Lahey2001-07-161-0/+1
| | | | | | | | | 2001-07-16 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-reflow.c (connect_model): Reset the view when we set the model here. Fixes Ximian #4105. svn path=/trunk/; revision=11124
* Start editing immediately on a button_press that grabs the focus.Christopher James Lahey2001-07-151-27/+44
| | | | | | | | | | | 2001-07-15 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_event): Start editing immediately on a button_press that grabs the focus. e_canvas_item_grab_focus doesn't seem to get us the focus event until the event loop. Fixes Ximian bug #1766. svn path=/trunk/; revision=11111
* 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-114-86/+88
| | | | | | | | | | | | | | 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
* For E_TEP_END_OF_BUFFER, use the length in bytes, not the length inFederico Mena Quintero2001-07-101-1/+1
| | | | | | | | | | 2001-07-09 Federico Mena Quintero <federico@ximian.com> * gal/e-text/e-text.c (_get_position): For E_TEP_END_OF_BUFFER, use the length in bytes, not the length in characters --- this function is supposed to return byte offsets. svn path=/trunk/; revision=10941
* 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
* Destroy the tooltip if we're the owner when we're destroyed. Also, keep aChristopher James Lahey2001-07-083-1/+24
| | | | | | | | | | | | | | 2001-07-07 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_destroy): Destroy the tooltip if we're the owner when we're destroyed. Also, keep a reference to the text object in case we get a signal on the window after the text object is destroyed. * gal/widgets/e-canvas.c (e_canvas_destroy): Hide the tooltip if there is one when the canvas is destroyed. svn path=/trunk/; revision=10888
* 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
* Changed this to match the changed signal on the ETableConfig object. FixesChristopher James Lahey2001-07-071-1/+5
| | | | | | | | | 2001-07-06 Christopher James Lahey <clahey@ximian.com> * gal-view-etable.c (config_changed): Changed this to match the changed signal on the ETableConfig object. Fixes bug 4213. svn path=/trunk/; revision=10876
* 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
* Don't scroll to the cursor on grab, ungrab, noop, and copy commands.Christopher James Lahey2001-07-051-1/+6
| | | | | | | | | 2001-07-05 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_command): Don't scroll to the cursor on grab, ungrab, noop, and copy commands. svn path=/trunk/; revision=10808
* 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
* If lines is NULL here split into lines and just return that the point isChristopher James Lahey2001-07-031-0/+7
| | | | | | | | | | 2001-07-03 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_point): If lines is NULL here split into lines and just return that the point is outside this text object. svn path=/trunk/; revision=10730
* added functions to set a callback to get the current time, which is usedDamon Chaplin2001-07-037-50/+230
| | | | | | | | | | | | 2001-07-02 Damon Chaplin <damon@ximian.com> * e-calendar-item.c: * e-cell-date-edit.c: * e-dateedit.c: added functions to set a callback to get the current time, which is used instead of localtime(). We need this as we have to use our own timezones. svn path=/trunk/; revision=10728
* 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
* *misc/e-filter-bar.c (option_changed): Specified a default size for theAnna Marie Dirks2001-07-032-3/+27
| | | | | | | | | | 2001-07-02 Anna Marie Dirks <anna@ximian.com> *misc/e-filter-bar.c (option_changed): Specified a default size for the Advanced Search dialog such that when it first appear, it is large enough to view all parts of a search clause without the user needing to resize it. svn path=/trunk/; revision=10703
* Take a callback function and user_data so that we can add listeners toJeffrey Stedfast2001-07-033-3/+34
| | | | | | | | | | 2001-07-02 Jeffrey Stedfast <fejj@ximian.com> * e-charset-picker.c (e_charset_picker_bonobo_ui_populate): Take a callback function and user_data so that we can add listeners to each of the menu items. svn path=/trunk/; revision=10702
* Updated to build e-charset-picker.cJeffrey Stedfast2001-07-035-0/+515
| | | | | | | | | | | | 2001-07-02 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Updated to build e-charset-picker.c * e-charset-picker.[c,h]: Moved here from gal. (e_charset_picker_bonobo_ui_populate): New function to populate a bonobo-ui with a charset picker menu. svn path=/trunk/; revision=10687
* 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
* Do nothing if passed NULL. (e_completion_match_compare): Move theJon Trowbridge2001-06-301-16/+16
| | | | | | | | | | | | | | 2001-06-29 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-completion-match.c (e_completion_match_unref): Do nothing if passed NULL. (e_completion_match_compare): Move the sort_major comparison out to make it the primary sort key (followed by score and then sort_minor). (e_completion_match_compare_alpha): Move the sort_major comparison out to make it the primary sort key. svn path=/trunk/; revision=10625
* 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
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-2322-33/+33
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* 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
* copied the EMap widget verbatim from Ximian Setup Tools. Hmm. Maybe itDamon Chaplin2001-06-144-0/+1933
| | | | | | | | | | | | 2001-06-14 Damon Chaplin <damon@ximian.com> * e-map.[hc]: copied the EMap widget verbatim from Ximian Setup Tools. Hmm. Maybe it should go in gal, but its not a very general widget. * Makefile.am (INCLUDES): defined MAP_DIR for e-map.c. (libemiscwidgets_a_SOURCES): added e-map.[hc]. svn path=/trunk/; revision=10221
* Removed unused frame variable.Christopher James Lahey2001-06-091-2/+0
| | | | | | | | | 2001-06-09 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-completion-view.c (e_completion_view_construct): Removed unused frame variable. svn path=/trunk/; revision=10174
* Turned off alternating row colors in our ETable specification.Jon Trowbridge2001-06-093-13/+11
| | | | | | | | | | | | | | 2001-06-08 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-completion-view.c: Turned off alternating row colors in our ETable specification. * gal/e-text/e-completion-match.c (e_completion_match_compare_alpha): Fix the sort routine to properly use the major & minor keys for sorting grouped elements with the same match text. I had this all wrong. svn path=/trunk/; revision=10159
* we can ignore the border, as e-text takes care of that for usjacob berkman2001-06-072-24/+15
| | | | | | | | | | | | | | 2001-06-07 jacob berkman <jacob@ximian.com> * gal/e-text/e-entry.c (canvas_size_allocate): we can ignore the border, as e-text takes care of that for us (canvas_size_request): correctly handle when borders should be drawn * gal/e-text/e-completion-view.c (e_completion_view_paint): fix a small bug in the drawing-2-pixel-border change to my patch svn path=/trunk/; revision=10149
* Applied patch from Jacob Berkman to un-offset the completion popup and addJon Trowbridge2001-06-073-4/+148
| | | | | | | | | | | | 2001-06-06 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-entry.c: * gal/e-text/e-completion-view.c: Applied patch from Jacob Berkman to un-offset the completion popup and add a border around it. I tweaked it slightly to make the border two pixels thick instead of one. (Which I like, but might annoy everyone else. We'll see.) svn path=/trunk/; revision=10133
* Oops. Forgot to remove some debugging code before committing.Jon Trowbridge2001-06-061-16/+0
| | | | svn path=/trunk/; revision=10119
* Small changes throughout to use ECompletionMatch.Jon Trowbridge2001-06-0610-143/+342
| | | | | | | | | | | | | | | | | | | | 2001-06-05 Jon Trowbridge <trow@gnu.org> * gal/e-text/e-entry.c: Small changes throughout to use ECompletionMatch. * gal/e-text/e-completion-view.c: Small changes throughout to use ECompletionMatch. * gal/e-text/e-completion.c: Small changes throughout to use ECompletionMatch. * gal/e-text/e-completion-match.h: * gal/e-text/e-completion-match.c: Added. A struct to contain completion matches. This lets us more easily pass around information between the various bits of completion machinery. svn path=/trunk/; revision=10118
* Store the connection ID of the "changed" signal in the collection.Federico Mena Quintero2001-06-013-9/+28
| | | | | | | | | | | 2001-05-31 Federico Mena Quintero <federico@ximian.com> * menus/gal-view-menus.c (gal_view_menus_construct): Store the connection ID of the "changed" signal in the collection. (gal_view_menus_new): Added preconditions. (gal_view_menus_construct): Added preconditions. svn path=/trunk/; revision=10075
* Removed unused variable.Federico Mena Quintero2001-06-013-2/+9
| | | | | | | | | | | | 2001-05-31 Federico Mena Quintero <federico@ximian.com> * e-dropdown-button.c (impl_button_press_event): Removed unused variable. * e-cell-date-edit.c (e_cell_date_edit_rebuild_time_list): Removed unused variable. svn path=/trunk/; revision=10062
* set allow_newlines on the etext item to false, since we are like an entryjacob berkman2001-06-011-0/+1
| | | | | | | | | 2001-05-31 jacob berkman <jacob@ximian.com> * gal/e-text/e-entry.c (e_entry_init): set allow_newlines on the etext item to false, since we are like an entry svn path=/trunk/; revision=10061
* Document the fact that this function ref()s the factory and that peopleFederico Mena Quintero2001-05-301-7/+55
| | | | | | | | | | | | | | | | | | | | | | 2001-05-28 Federico Mena Quintero <federico@ximian.com> * gal-view-collection.c (gal_view_collection_add_factory): Document the fact that this function ref()s the factory and that people should unref() it after calling the function if they no longer need the factory object. (gal_view_collection_display_view): Added preconditions. (gal_view_collection_set_storage_directories): Likewise. (gal_view_collection_add_factory): Likewise. (gal_view_collection_load): Likewise. (gal_view_collection_save): Likewise. (gal_view_collection_get_count): Likewise. (gal_view_collection_get_view): Likewise. (gal_view_collection_get_view_item): Likewise. (gal_view_collection_append): Likewise. (gal_view_collection_delete_view): Likewise. (gal_view_collection_copy_view): Likewise. svn path=/trunk/; revision=10044
* 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 <stdlib.h> #include <string.h>. Kill warnings.Kjartan Maraas2001-05-251-0/+1
| | | | | | | | | 2001-05-25 Kjartan Maraas <kmaraas@gnome.org> * gal/widgets/e-font.c: #include <stdlib.h> * gal/widgets/e-popup-menu.c: #include <string.h>. Kill warnings. svn path=/trunk/; revision=9971
* #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
* make the view menuitems radio items of the same group, and allocate theChris Toshok2001-05-222-52/+85
| | | | | | | | | | | | | | | | | | | 2001-05-21 Chris Toshok <toshok@ximian.com> * menus/gal-view-menus.c (build_menus): make the view menuitems radio items of the same group, and allocate the closure here. (free_verbs): only need to free the one DefineViews verb here. (closure_free): new function - EListFreeFunc for our listenerClosure list. (remove_listeners): new function, free our listener list. (gvm_destroy): call remove_listeners. (gvm_init): init listenerClosures list. (toggled_cb): callback for radio items. (build_verbs): strip out almost all the code since there's only 1 verb now. (build_stuff): call remove_listeners. svn path=/trunk/; revision=9916
* 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
* Killed a warning here. (model_changed, items_inserted): Check if we'reChristopher James Lahey2001-05-191-7/+5
| | | | | | | | | 2001-05-19 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-reflow.c (model_changed): Killed a warning here. (model_changed, items_inserted): Check if we're empty. svn path=/trunk/; revision=9891
* Validate utf8 to avoid lock-ups. (_get_position): Validate utf8 to avoidJon Trowbridge2001-05-151-6/+8
| | | | | | | | | | 2001-05-14 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-text.c (calc_line_widths): Validate utf8 to avoid lock-ups. (_get_position): Validate utf8 to avoid lock-ups. svn path=/trunk/; revision=9797
* 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
* my computer crashed while commiting this first time.Gediminas Paulauskas2001-05-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 2001-05-12 Gediminas Paulauskas <menesis@delfi.lt> * folder-browser-factory.c: load pixmaps for MessageCopy and MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu> for a patch. 2001-05-12 Gediminas Paulauskas <menesis@delfi.lt> * evolution-mail.xml: add pixmaps for MessageCopy and MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu> for a patch. 2001-05-12 Gediminas Paulauskas <menesis@delfi.lt> * po/POTFILES.in: update with new/moved files. also: Removed duplicated DATADIR in mail/Makefile.am fixed warning in e-search-bar.c in my recent code there svn path=/trunk/; revision=9783
* 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
* Added util/e-sorter-array.lo and widgets/e-reflow-model.lo. RemovedChristopher James Lahey2001-05-084-410/+1199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-07 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added util/e-sorter-array.lo and widgets/e-reflow-model.lo. Removed widgets/e-reflow-sorted.lo. * gal/util/Makefile.am (libutil_la_SOURCES): Added e-sorter-array.c. (libgalinclude_HEADERS): Added e-sorter-array.h. * gal/util/e-sorter-array.c, gal/util/e-sorter-array.h: A sorter for use with a single compare function to do sorting. * gal/util/e-util.c, gal/util/e-util.h (e_marshal_INT__OBJECT_POINTER): Added this marshaller. * gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added e-reflow-model.c. Removed e-reflow-sorted.c. (libwidgetsinclude_HEADERS): Added e-reflow-sorted.h. Removed e-reflow-model.h. * gal/widgets/e-reflow-model.c, gal/widgets/e-reflow-model.h: Model for EReflow. Has a number of items and generates canvas items on the fly. * gal/widgets/e-reflow.c, gal/widgets/e-reflow.h: Major rewrite. This now uses a model to generate its canvas items instead of having canvas items added to it. It doesn't create the canvas items now until they will be shown on screen. svn path=/trunk/; revision=9710
* Removed EVOLUTION_VERSION from the rest of makefiles. use VERSION instead. SoGediminas Paulauskas2001-05-082-4/+9
| | | | | | | | you must include <config.h>, heh. and a stil-not-working "fix" for galview menus. svn path=/trunk/; revision=9707
* Fix for #2253 (search names not translated), mail-search i18n fixes.Gediminas Paulauskas2001-05-083-13/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * searches.xml: replace title> with _title>. Part of fix to #2253. 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * mail-search.c: convert search entry to utf8. * mail-local.c: d() debugging message. * mail-send-recv.c: replace " ..." with "..." * Makefile.am: removed EVOLUTION_VERSION. 2001-05-07 Gediminas Paulauskas <menesis@delfi.lt> * POTFILES.in: add mail/mail-search.c 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * misc/e-search-bar.c (add_dropdown), (set_option): first try to translate, then if not suceeded -- convert from utf8. This handles cases when menuitem needs to be translated (it is passed as N_()), or is utf8 search title. However you cannot have a search like "Folders" -- it is translated. Part of fix for #2253. * misc/e-filter-bar.c: d() debugging strings. Use E_FILTERBAR_ADVANCED macro instead of own "Advanced ..." for consistency. 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * filter-rule.c (xml_decode): allow "_title" in user rules. translate them and encode to utf8. (get_rule_part_widget): do not call gettext on part->title. It is always translated already. svn path=/trunk/; revision=9706
* Request an update if just our line widths needed recalculation. This fixesFederico Mena Quintero2001-05-082-1/+3
| | | | | | | | | | | 2001-05-07 Federico Mena Quintero <federico@ximian.com> * gal/e-text/e-text.c (e_text_reflow): Request an update if just our line widths needed recalculation. This fixes the bug where the text item would not repaint itself if the canvas lost the focus. svn path=/trunk/; revision=9705
* (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-082-5/+11
| | | | | | | | | | | | | | | | | 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
* I am sure at least with this:Gediminas Paulauskas2001-05-072-3/+17
| | | | | | | | | 2001-05-07 Gediminas Paulauskas <menesis@delfi.lt> * misc/e-filter-bar.h: xgettext does not find N_() in #defines. So created fake enum. Also removed spaces before "..." svn path=/trunk/; revision=9690
* correct type where same pixmap mask was unreffed twiceJP Rosevear2001-05-052-1/+7
| | | | | | | | | | 2001-05-04 JP Rosevear <jpr@ximian.com> * e-meeting-time-sel-list-item.c (e_meeting_time_selector_list_item_destroy): correct type where same pixmap mask was unreffed twice svn path=/trunk/; revision=9673
* Found out that I forgot to commit this.Gediminas Paulauskas2001-05-032-4/+7
| | | | | | | | | 2001-04-21 Gediminas Paulauskas <menesis@delfi.lt> * menus/gal-view-menus.c: bonobo_ui_node_set_attr expects unstranslated strings, so change _() to N_(). svn path=/trunk/; revision=9650
* Made fewer calls to functions like split_into_lines to save time whenChristopher James Lahey2001-04-301-86/+53
| | | | | | | | | 2001-04-29 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c: Made fewer calls to functions like split_into_lines to save time when possible. svn path=/trunk/; revision=9629
* Added widgets/e-categories-master-list-dialog-model.lo andChristopher James Lahey2001-04-291-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-29 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added widgets/e-categories-master-list-dialog-model.lo and widgets/e-categories-master-list-dialog.lo here. * gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added widgets/e-categories-master-list-dialog-model.c and widgets/e-categories-master-list-dialog.c here. (libwidgetsinclude_HEADERS): Added widgets/e-categories-master-list-dialog-model.h and widgets/e-categories-master-list-dialog.h here. (glade_DATA): Added e-categories-master-list-dialog.glade here. * gal/widgets/e-categories-master-list-dialog-model.c, gal/widgets/e-categories-master-list-dialog-model.h: New class defining an ETableModel for use in e-categories-master-list-dialog.c. * gal/widgets/e-categories-master-list-dialog.c, gal/widgets/e-categories-master-list-dialog.glade, gal/widgets/e-categories-master-list-dialog.h: New dialog for editing the master category list. * gal/widgets/e-categories.c: Added code to hook up the edit master category list button here to launch an e-categories-master-list-dialog. * gal/widgets/gal-categories.glade: Added a button here to edit the master category list. svn path=/trunk/; revision=9625
* 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 e-completion-testDan Winship2001-04-281-0/+1
| | | | svn path=/trunk/; revision=9615
* 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
* UpdateKjartan Maraas2001-04-241-2/+3
| | | | svn path=/trunk/; revision=9541
* Added #include <glib.h> and moved corresponding local headers to the top.Kjartan Maraas2001-04-247-10/+30
| | | | | | | | | | 2001-04-24 Kjartan Maraas <kmaraas@gnome.org> * e-calendar-item.c, e-calendar.c, e-cell-date-edit.c, e-clipped-label.c: Added #include <glib.h> and moved corresponding local headers to the top. svn path=/trunk/; revision=9540
* Added #include <glib.h>.Kjartan Maraas2001-04-243-1/+9
| | | | | | | | | 2001-04-24 Kjartan Maraas <kmaraas@gnome.org> * e-meeting-time-sel.c, test-meeting-time-sel.c: Added #include <glib.h>. svn path=/trunk/; revision=9539
* 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
* Added #include <stdlib.h>.Christopher James Lahey2001-04-241-0/+1
| | | | | | | | 2001-04-23 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-unicode.c: Added #include <stdlib.h>. svn path=/trunk/; revision=9520
* 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_CFLAGS (e_text_test_LDADD, e_entry_test_LDADD,Dan Winship2001-04-241-43/+42
| | | | | | | | | | * gal/e-text/Makefile.am (INCLUDES): Remove UNICODE_CFLAGS (e_text_test_LDADD, e_entry_test_LDADD, e_text_model_test_LDADD, e_completion_test_LDADD): remove -lunicode, add libunicode.la * gal/e-text/e-text.c: Remove <unicode.h>, use gunicode functions. svn path=/trunk/; revision=9516
* 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
* bump to 0.7.99.1, add gal/unicode/Makefile. gal no longer internallyDan Winship2001-04-242-52/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: bump to 0.7.99.1, add gal/unicode/Makefile. gal no longer internally depends on libunicode, although it will continue to configure against it until gtkhtml/evolution are ported too. * gal/Makefile.am (nonui_subdirs): add unicode (libgal_la_LDFLAGS): remove $(UNICODE_LIBS) (libgal_la_LIBADD): add unicode/*.lo * gal/unicode/*: unicode handling code copied nearly verbatim from glib 2.0, plus gal build glue. * gal/e-text/Makefile.am (INCLUDES): Remove UNICODE_CFLAGS (e_text_test_LDADD, e_entry_test_LDADD, e_text_model_test_LDADD, e_completion_test_LDADD): remove -lunicode, add libunicode.la * gal/e-text/e-text.c: Remove <unicode.h>, use gunicode functions. * gal/widgets/Makefile.am (libwidgets_la_LDFLAGS): remove UNICODE_LIBS (INCLUDES): remove UNICODE_CFLAGS (test_e_font_LDADD, test_font_loading_LDADD): add libunicode.la * gal/widgets/e-unicode.h: #include <gal/unicode/gunicode.h>. Remove some cruft. * gal/widgets/e-unicode.c: remove <unicode.h>, use gunicode functions. Add e_unicode_get_utf8 to replace some uses of unicode_get_utf8, which isn't quite the same as any gunicode function. * gal/widgets/e-font.c: remove <unicode.h>, use gunicode functions svn path=/trunk/; revision=9512
* Limit total matches, for better performance on slow machines. It isJon Trowbridge2001-04-204-29/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-20 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-completion-test.c: Limit total matches, for better performance on slow machines. It is supposed to be a test, so correctness of the completion operations isn't really a priority... * gal/e-text/e-completion-view.c (e_completion_view_construct): Set GTK_CAN_FOCUS flag. * gal/e-text/e-entry.c (e_entry_show_popup): Evil! Evil! Unclean! Unclean! Manually check if the pointer is in the area where the popup is going to appear, and if it is, warp the pointer out of the way. After days of fucking around, this horrible hack is the only way that I've been able to figure out to keep the focus from being taken away from the entry and ending up somewhere strange when the popup pops up. (The main problem is with the case of focus-follows-cursor --- click-to-focus works fine. Sawfish idiocincracies may also be causing problems, but I don't want to unjustly accuse the WM of anything, as tempting and appealing as that can be.) (key_press_cb): Proxy for forwarding the popup's key press events to the entry. (key_release_cb): Proxy for forwarding the popup's key release events to the entry. These proxies should be enough to take care of my focus problems. Unfortunately, they aren't, and the pointer-warping-focus-horror is required for reasons that I don't fully understand. * gal/e-text/e-text.c (_get_xy_from_position): Made _get_xy_from_position return a boolean. It returns TRUE if the computation was successful (and if valid data is now in *xp and *yp), FALSE otherwise. Make sure that text->lines is not NULL, and return FALSE if it is. (_get_position): Test that _get_xy_from_position returns TRUE before using the values in x and y. (_get_position): Test that _get_xy_from_position returns TRUE before using the values in x and y. Garbage values being returned in passed-in pointers created a race condition where you could hang an EText if you deleted the entire contents of the buffer really quickly. svn path=/trunk/; revision=9468
* 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
* Changed some comments here.Christopher James Lahey2001-04-173-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-16 Christopher James Lahey <clahey@ximian.com> * configure.in: Changed some comments here. * gal/Makefile.am (libgal_la_LIBADD): Added widgets/e-categories-master-list-array.lo and widgets/e-categories-master-list.lo. * gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added widgets/e-categories-master-list-array.c and widgets/e-categories-master-list.c. (libwidgetsinclude_HEADERS): Added widgets/e-categories-master-list-array.h and widgets/e-categories-master-list.h. * gal/widgets/e-categories-master-list-array.c, gal/widgets/e-categories-master-list-array.h, gal/widgets/e-categories-master-list.c, gal/widgets/e-categories-master-list.h: Added ECategoriesMasterList and a simple local implementation of it. * gal/widgets/e-categories.c, gal/widgets/e-categories.h: Privatized this. Switched to using ECategoriesMasterList. (table_right_click): Added a right click menu to add and remove things to and from the global category list. * gal/widgets/e-gui-utils.c, gal/widgets/e-gui-utils.h: Fixed some comments and formatting. * gal/widgets/e-popup-menu.h (E_POPUP_SEPARATOR, E_POPUP_TERMINATOR): Added these #defines. svn path=/trunk/; revision=9392
* Upped the version number to 0.7.99.0.Jody Goldberg2001-04-171-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-15 Jody Goldberg <jgoldberg@home.com> * configure.in: Upped the version number to 0.7.99.0. * gal/widgets/Makefile.am : add test-color. * gal/widgets/test-color.c (main) : update. * gal/widgets/color-group.c (color_group_new_named) : add a context pointer to manage multiple instances of the same conceptual group in different instances. eg the foregroup colour groups for windows editing different documents should be different. (create_unique_name) : Adjust signature. (color_group_from_name) : ditto, Use the cg as the key, not just name. (color_group_destroy) : ditto. (color_group_new_named) : ditto. (cg_hash) : new function. (cg_cmp) : new function. (initialize_group_names) : used here. * gal/widgets/color-palette.c (color_palette_new) : Take a ColorGroup directly rather than a ColorGroup name. (color_palette_new_with_vals) : ditto. * gal/widgets/widget-color-combo.c (color_table_setup) : Take a ColorGroup directly rather than a ColorGroup name. (color_combo_construct) : Ditto. (color_combo_new) : Ditto. svn path=/trunk/; revision=9391
* Propagate the event after sending it to the base EText.Christopher James Lahey2001-04-172-1/+10
| | | | | | | | | 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
* New function, because it is ridiculous to have to hunt down objectFederico Mena Quintero2001-04-163-2/+48
| | | | | | | | | | | | | 2001-04-15 Federico Mena Quintero <federico@ximian.com> * e-search-bar.c (e_search_bar_get_option_choice): New function, because it is ridiculous to have to hunt down object arguments to fetch values. (e_search_bar_get_text): Likewise. (impl_get_arg): Use the functions above so that we have to maintain only one version of the getters. svn path=/trunk/; revision=9339
* 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
* Made setting the rgba color work even if you're using the non-aa canvasChristopher James Lahey2001-04-161-8/+7
| | | | | | | | | 2001-04-15 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c: Made setting the rgba color work even if you're using the non-aa canvas (except for the a.) svn path=/trunk/; revision=9337
* Do not ref both the box and the item; just connect to the item's "destroy"Federico Mena Quintero2001-04-161-7/+15
| | | | | | | | | | | | 2001-04-15 Federico Mena Quintero <federico@ximian.com> * gal/widgets/e-canvas-vbox.c (e_canvas_vbox_real_add_item): Do not ref both the box and the item; just connect to the item's "destroy" signal. (e_canvas_vbox_remove_item): Do not unref the box. (e_canvas_vbox_destroy): Disconnect from the items. svn path=/trunk/; revision=9335
* 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
* Added strikeout argument.Christopher James Lahey2001-04-162-4/+34
| | | | | | | | | 2001-04-15 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c, gal/e-text/e-text.h: Added strikeout argument. svn path=/trunk/; revision=9327
* 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
* Use e_canvas_hide_tooltip and e_canvas_popup_tooltip. Set bold on theChristopher James Lahey2001-04-153-20/+79
| | | | | | | | | | | | 2001-04-15 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (tooltip_event): Use e_canvas_hide_tooltip and e_canvas_popup_tooltip. Set bold on the tooltip. * gal/widgets/e-canvas.c, gal/widgets/e-canvas.h: Added e_canvas_popup_tooltip and e_canvas_hide_tooltip. svn path=/trunk/; revision=9323
* 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 "bold" argument.Christopher James Lahey2001-04-152-37/+58
| | | | | | | | 2001-04-15 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c, gal/e-text/e-text.h: Added "bold" argument. svn path=/trunk/; revision=9319
* 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
* Added widget/e-hsv-utils.lo.Christopher James Lahey2001-04-152-0/+197
| | | | | | | | | | | | | | | 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. svn path=/trunk/; revision=9317
* Fix memory leakDan Winship2001-04-141-1/+2
| | | | | | * e-table-header.c (eth_destroy): Fix memory leak svn path=/trunk/; revision=9301
* Always emit the cursor changed signal. Even if it's changed to the sameChristopher James Lahey2001-04-131-8/+5
| | | | | | | | | | 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=9297
* 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
* Fix a memory leak.Dan Winship2001-04-132-4/+9
| | | | | | * menus/gal-view-menus.c (build_menus): Fix a memory leak. svn path=/trunk/; revision=9275
* svn path=/trunk/; revision=9267Federico Mena Quintero2001-04-132-1/+6
| | | | | | | | 2001-04-08 Federico Mena Quintero <federico@ximian.com> * e-meeting-time-sel-item.c (e_meeting_time_selector_item_init): svn path=/trunk/; revision=9267
* 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
* Translate the title as we read it.Christopher James Lahey2001-04-111-1/+5
| | | | | | | | | 2001-04-10 Christopher James Lahey <clahey@ximian.com> * gal-view-collection.c (load_single_file): Translate the title as we read it. svn path=/trunk/; revision=9217
* New function to translate a string and then convert it to utf8. Acts justChristopher James Lahey2001-04-112-1/+37
| | | | | | | | | | | | | | | | | | | | | 2001-04-10 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-unicode.c, gal/widgets/e-unicode.h (e_xml_get_translated_utf8_string_prop_by_name): New function to translate a string and then convert it to utf8. Acts just like e_xml_get_translated_string and then calls e_utf_from_locale_string on it. * gal/util/e-xml-utils.c: Changed e_xml_get_translated_string to take a string with no underscore at the beginning and search for both that prop and the same prop with the underscore prepended. If it finds it without the underscore, it returns it. If it finds it with the underscore, it translates. * gal/util/e-xml-utils.c, gal/util/e-xml-utils.h: Reformatted these a bit. svn path=/trunk/; revision=9216
* i18n fixes, added missing includes.Gediminas Paulauskas2001-04-114-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * AUTHORS: /me is a translator. * configure.in (EVO_CHECK_LIB): fail with AC_MSG_ERROR, not echo && exit 1. 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * backend/ebook/evolution-gnomecard-importer.c: added missing #include. * contact-editor/e-contact-editor.c (_arrow_pressed): popup menu items were not translated after selecting one of them. * gui/widgets/e-addressbook-view.c: mark popup menu items with N_(). Updated list[] for translators. * gui/widgets/e-minicard.c: same. * gui/widgets/e-minicard-view-widget.c (e_minicard_view_widget_set_arg): fix warning for "editable" arg. * gui/widgets/e-minicard-view.c: convert "empty_message" to utf8. 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * widgets/e-summary-subwindow.c: added some missing includes. * widgets/e-summary-title-button.h: same. 2001-04-10 Gediminas Paulauskas <menesis@delfi.lt> * menus/gal-view-menus.c: convert label to utf8. svn path=/trunk/; revision=9215
* i18n fixes.Gediminas Paulauskas2001-04-112-1/+5
| | | | | | | | | | | | | | | 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 a missing \Dan Winship2001-04-081-0/+1
| | | | | | | | | * tests/test-tree-3.c (INITIAL_SPEC): add a missing \ * gal/e-text/e-text.c (_get_position_from_xy): Add a "break;" to an otherwise-empty default case to make it ANSI. svn path=/trunk/; revision=9201
* make parent_class staticDan Winship2001-04-081-1/+1
| | | | | | * gal-define-views-model.c: make parent_class static svn path=/trunk/; revision=9200
* 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
* Here goes my additional simple include fixes.Gediminas Paulauskas2001-04-052-6/+8
| | | | svn path=/trunk/; revision=9191
* Some small header cleanups & fixes, and fix to translate all popup menusGediminas Paulauskas2001-04-056-11/+32
| | | | | | | | | | | | (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
* Fix headers.Kjartan Maraas2001-04-052-0/+6
| | | | | | | | 2001-04-04 Kjartan Maraas <kmaraas@gnome.org> * menus/gal-view-menus.c: Fix headers. svn path=/trunk/; revision=9187
* Fix headers. Same here. Same here. Same here.Kjartan Maraas2001-04-056-0/+22
| | | | | | | | | | | 2001-04-04 Kjartan Maraas <kmaraas@gnome.org> * e-meeting-time-sel-item.c: Fix headers. * e-meeting-time-sel-list-item.c: Same here. * e-meeting-time-sel.[ch]: Same here. * test-meeting-time-sel.c: Same here. svn path=/trunk/; revision=9186
* More header fixes. Same. Same. Same here. More header fixes. Same here.Kjartan Maraas2001-04-057-8/+47
| | | | | | | | | | | | | 2001-04-04 Kjartan Maraas <kmaraas@gnome.org> * e-calendar.c: More header fixes. * e-cell-date-edit.c: Same. * e-dateedit.[ch]: Same. * e-title-bar.c: Same here. * e-search-bar.c: More header fixes. * test-calendar.c: Same here. svn path=/trunk/; revision=9178
* Added e_selection_model_cursor_activated.Christopher James Lahey2001-04-042-0/+12
| | | | | | | | | | 2001-04-04 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h: Added e_selection_model_cursor_activated. svn path=/trunk/; revision=9177
* 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. Moved the .h associated with each .c to the top of the listChristopher James Lahey2001-04-046-7/+19
| | | | | | | | | | | | | | | | | | | | | | 2001-04-04 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text-model-uri.c, gal/e-text/e-text.c, gal/e-text/e-text.h, gal/e-text/e-text-event-processor.c, gal/util/e-xml-utils.c, gal/widgets/e-cursors.c, gal/widgets/e-cursors.h: Fixed headers. Moved the .h associated with each .c to the top of the list of included files. * gal/util/e-util.h: Removed the bonobo-xobject.h header here. * gal/util/e-xml-utils.c: Replaced strcasecmp with g_strcasecmp. * gal/widgets/e-canvas-vbox.c: Make this work even if the item is destroyed after the vbox. * gal/widgets/e-categories.c (do_parse_categories): Made this translate using e_utf8_from_locale string as it should. svn path=/trunk/; revision=9175
* 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
* Fix headers. Ditto. Ditto. Ditto. Ditto. Ditto. Ditto. Same. Ditto. SameKjartan Maraas2001-04-0425-23/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-04 Kjartan Maraas <kmaraas@gnome.org> * gal/e-text/e-entry.c: Fix headers. * gal/e-text/e-table-text-model.[ch]: Ditto. * gal/e-text/e-table-text-model-uri.c: Ditto. * gal/e-text/e-text-model-uri.[ch]: Ditto. * gal/e-text/e-text-model.[ch]: Ditto. * gal/e-text/e-text.[ch]: Ditto. * gal/util/e-text-event-processor-emacs-like.[ch]: Ditto. * gal/util/e-text-event-processor.[ch]: Same. * gal/util/e-util.h: Ditto. * gal/util/e-xml-utils.[ch]: Same here. * gal/widgets/color-group.[ch]: Ditto. * gal/widgets/color-palette.[ch]: Ditto. * gal/widgets/e-canvas-utils.h: Ditto. * gal/widgets/e-canvas-vbox.[ch]: Ditto. * gal/widgets/e-canvas.[ch]: Ditto. * gal/widgets/e-categories.h: Ditto. * gal/widgets/e-colors.[ch]: Ditto. * gal/widgets/e-cursors.c: Ditto. * gal/widgets/e-gui-utils.c: Ditto * gal/widgets/e-popup-menu.[ch]: Same. * gal/widgets/e-reflow-sorted.c: Same. * gal/widgets/e-reflow.[ch]: Same. * gal/widgets/e-selection-model.c: Same * gal/widgets/e-unicode.[ch]: Same. * gal/widgets/gtk-combo-stack.[ch]: Same. * gal/widgets/widget-color-combo.[ch]: Same. * gal/widgets/widget-pixmap-combo.[ch]: Same. svn path=/trunk/; revision=9168
* 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
* Fix headers. Ditto. Ditto. Ditto. Ditto.Kjartan Maraas2001-04-045-6/+8
| | | | | | | | | | | | 2001-04-04 Kjartan Maraas <kmaraas@gnome.org> * gal-define-views-dialog.h: Fix headers. * gal-define-views-model.c: Ditto. * gal-view-collection.c: Ditto. * gal-view-etable.c: Ditto. * gal-view-new-dialog.h: Ditto. svn path=/trunk/; revision=9166
* 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
* Ahem, free the xmlDoc. (load_single_dir): Free the filename if we returnFederico Mena Quintero2001-04-031-1/+3
| | | | | | | | | | 2001-04-02 Federico Mena Quintero <federico@ximian.com> * gal-view-collection.c (load_single_dir): Ahem, free the xmlDoc. (load_single_dir): Free the filename if we return immediately due to not being able to parse the file. svn path=/trunk/; revision=9121
* 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, free the xmlDoc.Federico Mena Quintero2001-04-031-0/+1
| | | | | | | | 2001-04-02 Federico Mena Quintero <federico@ximian.com> * gal-view-collection.c (load_single_dir): Ahem, free the xmlDoc. svn path=/trunk/; revision=9119
* 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-027-32/+0
| | | | | | | | | | Updated glade files not to save strings. Updated Makefiles. ...nad my translation svn path=/trunk/; revision=9094
* My previous commit was incomplete.Gediminas Paulauskas2001-04-021-1/+2
| | | | | | | called e_utf8_from_gtk_string on category names, so they no are translated and show up correctly. svn path=/trunk/; revision=9093
* No one responds on IRC, explained everything in bugzilla and these changelogs.Gediminas Paulauskas2001-04-024-8/+10
| | | | | | | | | | | | | | | | | | | | | | | 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
* s/#include/#ifdef/ to fix Kjartan's commit.Larry Ewing2001-03-302-1/+6
| | | | | | | | | 2001-03-29 Larry Ewing <lewing@ximian.com> * e-meeting-time-sel-list-item.c: s/#include/#ifdef/ to fix Kjartan's commit. svn path=/trunk/; revision=9020
* Replace #include <gtk/gtk.h> Remove #include <gnome.h> Replace #includeKjartan Maraas2001-03-3013-16/+68
| | | | | | | | | | | | | | | | | | | | 2001-03-29 Kjartan Maraas <kmaraas@gnome.org> * e-dropdown-button.c: Replace #include <gtk/gtk.h> * e-dropdown-button.h: Remove #include <gnome.h> * e-filter-bar.c: Replace #include <gtk/gtk.h> * e-filter-bar.h: Replace #include <gtk/gtk.h> * e-messagebox.c: Add #includes to count for removed <gnome.h> in e-messagebox.h: * e-messagebox.h: Replace #include <gnome.h> * e-search-bar.c: Replace #include <gnome.h> * e-search-bar.h: Same here * test-calendar.c: Remove #include <gnome.h> * test-dateedit.c: Replace #include <gnome.h> * test-dropdown-button.c: Same here. * test-title-bar.c: Same here. svn path=/trunk/; revision=9018
* #ifdef HAVE_CONFIG_H Same here. Same here. And here.Kjartan Maraas2001-03-305-1/+19
| | | | | | | | | | | 2001-03-29 Kjartan Maraas <kmaraas@gnome.org> * e-meeting-time-sel-item.c: #ifdef HAVE_CONFIG_H * e-meeting-time-sel-list-item.c: Same here. * e-meeting-time-sel.c: Same here. * test-meeting-time-sel.c: And here. svn path=/trunk/; revision=9017
* Don't print the xml tree here.Christopher James Lahey2001-03-292-1/+8
| | | | | | | | | 2001-03-28 Christopher James Lahey <clahey@ximian.com> * menus/gal-view-menus.c (build_menus): Don't print the xml tree here. svn path=/trunk/; revision=9003
* 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
* Added util/e-bit-array.lo.Christopher James Lahey2001-03-274-224/+92
| | | | | | | | | | | | | | | | | | | | | | | | 2001-03-26 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added util/e-bit-array.lo. * gal/util/Makefile.am: Added e-bit-array.c and e-bit-array.h. * gal/util/e-bit-array.c, gal/util/e-bit-array.h: New class containing the implementation of the bit array used in e-selection-model-array. * gal/widgets/e-selection-model-array.c, e-selection-model-array.h: Refactored the bit array implementation into a separate class. * gal/widgets/e-selection-model-simple.c: Changed how it clears the bit array of the ESelectionModelArray parent class. * gal/widgets/e-selection-model.h: Added code to make the declaration of EForeachFunc only get included once. svn path=/trunk/; revision=8955
* 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-258-560/+975
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Validate the filter rule.Jeffrey Stedfast2001-03-232-1/+8
| | | | | | | | 2001-03-22 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (rule_editor_clicked): Validate the filter rule. svn path=/trunk/; revision=8909
* 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
* Upped the version number to 0.5.99.4.Christopher James Lahey2001-03-204-49/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-19 Christopher James Lahey <clahey@ximian.com> * configure.in: Upped the version number to 0.5.99.4. * Merged branch: 2001-03-18 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h: Added another semi-private function (e_selection_model_change_cursor.) 2001-03-18 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h: Added a couple of semi-private functions (e_selection_model_change_one_row and e_selection_model_confirm_row_count.) 2001-03-18 Christopher James Lahey <clahey@ximian.com> * tests/test-tree-1.c, tests/test-tree-3.c: Added arguments for e_tree_memory_callbacks_new of get_save_id and has_save_id to NULL. 2001-03-17 Christopher James Lahey <clahey@ximian.com> * gal/util/e-util.c (e_sort): Switched to just using qsort directly here. 2001-03-17 Christopher James Lahey <clahey@ximian.com> * gal/util/e-util.c, gal/util/e-util.h (e_bsearch, e_sort): Added e_sort and e_bsearch. They both take a closure. e_sort guarantees a stable sort. e_bsearch returns the range of matching elements including the position where an object would be if there are no matching elements. 2001-03-16 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added e-tree-sorted.lo. 2001-03-14 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-selection-model-simple.c, gal/widgets/e-selection-model-simple.h: Replaced the methods insert_row and delete_row with insert_rows and delete_rows. * gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h: Replaced the methods insert_row and delete_row with insert_rows and delete_rows. 2001-03-08 Christopher James Lahey <clahey@ximian.com> * Makefile.am: Added e-table/e-table-utils.lo, e-table/e-tree-memory-callbacks.lo, e-table/e-tree-memory.lo, e-table/e-tree-scrolled.lo, e-table/e-tree-table-adapter.lo, and e-table/e-tree.lo. Removed e-table/e-tree-simple.lo. * gal/util/e-util.c, gal/util/e-util.h: Added a whole bunch of e_marshal functions for ETree. * tests/test-tree-1.c, tests/test-tree-3.c: Reworked these to use the new tree stuff. End of branch svn path=/trunk/; revision=8840
* 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
* use gnome_dialog_run() to make the warning dialog modal. Also created aDamon Chaplin2001-03-192-38/+37
| | | | | | | | | | | 2001-03-18 Damon Chaplin <damon@ximian.com> * e-cell-date-edit.c (e_cell_date_edit_show_time_invalid_warning): use gnome_dialog_run() to make the warning dialog modal. Also created a better warning message showing the format expected. Also used e_time_format_time() to format all times. svn path=/trunk/; revision=8823
* Removed extra printfsMiguel de Icaza2001-03-194-22/+29
| | | | svn path=/trunk/; revision=8812
* Set the size of the thing to a decent value that lets us test stuff.Miguel de Icaza2001-03-192-58/+69
| | | | | | | | | | | | | | 2001-03-18 Miguel de Icaza <miguel@ximian.com> * tests/test-tree-1.c (create_tree): Set the size of the thing to a decent value that lets us test stuff. 2001-03-16 Miguel de Icaza <miguel@ximian.com> * gal/e-text/e-entry.h: Expose the canvas/item that used to be public and that were privatized. svn path=/trunk/; revision=8802
* 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 accelerator to elements missing accelerators (Reply, Inline, Quoted,Miguel de Icaza2001-03-172-5/+10
| | | | | | | | | | | | | | | | | | 2001-03-16 Miguel de Icaza <miguel@ximian.com> * evolution-mail.xml: Added accelerator to elements missing accelerators (Reply, Inline, Quoted, Attachments, Empty Trash, Full Headers). * evolution.xml: Added a placeholder for the beginning of the view. 2001-03-16 Miguel de Icaza <miguel@ximian.com> * menus/gal-view-menus.c (build_menus): Hook this up under the "ViewBegin" node. svn path=/trunk/; revision=8772
* Comment out text after #endif. Add #include <string.h> for strcmp().Kjartan Maraas2001-03-161-0/+1
| | | | | | | | | 2001-03-16 Kjartan Maraas <kmaraas@gnome.org> * gal/widgets/widget-pixmap-combo.h: Comment out text after #endif. * gal/e-text/e-completion.c: Add #include <string.h> for strcmp(). svn path=/trunk/; revision=8758
* 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.Dan Winship2001-03-163-2/+10
| | | | | | | | | | * e-meeting-time-sel.c (e_meeting_time_selector_on_text_item_event): * e-meeting-time-sel-list-item.c (e_meeting_time_selector_list_item_button_press): Update arguments to e_canvas_item_grab_focus. svn path=/trunk/; revision=8749
* 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
* Make this take an extra argument saying whether or not to grab theDan Winship2001-03-163-8/+9
| | | | | | | | | | | * gal/widgets/e-canvas.c (e_canvas_item_grab_focus): Make this take an extra argument saying whether or not to grab the widget-level focus. * gal/e-text/e-text.c (e_text_event): Update arguments to e_canvas_item_grab_focus. svn path=/trunk/; revision=8745
* If we click on the edit menu, then bring up a rule editor. If the userNot Zed2001-03-152-0/+32
| | | | | | | | | | 2001-03-15 Not Zed <NotZed@Ximian.com> * e-filter-bar.c (menubar_activated): If we click on the edit menu, then bring up a rule editor. If the user adds/removes rules though, they are neither saved, nor added to the menu's. sigh. svn path=/trunk/; revision=8730
* Made this function do something a little closer to what it is supposed toChristopher James Lahey2001-03-141-2/+4
| | | | | | | | | 2001-03-13 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-reflow.c (e_reflow_point): Made this function do something a little closer to what it is supposed to do. svn path=/trunk/; revision=8693
* Rename this from g_unichar_to_utf8 so that it doesn't conflict with theDan Winship2001-03-142-9/+9
| | | | | | | | | * gal/widgets/e-unicode.c (e_unichar_to_utf8): Rename this from g_unichar_to_utf8 so that it doesn't conflict with the function of that name exported by gnome-print (and so that it's consistent with all of the other functions in the file). svn path=/trunk/; revision=8679
* Renamed "temp" as "new_text", to avoid confusion.Jon Trowbridge2001-03-131-5/+5
| | | | | | | | | | | 2001-03-12 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-text-model.c (e_text_model_real_insert_length): Renamed "temp" as "new_text", to avoid confusion. (e_text_model_real_delete): Renamed "temp" as "new_text", to avoid confusion. svn path=/trunk/; revision=8640
* 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
* Reorganize the menus to have entries always in a consistent fashion, asMiguel de Icaza2001-03-072-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-02-27 Miguel de Icaza <miguel@ximian.com> * gui/e-day-view.c (e_day_view_on_event_right_click): Reorganize the menus to have entries always in a consistent fashion, as reported to the genepool mailing list. (e_day_view_on_event_right_click): Added a FIXME comment to the FIXME comment without a FIXME. Now we use e_popup_menu. This allows us to hide/show items on demand, and to sensitize/de-sensitize items depending on their state. This will also let us add icon support (when we get nice icons for this) * gui/e-week-view.c (e_week_view_show_popup_menu): Ditto. The files popup-menu.c and popup-menu.h can now be removed. 2001-03-01 Miguel de Icaza <miguel@ximian.com> * folder-browser.c (on_right_click): Move the context menus to the toplevel code; Use enumerations for the various bitfield constants. Add support for hiding items that are not required (read/unread and delete/undelete). This requires my previous patch, as it assumes "Open" does the right thing instead of having two operations: Open and Edit. 2001-02-28 Miguel de Icaza <miguel@ximian.com> * folder-browser.c (on_right_click): Removed draft folders op here, since open_msg now does the right thing (edit or view). * folder-browser-factory.c (update_pixmaps): Removed MessageEdit from here. * mail-callbacks.c (open_msg): New function, does the "right thing" to a message (either, edit or open). * folder-browser-factory.c: Register new command here. (update_pixmaps): Rename keys that have been shuffled around. (update_pixmaps): Rename to match new updates on xml file. Rename MessageOpenNewWindow to MessageOpen. Change action from "view_message" to "open_message". * mail-callbacks.c (mark_all_as_seen): New command. Marks all messages as seen. 2001-03-06 Miguel de Icaza <miguel@ximian.com> * evolution-tasks.xml: Added "File/New/Task" as well. * evolution-mail.xml: Added "File/New/Mail Message" at the top with binding C-n. * evolution-calendar.xml: Set the binding for New Appointment to C-n * evolution-contact-editor.xml: Set the toolbar to hlook=text vlook=icon; Set all icons priority-text to 1. * evolution-addressbook.xml: Added "Contact" to the New menu. * evolution.xml: Provide an entry point to put "New" items on the first level. We are going to need some Bonobo support to "hide" objects when other objects appear (like, having Mail Message bound to C-S-X in the global space, and when we switch to Mail, we only show the entry that has C-n as the binding). 2001-02-28 Miguel de Icaza <miguel@ximian.com> * evolution.xml: Moved Importer after the Folder operations per Dan's proposal. * evolution-addressbook.xml: Renamed Settings/AddressBook Configuration to Tools/Settings. Make all the items have "Print" items that use the same icon instead of a collection of icons. * evolution-calendar.xml: Moved "Calendar Preferences" from "Settings" to "Tools/Settings". * evolution-mail.xml: Settings menu is fully gone. All things that run a dialog now end up in "Tools" while actions end up in "Actions". Hence I am right. Renamed "Mail Configuration..." to "Identieies and Servers" Move MessageMarkAsRead, MessageMarkAsUnRead to Edit menu. Add MessageMarkAllAsRead. Remove "Print Message" from Message menu. Remove "Print Preview Message" from Message menu. Leave them on the "File" menu. Renamed "Reply to Sender" to "Reply" (awaiting Ettore's permission). Renamed "Messages" to "Actions". Open Message renamed to "Open Selected Items" (as this is what it actually does). Moved "Save Message As" to "File" menu. Added "Properties" to the File/Folder submenu. Edit menu now looks like this: Message Move, Message Copy, Select All, Invert Selection, Delete, Undelete, Mark as Read, Mark as Unread. Some of them were moved from the "Messages" menu. "Forward message" shortcut changed to C-f Tools menu created. Create Rule From message moved to "Tools". * evolution.xml: Added Tools menu. Moved Edit/Customize to Tools/Customize Toolbar. Added File/Folder submenu. Duplicate "New Folder" in here. 2001-02-28 Miguel de Icaza <miguel@ximian.com> * menus/gal-view-menus.c (build_menus): Add translation string here. svn path=/trunk/; revision=8572
* Added. This is part of a change of sematics that makes things much nicerJon Trowbridge2001-03-064-28/+68
| | | | | | | | | | | | | | | | | | | | | | | 2001-03-06 Jon Trowbridge <trow@gnu.org> * gal/e-text/e-entry.c (e_entry_text_keypress): Added. This is part of a change of sematics that makes things much nicer for the user --- auto-activate the completion popup only on keypresses than also change the entry. (e_entry_proxy_changed): Record that the underlying EText has changed, and set up a timeout to clear the changed_since_keypress flag in a very short amount of time. (e_entry_init): Connect to the EText's "keypress" signal". (e_entry_destroy): If our completion_delay_tag timeout is still floating around out there when we are winding things down, remove it. * gal/e-text/e-text.c (e_text_class_init): Added keypress signal. (e_text_text_model_reposition): Removed some old cruft. (e_text_event): Emit our keypress signal after handling events of type GDK_KEY_PRESS. svn path=/trunk/; revision=8566
* Set version number to 0.5.99.5Jon Trowbridge2001-03-065-10/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-05 Jon Trowbridge <trow@gnu.org> * configure.in: Set version number to 0.5.99.5 * gal/e-text/e-entry.c (e_entry_class_init): Add a "popup" signal. If you have trepidations about this, see the technical argument below. (e_entry_init): Connect to the EText's popup signal. (e_entry_proxy_popup): Proxy emitter for popup signals from the EText. * gal/e-text/e-text.c (e_text_class_init): Added a "popup" signal. (e_text_event): Emit the "popup" signal on right-clicks. Now you could ask yourself: "should there be a signal named 'popup' in EText that gets emitted on right-clicks?" And this is a reasonable question, since... well, this has a funny feeling to it. But the whole point of GNOME, or at least one of the original points of GNOME, was to impose policy in a reasonable way when it made sense in order to simplify the user's experience. Convention dictates that popup menus are tied to right-clicks --- so rather than setting up some elaborate forwarding of button-press signals, why not just impose a little policy and set up a signal that is closely tied to a familiar set of semantics? Maybe it isn't the best thing to do from a aesthetics-of-the-API point of view, but I doubt anyone could condemn it as being anything more than mostly harmless. svn path=/trunk/; revision=8565
* Rebuild when the collection changes.Christopher James Lahey2001-03-062-11/+65
| | | | | | | | | 2001-03-05 Christopher James Lahey <clahey@ximian.com> * menus/gal-view-menus.c (collection_changed): Rebuild when the collection changes. svn path=/trunk/; revision=8558
* Upped the version number to 0.5.99.4.Christopher James Lahey2001-03-061-0/+1
| | | | | | | | | | 2001-03-05 Christopher James Lahey <clahey@ximian.com> * configure.in: Upped the version number to 0.5.99.4. * gal/e-text/e-text.c (e_text_draw): Fixed a crash here. svn path=/trunk/; revision=8556
* New changed signal.Christopher James Lahey2001-03-062-12/+47
| | | | | | | | | 2001-03-05 Christopher James Lahey <clahey@ximian.com> * gal-view-collection.c, gal-view-collection.h (gal_view_collection_changed): New changed signal. svn path=/trunk/; revision=8555
* pretty much working now.Damon Chaplin2001-03-053-76/+537
| | | | | | | | 2001-03-04 Damon Chaplin <damon@ximian.com> * e-cell-date-edit.c: pretty much working now. svn path=/trunk/; revision=8548
* 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
* Boost version number to 0.5.99.3.Jon Trowbridge2001-03-025-99/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-01 Jon Trowbridge <trow@ximian.com> * configure.in: Boost version number to 0.5.99.3. * gal/e-text/e-entry.c (e_entry_show_popup): Grab pointer when the popup is visible, and then hide the popup if any button press events occur outside of the popup. This lets up avoid most of the worst "floating popup" cases that would occur if windows are moved, desktops changed, etc. with the mouse. (Doing things like changing desktop w/ keybindings can still cause a "floating popup", but that is also true of Gtk's own combo box.) Change popup positioning to slightly offset it from the entry, rather than just plopping it down directly below. (button_press_cb): Determine if a button press occured outside of the popup when the pointer was grabbed, and unbrowse accordingly. * gal/e-text/e-completion-view.c (e_completion_view_key_press_handler): Improve keystroke handling. Allow Tabs to pass through (after hiding the pop-up) in order to allow focus change requests to work properly. (e_completion_view_construct): Disable horizontal scrollbars. * gal/e-text/e-completion-test.c (main): Reworked to use signals instead of explicit callbacks. * gal/e-text/e-completion.h: * gal/e-text/e-completion.c: Fix the awkward mix of signals and explicitly-specified callbacks by taking out the explicit callbacks. This approach is more gtk-ish, after all. svn path=/trunk/; revision=8458
* 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
* New class implementing a simple selection model that you add rows to andChris Lahey2001-03-012-0/+144
| | | | | | | | * gal/widgets/e-selection-model-simple.c, gal/widgets/e-selection-model-simple.h: New class implementing a simple selection model that you add rows to and remove rows from. svn path=/trunk/; revision=8443
* Added e-selection-model-simple.lo.Christopher James Lahey2001-03-014-27/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-01 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added e-selection-model-simple.lo. * gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added e-selection-model-simple.c. (libwidgetsinclude_HEADERS): Added e-selection-model-simple.h. * gal/widgets/e-reflow-sorted.c, gal/widgets/e-reflow-sorted.h: Added a gint *position argument to e_reflow_sorted_remove_item and e_reflow_sorted_get_item and two gint * arguments to e_reflow_sorted_replace_item and e_reflow_sorted_reorder_item to return the positions in the array of the items removed, gotten, or moved. * gal/widgets/e-reflow.c, gal/widgets/e-reflow.h: Added a gint *position argument to e_reflow_sorted_add_item to return the positions in the array of the item added. * gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h: Added e_selection_model_move_row. svn path=/trunk/; revision=8442
* 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
* New type of search bar that interacts with filter contexts to save filtersNot Zed2001-03-016-29/+672
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-01 Not Zed <NotZed@Ximian.com> * e-filter-bar.c: New type of search bar that interacts with filter contexts to save filters etc. Still probably needs a little cleanpu. 2001-02-28 Not Zed <NotZed@Ximian.com> * e-search-bar.c (add_dropdown): Save the dropdown menu in the struct too. Sigh, this is only so we can scan its content later, ick. (e_search_bar_set_menu_sensitive): New function to se tthe sentisitivty of menyu items based on id. (find_id): New function to find the row and widget for a specific id. (add_option): Renamed to set_option. (add_dropdown): Renamed to set_dropdown. (add_dropdown): ?New function to add a single item. (set_dropdown): Call add_dropdown to add each item. (e_search_bar_add_menu): New public function to add a single item. 2001-02-27 Not Zed <NotZed@Ximian.com> * Makefile.am (libemiscwidgets_a_SOURCES): Added filter-bar.[ch]. * e-search-bar.c (class_init): Init virtual functions. (e_search_bar_set_option): (e_search_bar_set_menu): virtualise calling. (e_search_bar_construct): Call virtual functions to setup menus. * e-search-bar.h (struct _ESearchBarClass): Virtualise add_dropdown/add_option, so certain base options can be created. svn path=/trunk/; revision=8436
* Make this more robust: do not assume that the GdkEvent will be either aMiguel de Icaza2001-02-281-1/+7
| | | | | | | | | | 2001-02-27 Miguel de Icaza <miguel@ximian.com> * gal/widgets/e-gui-utils.c (e_popup_menu): Make this more robust: do not assume that the GdkEvent will be either a GdkEventButton of some sort or a GdkEventKey: deal gracefully with other possible svn path=/trunk/; revision=8423
* Changed e_table_selection_model_clear to e_selection_model_clear.Christopher James Lahey2001-02-2817-893/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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