2000-09-06 Jody Goldberg <jgoldberg@home.com>
* color-group.c (color_group_new_named) : strdup the name if it is
supplied by the user.
(color_group_class_init) : Use the destroy method.
2000-09-03 Michael Levy <mlevy@genoscope.cns.fr>
* color-group.c : Re-write of color-combo-group.c to allow
for arbitrary widgets to share a common color history.
* widget-color-combo.c :
Extracted all the code required to make the color table and moved it to a
new object (ColorPalette). Changed the ColorCombo so that it uses
the ColorPalette (and the shared color hsitory provided by the groupped
ColorPalettes).
All the code that refered to the creation of the color table was
removed, and when appropriate, moved to color-palette.c
Removed all mention of ColorComboGroups (as these no longer exist).
* color-palette.c : Extracted from widget-color-combo.c
(color_palette_new) : Creates a color palette.
(color_palette_get_current_color) : returns the current color.
2000-07-30 Michael Levy <mlevy@genoscope.cns.fr>
* color-combo-group.c : New GtkObject meant to group color combo boxes so
that their custom color histories are shared.
Includes functions to create and destroy the object, as
well as those required size, and navigate through the custom color history.
* widget-color-combo.c
(group_new_custom_color) : New function to handle the
new_custom_color signal emitted by the ColorComboGroup
(custom_color_history_setup) : New function which initialises a
combo box's custom color history with the one stored in the group
(color_table_setup) : Added call to custom_color_history_setup.
(cust_color_set) : Removed call to cust_color_row_shift and moved
it to group_new_custom_color. Also added call to
color_combo_group_add_color in order to notify group of change
(color_combo_new_with_vals) : Added mandatory group name to
function prototype. Also added call to color_combo_group_new_named
and connected the "new_custom_color" signal emitted by the newly
created group to group_new_custom_color
(color_combo_new) : Added mandatory group name to function
prototype.
* widget-color-combo.c (color_combo_new) : Added mandatory group
name to function prototype.
svn path=/trunk/; revision=5229
2000-09-05 Damon Chaplin <damon@helixcode.com>
* e-calendar-item.c (e_calendar_item_draw_month): make sure we get
the start_weekday since we need it for draw_days(). Fixes a drawing
bug.
2000-08-31 Damon Chaplin <damon@helixcode.com>
* e-calendar-item.c (e_calendar_item_button_press):
(e_calendar_item_button_release): grab/ungrab the pointer so we
always get the button_release event.
svn path=/trunk/; revision=5216
2000-09-01 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c, e-table.c: Fixed a leak and a double unref.
svn path=/trunk/; revision=5174
2000-09-01 Chris Toshok <toshok@helixcode.com>
* e-tree-example-2.c: new test, a home grown 2 hour hack of a file
browser. uses node_collapsed/emitted signals to populate the left
tree.
* Makefile.am: add tree-example-2.c stuff.
* .cvsignore: add tree-example-2
svn path=/trunk/; revision=5163
2000-09-01 Chris Toshok <toshok@helixcode.com>
* e-tree-model.h: add signals/prototypes for
e_tree_model_node_collapsed and e_tree_model_node_expanded.
* e-tree-model.c (etree_set_expanded): emit
node_expanded/node_collapsed signals, with node_expanded happening
before the expansion so it can much with the children, and
collapsed being emitted after.
(e_tree_model_row_of_node): remove stupid check, and g_warning.
(e_tree_model_node_collapsed): new function.
(e_tree_model_node_expanded): new function.
svn path=/trunk/; revision=5162
2000-08-31 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Made the selection work when shift
clicking on the first row of the table.
svn path=/trunk/; revision=5139
2000-08-30 Jody Goldberg <jgoldberg@home.com>
* dependent.[ch] : New base class for Cells.
Convert everything to access the elements that are now
in the cell's base.
s/Cell::sheet/Cell::Dependent::sheet/
s/Cell::cell_flags/Cell::Dependent::flags/
* Makefile.am : Because of XL we need to build plugins before src.
That will need changing.
* src/func.c (function_marshal_arg) : Use expr_array_intersection.
* src/expr.c (eval_expr_real) : Do implicit conversions from strings
to numbers if possible.
Access the first element of an array. NOTE : This is WRONG
We need to implement array expression behavior some day.
(expr_array_intersection) : New routine.
svn path=/trunk/; revision=5127
2000-08-30 Federico Mena Quintero <federico@helixcode.com>
* e-paned/e-hpaned.c (e_hpaned_motion): Do not flicker while
trying to resize a quantized pane.
* e-paned/e-vpaned.c (e_vpaned_motion): Likewise.
svn path=/trunk/; revision=5125
2000-08-30 Federico Mena Quintero <federico@helixcode.com>
* widgets/e-paned/e-vpaned.c (e_vpaned_size_allocate): Ensure that
the child's allocation height is >= 1.
* widgets/e-paned/e-hpaned.c (e_hpaned_size_allocate): Ensure that
the child's allocation width is >= 1.
2000-08-30 Federico Mena Quintero <federico@helixcode.com>
* ChangeLog: Started a ChangeLog here.
svn path=/trunk/; revision=5123
* Makefile.am (libeutil_la_LIBADD): make e-util depend on
libunicode
* e-popup-menu.c (make_item): Use GtkMenuItem rather than
GtkPixmapMenuItem for items with no pixmaps, so that if the whole
menu is pixmapless, you don't get a column of blank pixmaps.
svn path=/trunk/; revision=5114
2000-08-28 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c: Make printing of groups work better
and make them print headers.
* e-table-item.c: Turn off alternating row support.
svn path=/trunk/; revision=5086
2000-08-25 Christopher James Lahey <clahey@helixcode.com>
* e-table-col.c, e-table-config.c, e-table-header.c,
e-table-text-model.c: Added some g_return_if_fails and
g_return_val_if_fails.
svn path=/trunk/; revision=5056
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Fix an off by one error that was causing crashes.
svn path=/trunk/; revision=5027
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Set default values for all of the signal emissions.
svn path=/trunk/; revision=5026
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Check for selection->selection being
NULL in e_table_selection_model_selected_count.
svn path=/trunk/; revision=5025
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Pay attention to the return value from the click
signal.
svn path=/trunk/; revision=5022
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h,
e-table.c, e-table.h: Added a click signal which gets sent if the
user hits the left or middle mouse button on a cell.
svn path=/trunk/; revision=5020
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-toggle.c, e-cell-tree.c, e-cell.c,
e-cell.h, e-table-col.c, e-table-col.h, e-table-item.c: Added
infrastructure for setting the justification of columns. Still
need to change the cells to support it and need to add user
interface to change the justification.
svn path=/trunk/; revision=5010
2000-08-23 Christopher James Lahey <clahey@helixcode.com>
* e-table-subset-variable.c: Fixed a bug in
e_table_subset_variable_increment that causes problems with
ETree's. Specifically, when you incremented at position x, the
row x didn't get incremented as it should (s/>/>=/.)
svn path=/trunk/; revision=4994
2000-08-22 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-toggle.c, e-cell-tree.c, e-table-item.c:
Moved drawing of the cell backgrounds from ECell into ETableItem.
* e-tree-model.c: Include stdlib.c.
svn path=/trunk/; revision=4915
2000-08-21 Chris Toshok <toshok@helixcode.com>
* e-tree-example-1.c (remove_node): we can remove nodes with
children now.
* e-tree-model.h: add prototype for e_tree_model_node_sort.
* e-tree-model.c (etree_set_expanded): if the node is invisible,
just set its expanded flag and return.
(e_tree_model_root_node_set_visible): call set_expanded before we
remove it from the row array or else the aforementioned change
will result in nothing happening.
(e_tree_model_node_insert): use a position of -1 as "append".
(e_tree_model_node_insert): if the model was marked with
root_visible == FALSE, make sure to set it's expanded flag to TRUE
when the root node is inserted.
(e_tree_model_node_sort): new function.
svn path=/trunk/; revision=4912
2000-08-21 Chris Toshok <toshok@helixcode.com>
* e-table.c (e_table_drag_source_set): pass table, not site as the
closure for these drag signals, since e_table_drag_source_event_cb
assumes it's the table.
svn path=/trunk/; revision=4911
2000-08-21 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-paned/e-hpaned.c, widgets/e-paned/e-paned.c,
widgets/e-paned/e-paned.h, widgets/e-paned/e-vpaned.c: Added code
to make handle position persist across resizes.
svn path=/trunk/; revision=4898