Commit Graph

510 Commits

Author SHA1 Message Date
0db696fa42 Bunch of unicode related changes
svn path=/trunk/; revision=5235
2000-09-07 18:30:30 +00:00
0963419d89 Merge in the colour combo emhancements.
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-07 14:56:59 +00:00
1aef3474d9 Remove incorrect optimization. Events are read-only!
2000-09-07  Federico Mena Quintero  <federico@helixcode.com>

	* e-canvas.c (emit_event): Remove incorrect optimization.  Events
	are read-only!

svn path=/trunk/; revision=5228
2000-09-07 04:40:06 +00:00
ff533a0ccf Get the meeting time selector to work on my system (libunicode
installation prefix different from the GNOME default installation
prefix).

svn path=/trunk/; revision=5223
2000-09-06 19:19:18 +00:00
6403bd5b4d make sure we get the start_weekday since we need it for draw_days(). Fixes
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-06 00:10:39 +00:00
52bfd30b6c New font translation code for utf-8, but commented out at moment
svn path=/trunk/; revision=5194
2000-09-04 23:27:06 +00:00
e8ae4bc97a A bit more e_utf8 wrappers here and there
svn path=/trunk/; revision=5180
2000-09-02 02:51:32 +00:00
6993fc1c57 Fixed a leak and a double unref.
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 22:28:55 +00:00
943c181c65 new test, a home grown 2 hour hack of a file browser. uses
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 09:05:56 +00:00
0a380243b1 add signals/prototypes for e_tree_model_node_collapsed and
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-09-01 08:57:43 +00:00
e60c558b25 Email should now display correctly in GtkHTML
svn path=/trunk/; revision=5154
2000-09-01 02:40:45 +00:00
c4982eded3 Made the selection work when shift clicking on the first row of the table.
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-31 13:45:02 +00:00
4b7718f894 Fix the tree example so that is doesn't show two sets of expand/unexpand
icons at tree nodes.

svn path=/trunk/; revision=5137
2000-08-31 07:01:05 +00:00
3a839acf2a #define gnome_font_lookup_default for gnome-print 0.20
svn path=/trunk/; revision=5133
2000-08-31 02:47:14 +00:00
d4a67b5d3b New base class for Cells. Convert everything to access the elements that
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-31 00:57:24 +00:00
af8b4b2520 Made it compilable both with gnome-print 0.20 and 0.21+
svn path=/trunk/; revision=5126
2000-08-31 00:32:57 +00:00
14f4aec7b0 Do not flicker while trying to resize a quantized pane.
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 23:23:47 +00:00
61ec555e80 Ensure that the child's allocation height is >= 1.
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
2000-08-30 21:54:48 +00:00
c03e143c6c Updated.
2000-08-30  Damon Chaplin  <damon@helixcode.com>

	* e-calendar-item.[hc]:
	* e-calendar.[hc]: Updated.

svn path=/trunk/; revision=5120
2000-08-30 20:46:55 +00:00
ccda437a9a make e-util depend on libunicode
* 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-30 15:28:36 +00:00
2529bb621e Make printing of groups work better and make them print headers.
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-28 21:21:37 +00:00
876558f75f Remove a ton of (hopefully harmless) warnings from the ETable code.
svn path=/trunk/; revision=5081
2000-08-28 15:27:38 +00:00
20925d94eb Added some g_return_if_fails and g_return_val_if_fails.
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-26 09:15:32 +00:00
81f994a359 More UTF-8 handling
svn path=/trunk/; revision=5032
2000-08-25 04:31:13 +00:00
ffc43362bc Fix an off by one error that was causing crashes.
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 23:18:08 +00:00
c99edac0b5 Set default values for all of the signal emissions.
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 22:24:36 +00:00
aa9505c5ae Check for selection->selection being NULL in
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 22:03:48 +00:00
5722c2786e Pay attention to the return value from the click signal.
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 21:24:17 +00:00
5e1949f935 Added a click signal which gets sent if the user hits the left or middle
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 21:13:17 +00:00
3877d4077d Forgot to commit this
svn path=/trunk/; revision=5019
2000-08-24 20:47:23 +00:00
ba232a706e Added g_return_if_fails.
2000-08-24  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-scrolled.c, e-table.c: Added g_return_if_fails.

svn path=/trunk/; revision=5015
2000-08-24 19:36:44 +00:00
695baf618d Added infrastructure for setting the justification of columns. Still need
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-24 19:06:54 +00:00
8d63772a7d Unicode in addressbook basically works, including simple searching
svn path=/trunk/; revision=4997
2000-08-24 03:25:53 +00:00
c512a22478 Fixed a bug in e_table_subset_variable_increment that causes problems with
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-23 22:59:09 +00:00
88d79b0d1a Added missing e-unicode.h and e-unicode.c
svn path=/trunk/; revision=4977
2000-08-23 03:15:10 +00:00
b906c345f9 UTF-8 in contact editor + some fixes for dealing with illegal strings
svn path=/trunk/; revision=4976
2000-08-23 02:56:59 +00:00
049c61546b remove tree-expanded.xpm and tree-unexpanded.xpm.
2000-08-22  Chris Toshok  <toshok@helixcode.com>

	* Makefile.am (icons): remove tree-expanded.xpm and
	tree-unexpanded.xpm.

	* e-tree-example-1.c: use art/tree-expanded.xpm and
	art/tree-unexpanded.xpm.
	(remove_node): commit the change listed below (08-21).

	* tree-expanded.xpm: removed.

	* tree-unexpanded.xpm: removed.

svn path=/trunk/; revision=4975
2000-08-23 01:48:20 +00:00
1e5ae349da Handle iso-8859-1 keys nicely in e-text and e-table. Other encodings to
come...

svn path=/trunk/; revision=4972
2000-08-23 00:22:18 +00:00
823e4b48ee Use byte, not character based UTF-8 syntax in e-text
svn path=/trunk/; revision=4963
2000-08-22 14:12:36 +00:00
a30113eebc Moved drawing of the cell backgrounds from ECell into ETableItem.
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-22 10:03:36 +00:00
a0e3d19542 Changed UTF-8 handling syntax from char based to byte based
svn path=/trunk/; revision=4913
2000-08-22 02:53:04 +00:00
95ba651873 we can remove nodes with children now.
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-22 00:42:14 +00:00
bfd2e9c92d pass table, not site as the closure for these drag signals, since
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-22 00:24:03 +00:00
2764b49bc7 Added code to make handle position persist across resizes.
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
2000-08-21 05:34:59 +00:00
6368c0472e ChangeLog error.
svn path=/trunk/; revision=4894
2000-08-20 23:19:03 +00:00
475a5d499c Added e_table_selection_model_selected_count.
2000-08-20  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-selection-model.c: Added
	e_table_selection_model_selected_count.

svn path=/trunk/; revision=4893
2000-08-20 23:18:45 +00:00
44d8831822 many fixes to make it compile with strange prefixes...
neither mail nor the calendar components work though...
evil stuff.

svn path=/trunk/; revision=4892
2000-08-20 19:32:56 +00:00
447ecfb3e8 Fixed a warning.
2000-08-20  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Fixed a warning.

svn path=/trunk/; revision=4889
2000-08-20 10:13:47 +00:00
4f12a10864 added use of UNICODE_CFLAGS... thanks ian...
svn path=/trunk/; revision=4887
2000-08-20 08:09:37 +00:00
c63ea33628 Moved e-text to UTF-8
svn path=/trunk/; revision=4886
2000-08-20 03:02:05 +00:00