2001-10-18 Jon Trowbridge <trow@ximian.com>
* gal/e-text/e-entry.c (e_entry_enable_completion_full): Connect
keys before we show the widget.
svn path=/trunk/; revision=13756
2001-10-16 Christopher James Lahey <clahey@ximian.com>
* e-tree-table-adapter.c (find_next_node_maybe_deleted,
find_first_child_node_maybe_deleted, find_next_node,
find_first_child_node, find_row_num): Added bounds checking in a
number of places.
(etta_init): Initialize all the fields here.
svn path=/trunk/; revision=13712
2001-10-12 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c (set_initial_selection): Use new
e_table_header_prioritized_column field.
* e-table-header.c, e-table-header.h
(e_table_header_prioritized_column): New function. Refactors the
code from ETableClickToAdd to find the column with the highest
priority.
* e-table-selection-model.c, e-table-selection-model.h
(model_changed_idle): Changed this function to use the
e_table_header_prioritized_column function. Added an argument to
set the "header" on this selection model.
* e-table-utils.h: Indentation cleanup.
* e-table.c (et_real_construct): Set the "header" argument on the
selection model here.
* e-table.h: #include <gal/e-table/e-table-sorter.h>
svn path=/trunk/; revision=13633
2001-10-12 Christopher James Lahey <clahey@ximian.com>
* e-table-state.c (e_table_state_duplicate): Copy the can group
state on the sort info here.
svn path=/trunk/; revision=13625
2001-10-11 <NotZed@Ximian.com>
* configure.in: bumped revision to .1
* gal/widgets/test-font-loading.c (print_gdk_font_name): Close
iconv when done.
* gal/widgets/e-unicode.c (e_utf8_to_gtk_string_sized): Close
iconv when dont with it.
(e_utf8_from_charset_string_sized): Changed for e_iconv api
changes.
(e_utf8_to_charset_string_sized): "
(e_utf8_from_gtk_string_sized): Close iconv when done with it.
(e_utf8_from_locale_string_sized): "
(e_utf8_to_locale_string_sized): "
* gal/widgets/e-font.c (e_locale_encoding): Removed.
(e_iconv_from_charset): Removed.
(e_iconv_to_charset): Removed.
(e_iconv_from_locale): Removed.
(e_iconv_to_locale): Removed.
(e_iconv_from_gdk_font): Changd to use new e-iconv apis.
(e_iconv_to_gdk_font): "
(e_font_unref): Close iconv's when done with them.
(translate_encoding): Removed.
(get_locale_charset): Removed.
(e_gdk_font_encoding): Fix for api changes.
* gal/util/e-iconv.c: New stuff to commonify/fix up some problems
with the iconv cache/conversion stuff inside e-font.
svn path=/trunk/; revision=13601
2001-10-11 Christopher James Lahey <clahey@ximian.com>
* gal/e-text/e-table-text-model.c (e_table_text_model_insert,
e_table_text_model_insert_length, e_table_text_model_delete),
gal/e-text/e-text-model.c (e_text_model_real_insert,
e_text_model_real_insert_length): Use e_strdup_append_strings here
instead of g_strdup_printf because printf("%.*s") is locale
dependent on some systems.
* gal/util/e-util.c (e_strdup_append_strings): New function to
append a bunch of strings with optional lengths.
svn path=/trunk/; revision=13581
2001-10-10 Christopher James Lahey <clahey@ximian.com>
* e-cell-popup.c (ecp_get_bg_color), e-cell-tree.c
(ect_get_bg_color): Implement these functions as pass through to
the child cell.
* e-cell-text.c, e-cell-text.h (ect_get_bg_color): Implemented
this using a bg_color_column which can be set through the argument
of the same string.
* e-cell.c, e-cell.h (e_cell_get_bg_color): Added this function to
allow background color to change by cell.
* e-table-item.c (eti_get_cell_background_color): Call
e_cell_get_bg_color to allow background color to change by cell.
svn path=/trunk/; revision=13566
2001-10-10 Christopher James Lahey <clahey@ximian.com>
Based on patches from Dan Nguyen <dnn@austin.ibm.com>.
* gal/Makefile.am (libgal_la_LDFLAGS): Added $(GTK_LIBS).
* gal/e-text/e-text.c (e_text_event): Changed this from a C++
comment to a C comment.
svn path=/trunk/; revision=13549
2001-10-10 Christopher James Lahey <clahey@ximian.com>
* e-table.c, e-table.h (e_table_get_selection_model): Added this
function.
svn path=/trunk/; revision=13548
2001-10-06 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_show_cursor, eti_check_cursor_bounds): Check
that cell views are realized before doing anything here. Fixes
Ximian bug #11919.
(eti_check_cursor_on_screen): If the cursor values are all set to
-1, don't do anything.
svn path=/trunk/; revision=13488
2001-10-06 Larry Ewing <lewing@ximian.com>
* gal/widgets/e-unicode.c (e_utf8_from_gtk_event_key): remove the
test condition and always work form the locale not he the font.
This has been tested and verified with owen.
svn path=/trunk/; revision=13487
2001-10-06 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_table_model_row_changed,
eti_table_model_cell_changed): Handle row and cell changes
properly in the uniform_row_height case.
svn path=/trunk/; revision=13485
2001-10-06 Christopher James Lahey <clahey@ximian.com>
* e-tree.c (context_destroyed), e-table.c (context_destroyed): Use
g_dataset_set_data_full to find out when the context is destroyed.
Fixes Ximian bug #8502 and Ximian bug #11691.
svn path=/trunk/; revision=13482
2001-10-05 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Got rid of the misused button
variable here.
svn path=/trunk/; revision=13468
2001-10-05 Jon Trowbridge <trow@ximian.com>
* gal/widgets/e-categories-master-list-combo.c
(ecmlc_ecml_changed): Sort the list of categories.
(Bug 8088)
2001-10-05 Jon Trowbridge <trow@ximian.com>
* e-table-without.c (e_table_without_show_all): We need to take
the row count from the source model, not from the ETableWithout.
This typo is why contacts kept disappearing in the SelectNames
dialog. (Bugs 9326, 10916)
2001-10-04 Jon Trowbridge <trow@ximian.com>
* e-icon-bar.c (e_icon_bar_add_item): Don't call gdk_pixbuf_ref
if image is NULL.
* e-shortcut-model.c (e_shortcut_model_real_get_item_info): Check
to make sure we don't call gdk_pixbuf_ref on NULL, which causes a
warning.
svn path=/trunk/; revision=13465
2001-10-05 Michael Meeks <michael@ximian.com>
* gal/util/e-util.h: add E_OBJECT_CLASS_ADD_SIGNALS and
E_OBJECT_CLASS_TYPE to ease migration to Gnome 2.0 from
a single source base.
* All C files:
s/object_class->type,/E_OBJECT_CLASS_TYPE (object_class),/g;
s/gtk_object_class_add_signals([^\(]*)\(([^,]*),([^,]*),([^\)]*)/
E_OBJECT_CLASS_ADD_SIGNALS\1(\2,\3,\4/;
svn path=/trunk/; revision=13428
2001-10-04 Rodrigo Moya <rodrigo@ximian.com>
* misc/Makefile.am:
* menus/Makefile.am: added BONOBO_GNOME_CFLAGS to make it compile
with latest Bonobo
svn path=/trunk/; revision=13407
2001-10-04 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_idle_maybe_show_cursor): Sometimes put off
maybe showing the cursor until an idle callback.
* e-tree-selection-model.c (add_model): Use connect_after to
connect to all the signals. This means we can assume the sorted
tree and table adapters are both done. This also means that those
objects cannot assume that the selection is already changed.
svn path=/trunk/; revision=13406
2001-10-03 Christopher James Lahey <clahey@ximian.com>
* e-table-selection-model.c (e_table_selection_model_init):
Initialize the hash field.
(model_changed_idle): Send cursor changed and selection changed signals.
(model_pre_change): If there's no cursor here, make sure to set
the cursor_id to NULL.
svn path=/trunk/; revision=13373
2001-10-03 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c (set_initial_selection): Pick which field
of the row to select based on priority.
* e-table-col.c, e-table-col.h: Added the priority field to this
class. Adapted the _new functions appropriately.
* e-table-column-specification.c, e-table-column-specification.h:
Added the priority field to this class.
* e-table-utils.c (et_col_spec_to_col): Handle the priority field here.
svn path=/trunk/; revision=13370
2001-10-02 Christopher James Lahey <clahey@ximian.com>
* gal/e-text/e-text-model.c (MAX_LENGTH): Added a max length of
2047 to the standard ETextModel. Fixes Ximian bug #3021.
svn path=/trunk/; revision=13298
2001-10-02 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c, e-table-item.h: Only show the cursor during
changes if it was already shown. Fixes Ximian bug #9810 and
Ximian bug #4048.
svn path=/trunk/; revision=13297
2001-10-02 Christopher James Lahey <clahey@ximian.com>
* configure.in: Bumped the sonumber to 14.
* gal/widgets/e-canvas-utils.c, gal/widgets/e-canvas-utils.h
(e_canvas_item_area_shown): New function returns TRUE iff
e_canvas_item_show_area would be a noop.
svn path=/trunk/; revision=13296
2001-09-28 Christopher James Lahey <clahey@ximian.com>
* e-tree-sorted.c (ets_proxy_node_changed): Stop the sort idle if
the root node gets changed.
svn path=/trunk/; revision=13227
2001-09-18 Damon Chaplin <damon@ximian.com>
* e-dateedit.c (e_date_edit_grab_focus): grab focus to the date entry
or the time entry, depending on which is visible. Fixes bug #7237.
svn path=/trunk/; revision=13185
2001-09-26 Jon Trowbridge <trow@ximian.com>
* gal/e-text/e-completion-view.c
(e_completion_view_key_press_handler): Allow ctrl-p and ctrl-n to
be used to move up and down in the completion list. (Bug #10500)
* gal/e-text/e-completion-match.c (e_completion_match_set_text):
Properly validate the utf8.
svn path=/trunk/; revision=13159
2001-09-26 Christopher James Lahey <clahey@ximian.com>
* e-table.c, e-tree.c: Set the step_increment on the horizontal
scrollbars here to 20.
svn path=/trunk/; revision=13146
2001-09-26 Christopher James Lahey <clahey@ximian.com>
* gal/e-text/e-text.c, gal/e-text/e-text.h (_insert): Made it so
that if allow_newlines is FALSE, pasting into ETexts doesn't
insert carriage returns. Fixes Ximian bug #5761 and Ximian bug
#9067.
svn path=/trunk/; revision=13143
2001-09-24 Christopher James Lahey <clahey@ximian.com>
* e-tree-selection-model.c (etsm_sorted_node_resorted): Attach to
the resorted signal instead of the changed signal on the sorted
model.
* e-tree-sorted.c, e-tree-sorted.h (e_tree_sorted_node_resorted):
Added this signal.
svn path=/trunk/; revision=13108
2001-09-24 Federico Mena Quintero <federico@ximian.com>
* e-table.c (et_canvas_button_press): Use the correct prototype
for the signal handler.
* e-tree.c (et_canvas_button_press): Likewise.
svn path=/trunk/; revision=13105
2001-09-24 Federico Mena Quintero <federico@ximian.com>
* e-table-group.c (e_table_group_add): Assert that the virtual
method is implemented instead of being forgiving.
(e_table_group_add_array): Likewise.
(e_table_group_add_all): Likewise.
(e_table_group_remove): Likewise.
(e_table_group_increment): Likewise.
(e_table_group_decrement): Likewise.
(e_table_group_row_count): Likewise.
(e_table_group_set_focus): Likewise.
(e_table_group_get_focus): Likewise.
(e_table_group_get_focus_column): Likewise.
(e_table_group_get_printable): Likewise.
(e_table_group_compute_location): Likewise.
(e_table_group_get_cell_geometry): Likewise.
(etg_destroy): Clear the fields after we unref them.
* e-table-group-leaf.c (etgl_destroy): Clear the fields after we
unref them.
(e_table_group_leaf_construct): Subsets should not be sunk. Do
not ref/sink the subset.
* e-table-header.c (e_table_header_add_column): Document the fact
that the header assumes ownership of the column.
svn path=/trunk/; revision=13102
2001-09-22 Christopher James Lahey <clahey@ximian.com>
* configure.in: Bumped the version number to 0.12.99.0.
From a patch by Damian Ivereigh <damian@cisco.com>:
* gal/util/e-util.c, gal/util/e-util.h (e_strftime_fix_am_pm): New
function, takes the same arguments as strftime, but does some
fixup if the given string is in 12 hour mode but the locale
doesn't have AM/PM descriptors.
From gal/e-table/ChangeLog:
2001-09-22 Christopher James Lahey <clahey@ximian.com>
From a patch by Damian Ivereigh <damian@cisco.com>:
* e-cell-date.c: Made this use e_strftime_fix_am_pm instead of
strftime.
svn path=/trunk/; revision=13081
2001-09-20 Christopher James Lahey <clahey@ximian.com>
* gal/widgets/e-reflow.c (reflow_columns): Fixed a typo here where
we were setting the running height based on the height of object
number 2 instead of the current object. Fixes Ximian bug #8807.
svn path=/trunk/; revision=13026
2001-09-19 Christopher James Lahey <clahey@ximian.com>
* e-table-selection-model.c (add_model): Confirm row count here.
(etsm_get_row_count): Make sure etsm->model isn't NULL here.
If it is, it's not an error. Return 0 in this case.
svn path=/trunk/; revision=12993
2001-09-19 JP Rosevear <jpr@ximian.com>
* Makefile.am: the meeting-time-sel dir is dead, relevant pieces
moved to calendar/gui
svn path=/trunk/; revision=12967
2001-09-17 Larry Ewing <lewing@ximian.com>
* gal/e-text/e-text.c (e_text_supply_selection): remove redundant
NULL checks since g_free handles NULLs.
(e_text_destroy): free the selection. It does appear to be a
guarantee that we get a selection-clear event before we are
destroyed.
svn path=/trunk/; revision=12934
2001-09-16 Christopher James Lahey <clahey@ximian.com>
* configure.in: Bumped version number to 0.11.99.4.
* gal/e-text/e-completion-view.c (e_completion_view_construct),
tests/test-table-1.c (create_table): Changed the parameters to
e_table_simple_new here to adjust to changes in the interface.
* gal/widgets/e-categories-master-list-array.c (ecmla_default):
Fixed a memory leak here.
* gal/widgets/e-categories.c (e_categories_get_save_id): Added
get_save_id here so that selection would be maintained across
changes.
From gal/e-table/ChangeLog:
2001-09-16 Christopher James Lahey <clahey@ximian.com>
* e-table-model.c, e-table-model.h (e_table_model_class_init):
Rearranged order of has_save_id and get_save_id to be more
consistent with ETree.
* e-table-selection-model.c, e-table-selection-model.h: Turned on
the code to maintain selection and cursor across changes if the
model supports get_save_id.
* e-table-simple.c, e-table-simple.h: Changed this interface to
take all of the ETableModel functions in the _new function.
* e-table-subset.c (etss_has_save_id, etss_get_save_id): Added
these to properly proxy the save_id functionality.
* e-tree-memory-callbacks.c, e-tree-memory-callbacks.h,
e-tree-model.c, e-tree-model.h, e-tree-sorted.c: Made the save_id
parameter to get_node_by_id be const char * instead of char *.
* e-tree-table-adapter.c (etta_class_init): Rearranged some
assignments here to be more consistent.
svn path=/trunk/; revision=12869