Commit Graph

868 Commits

Author SHA1 Message Date
afac6edb53 guard for null paths if save_id lookup fails.
2003-02-13  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (*_load_expanded_state): guard for
	null paths if save_id lookup fails.

svn path=/trunk/; revision=19904
2003-02-13 19:16:56 +00:00
b88c27e9b2 don't transform based on allocation position. Position isn't absolute now.
2003-02-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-header-item.c (ethi_drag_motion): don't transform
	based on allocation position. Position isn't absolute now.

svn path=/trunk/; revision=19902
2003-02-13 18:02:52 +00:00
9901ae486e kill a double unref on the pango_layout.
2003-02-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-header-utils.c (e_table_header_draw_button): kill
	a double unref on the pango_layout.

svn path=/trunk/; revision=19900
2003-02-13 16:07:38 +00:00
a371f7b3fc Request a reflow on realization, so size and placement will be correct
2003-02-12  Hans Petter Jansson  <hpj@ximian.com>

	* e-table-click-to-add.c (etcta_realize): Request a reflow on
	realization, so size and placement will be correct initially.

svn path=/trunk/; revision=19899
2003-02-12 23:36:21 +00:00
1ebf9b6fd1 handle reverse searches (find_prev_in_range): reverse search impl
2003-02-12  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (e_tree_find_next): handle reverse searches
	(find_prev_in_range): reverse search impl
	(et_real_construct): kill warnings

svn path=/trunk/; revision=19897
2003-02-12 20:26:15 +00:00
ad82875fbf work around broken models that insert children before parents. bad models.
2003-02-12  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (insert_node): work around broken models
	that insert children before parents.  bad models.
	(e_tree_table_adapter_load_expanded_state): don't update_node
	(e_tree_table_adapter_node_set_expanded): recursively expand
	parent if the node is not visible yet.
	(e_tree_table_adapter_set_sort_info): don't resort empty trees

svn path=/trunk/; revision=19894
2003-02-12 18:02:32 +00:00
33841eb730 rewrite to use etta (find_next_in_range): helper func to search a range of
2003-02-10  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (e_tree_find_next): rewrite to use etta
	(find_next_in_range): helper func to search a range of rows
	(find_next_callback): kill

svn path=/trunk/; revision=19875
2003-02-10 18:04:25 +00:00
40e78f6df8 Unmarked some strings which are unsuitable for translation
svn path=/trunk/; revision=19857
2003-02-09 09:57:18 +00:00
8e5ed06cc1 index bound bug (insert_children): prepend/reverse for now
2003-02-06  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (resort_node): index bound bug
	(insert_children): prepend/reverse for now
	(generate_tree): resize old map to zero before filling it again
	(insert_node): fix assumption that root parent node has an index

svn path=/trunk/; revision=19828
2003-02-06 20:35:51 +00:00
749c7626eb use the parent path to find the parent node rather than the row, which is
2003-02-06  Not Zed  <NotZed@Ximian.com>

        * e-tree-table-adapter.c (delete_node): use the parent path to
        find the parent node rather than the row, which is not valid for
        the root node, which still needs its visible child count updated.

svn path=/trunk/; revision=19797
2003-02-06 02:17:14 +00:00
b0f27fa8d7 Replace deprecated glade_gnome_init() call with glade_init().
* e-table-config.c (config_class_init): Replace deprecated
	glade_gnome_init() call with glade_init().

	* e-table-field-chooser.c (e_table_field_chooser_class_init):
	Likewise.

svn path=/trunk/; revision=19759
2003-02-05 18:02:17 +00:00
3fd6662401 make GAL_LIBS use -lgal-2.0 remove extraneous GTK_LIBS reference update to
2003-02-03  Mike Kestner  <mkestner@ximian.com>

	* configure.in : make GAL_LIBS use -lgal-2.0
	* gal/Makefile.am : remove extraneous GTK_LIBS reference
	* tests/test-tree-3.c : update to new etta API

gal/e-table/ChangeLog
2003-02-03  Mike Kestner  <mkestner@ximian.com>

	* e-tree-selection-model.c : remove e-tree-sorted usage
	* e-tree-table-adapter.* : rewrite to perform sorting
	* e-tree.c : remove e-tree-sorted usage

svn path=/trunk/; revision=19755
2003-02-05 06:03:05 +00:00
9a00cb7215 replaced e scroll frame with gtk scrolled window
svn path=/trunk/; revision=19735
2003-02-04 19:01:48 +00:00
82978ed2ae destroy canvas items to removing them, simply unrefing them is not
2003-01-23  Larry Ewing  <lewing@ximian.com>

	* e-table-click-to-add.c (e_table_click_to_add_commit): destroy
	canvas items to removing them, simply unrefing them is not
	sufficient.

svn path=/trunk/; revision=19589
2003-01-23 18:40:17 +00:00
08bf403c7e (e_tree_table_adapter_load_expanded_state): Call
e_table_model_pre_changed() only once so we dont' get the table in
a frozen state after returning from here.

svn path=/trunk/; revision=19574
2003-01-22 21:38:51 +00:00
c22f252ffb Same here.
2003-01-15  Jeffrey Stedfast  <fejj@ximian.com>

	* e-tree-table-adapter.c
	(e_tree_table_adapter_save_expanded_state): Same here.

	* e-table-state.c (e_table_state_save_to_file): Same as below.

	* e-table-specification.c (e_table_specification_save_to_file):
	Back to using e_xml_save_file(). Not sure we can really trust
	xmlSaveFile (sure as hell couldn't in the libxml-1.x days),
	besides, e_xml_save_file protects against corruption due to not
	enough disk space.

svn path=/trunk/; revision=19481
2003-01-15 19:42:14 +00:00
962c8a0d9f If we set a clip rectangle, clear it after we've finished.
2003-01-15  Not Zed  <NotZed@Ximian.com>

        * e-cell-tree.c (ect_draw): If we set a clip rectangle, clear it
        after we've finished.

svn path=/trunk/; revision=19467
2003-01-14 22:33:44 +00:00
da7b98f889 revert broken fix
2002-01-10  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_table_model_rows_deleted): revert broken fix

svn path=/trunk/; revision=19413
2003-01-10 21:29:35 +00:00
f523f2d153 free the children before we free and dispose of our ecol, since
2002-12-18  Chris Toshok  <toshok@ximian.com>

	* e-table-group-container.c (etgc_dispose): free the children
	before we free and dispose of our ecol, since
	e_table_group_container_child_node_free depends on it.  Fixes a
	crash.

svn path=/trunk/; revision=19166
2002-12-19 03:22:02 +00:00
82a04fbcb4 pass NULL for parent_window for e_table_config_new.
2002-12-18  Chris Toshok  <toshok@ximian.com>

	* e-table-header-item.c (ethi_popup_customize_view): pass NULL for
	parent_window for e_table_config_new.

	* e-table-config.glade, e-table-config-no-group.glade: switch from
	GnomePropertyBox to GtkDialog, remove the extra notebook widget
	from the heirarchy, and set all the subdialogs modal.

	* e-table-config.h: add parent_window arg to
	e_table_config_{new,construct}.

	* e-table-config.c (config_dialog_changed): new function, not
	really needed yet since the apply/ok buttons are never
	insensitive.
	(config_get_property): handle the "state" read-only property.
	(config_class_init): put back in the "state" property that was
	deleted during the merge from the gal-2 branch (it looks like).
	(do_sort_and_group_config_dialog): set the sort/group dialog
	transient for the e-table-config dialog, and
	gnome_property_box_changed -> config_dialog_changed.
	(do_fields_config_dialog): same, but with the fields dialog.
	(dialog_response): response handler for the e-table-config dialog.
	(setup_gui): remote the hide button/notebook code, since neither
	of those widgets exist anymore in this dialog, and remove the
	"apply" signal and connect to "response", since we're a GtkDialog
	dialog instead of a GnomePropertyBox.
	(e_table_config_construct): take a parent_window arg, and
	set_transient_for if it's non-NULL.
	(e_table_config_new): take parent_window arg and pass to
	construct.

svn path=/trunk/; revision=19165
2002-12-19 02:24:24 +00:00
7adf0fe63f edit->tep isn't a GtkObject anymore.
2002-12-16  Chris Toshok  <toshok@ximian.com>

	* e-cell-text.c (_get_tep): edit->tep isn't a GtkObject anymore.

svn path=/trunk/; revision=19144
2002-12-17 06:25:18 +00:00
b6a3b64021 pass in the pango layout so we don't have to create another one here.
2002-12-16  Chris Toshok  <toshok@ximian.com>

	* e-table-header-utils.c (e_table_draw_elided_string): pass in the
	pango layout so we don't have to create another one here.  Also,
	elide the string properly (same method that e-clipped-label uses)
	and simplify the extent operations.
	(e_table_header_compute_height): just use
	pango_layout_get_pixel_size here.
	(e_table_header_draw_button): make sure the clip rectangle is
	NULL'ed on our gc, since random gtk calls seem to install one,
	which sucks.  Also, simplify the pango layout stuff a little.

svn path=/trunk/; revision=19142
2002-12-16 23:24:24 +00:00
ddc321dd76 remove obvious double g_strdup.
2002-12-16  Chris Toshok  <toshok@ximian.com>

	* e-table.c (et_real_construct): remove obvious double g_strdup.

	* e-table-header-item.c (ethi_header_context_menu): ref/sink the
	popup.

	* e-table-field-chooser.c (e_table_field_chooser_init): use
	gtk_widget_show_all so our custom widget gets displayed.

svn path=/trunk/; revision=19135
2002-12-16 20:43:50 +00:00
2d40006720 valgrindage
2002-12-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_table_model_rows_deleted): valgrindage

svn path=/trunk/; revision=19119
2002-12-14 05:31:07 +00:00
1d8a9f2443 Add a "collate" sort callback that uses the new g_collate_compare().
2002-12-05  Jeffrey Stedfast  <fejj@ximian.com>

	* e-table-extras.c (ete_init): Add a "collate" sort callback that
	uses the new g_collate_compare().

2002-12-05  Jeffrey Stedfast  <fejj@ximian.com>

	* gal/util/e-util.c (g_str_compare): Revert back to using just
	strcmp - this fixes bug #33933 but reopens bug #26355.
	(g_collate_compare): New function meant to address the sorting
	required by bug #26335.

svn path=/trunk/; revision=19014
2002-12-05 18:31:30 +00:00
200071108f Don't leak old sort info.
2002-12-03  Hans Petter Jansson  <hpj@ximian.com>

        * e-table.c (e_table_get_state_object): Don't leak old sort info.

2002-12-03  Hans Petter Jansson  <hpj@ximian.com>

        * gal/widgets/e-canvas-background.c (ecb_destroy): Don't leak
        private structure.

svn path=/trunk/; revision=18999
2002-12-03 23:09:17 +00:00
d16c201e16 make this a dispose rather than finalise. Crashes on finalise otherwise.
2002-12-03  Not Zed  <NotZed@Ximian.com>

        * e-tree-memory.c (etmm_dispose): make this a dispose rather than
        finalise.  Crashes on finalise otherwise.

svn path=/trunk/; revision=18990
2002-12-03 04:20:52 +00:00
2e02727841 (etms_finalize): Call
e_table_memory_store_clear().

svn path=/trunk/; revision=18937
2002-11-26 22:25:50 +00:00
64c16949b6 take GCallback, not GtkSignalFunc. (configure_sort_dialog): show the
2002-11-18  Chris Toshok  <toshok@ximian.com>

	* e-table-config.c (connect_button): take GCallback, not
	GtkSignalFunc.
	(configure_sort_dialog): show the custom widget.
	(configure_group_dialog): same.
	(configure_fields_dialog): same, also pass G_CALLBACK (func),
	instead of GTK_SIGNAL_FUNC (func), to connect_button.
	(setup_gui): pass G_CALLBACK (func), instead of GTK_SIGNAL_FUNC
	(func), to connect_button.

	* Makefile.am (glade_DATA): remove e-table-group.glade, since we
	don't use it anyplace.

svn path=/trunk/; revision=18832
2002-11-19 00:27:08 +00:00
a01751b83a check for table->table_canvas == NULL.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* e-table.c (set_scroll_adjustments): check for
	table->table_canvas == NULL.

	* e-table-item.c (eti_dispose): guard eti->tooltip.

svn path=/trunk/; revision=18807
2002-11-17 05:29:05 +00:00
0bbe38655b GObject port work.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* e-cell-checkbox.[ch]: GObject port work.

	* e-cell-combo.[ch]: same.

	* e-cell-date.[ch]: same.

	* e-cell-float.[ch]: same.

	* e-cell-number.[ch]: same.

	* e-cell-pixbuf.[ch]: same.

	* e-cell-popup.[ch]: same.

	* e-cell-progress.[ch]: same.

	* e-cell-size.[ch]: same.

	* e-cell-spin-button.[ch]: same.

	* e-cell-text.[ch]: same.

	* e-cell-toggle.[ch]: same.

	* e-cell-tree.[ch]: same.

	* e-cell-vbox.[ch]: same.

	* e-cell.[ch]: same.

	* e-table-col.c: same.

	* e-table-column.c: same.

	* e-table-config-field.[ch]: same.

	* e-table-config.c: same.

	* e-table-config.glade: same.

	* e-table-field-chooser-dialog.[ch]: same.

	* e-table-field-chooser-item.[ch]: same.

	* e-table-field-chooser.[ch]: same.

	* e-table-group-container.[ch]: same.

	* e-table-group-leaf.[ch]: same.

	* e-table-group.[ch]: same.

	* e-table-header-item.[ch]: same.

	* e-table-header-utils.[ch]: same.

	* e-table-header.c: same.

	* e-table-item.[ch]: same.

	* e-table-scrolled.[ch]: same.

	* e-table-utils.c: same.

	* e-table.[ch]: same.

	* e-tree-memory-callbacks.h: same.

	* e-tree-scrolled.[ch]: same.

	* e-tree-sorted-variable.c: same.

	* e-tree.[ch]: same.

	* test-check.c: same.

	* test-cols.c: same.

	* test-table.c: same.

svn path=/trunk/; revision=18801
2002-11-17 00:02:53 +00:00
868a2d664a fix typo.
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* e-table-header-item.c (ethi_popup_customize_view): fix typo.

svn path=/trunk/; revision=18777
2002-11-15 03:06:29 +00:00
f60cb1f537 ETableConfig derives from GObject (fix warnings).
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* e-table-header-item.c (ethi_popup_customize_view): ETableConfig
	derives from GObject (fix warnings).

	* e-table.c: deal with ESorter deriving from GObject.

	* e-table-sorter.[ch]: this derives from GObject now.

svn path=/trunk/; revision=18775
2002-11-15 02:49:15 +00:00
b9b2089527 deal with ESelectionModel no longer deriving from GtkObject.
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* e-table-item.c: deal with ESelectionModel no longer deriving
	from GtkObject.

	* e-table.c: same.

	* e-tree.c: same.

	* e-table-config.c (do_fields_config_dialog): use GtkDialog's
	reponse instead of GnomeDialog's button.

	* e-table-click-to-add.[ch]: GObjectify this.

	* e-table-selection-model.[ch]: this derives from GObject now.

	* e-tree-selection-model.[ch]: same.

svn path=/trunk/; revision=18773
2002-11-15 02:22:00 +00:00
27fbc0098c this subclasses from GObject now, not GtkObject. don't use GtkObject
2002-11-14  Chris Toshok  <toshok@ximian.com>

	* e-table-without.[ch]: this subclasses from GObject now, not
	GtkObject.  don't use GtkObject (especially casts to it) inside
	the code.

	* e-table-config-no-group.glade: libglade-convert.

	* e-table-config.glade: same.

	* e-table-field-chooser.glade: same.

	* e-table-group.glade: same.

svn path=/trunk/; revision=18766
2002-11-15 00:23:44 +00:00
d020bcad5c add more marshallers for e-table.
2002-11-13  Chris Toshok  <toshok@ximian.com>

	* gal/util/e-marshal.list: add more marshallers for e-table.

svn path=/trunk/; revision=18750
2002-11-14 01:56:40 +00:00
2deb6421f8 Forgot two more gtk_object_(un)?ref()s.
svn path=/trunk/; revision=18703
2002-11-11 19:20:18 +00:00
33d137c42e Replace gtk_object_(un)?ref() with g_object_(un)?ref(). Likewise.
* gal/e-table/e-cell-popup.c: Replace gtk_object_(un)?ref() with
g_object_(un)?ref().
* gal/e-table/e-cell-text.c: Likewise.
* gal/e-table/e-cell-tree.c: Likewise.
* gal/e-table/e-cell-vbox.c: Likewise.
* gal/e-table/e-table-click-to-add.c: Likewise.
* gal/e-table/e-table-config-field.c: Likewise.
* gal/e-table/e-table-field-chooser-dialog.c: Likewise.
* gal/e-table/e-table-field-chooser-item.c: Likewise.
* gal/e-table/e-table-field-chooser.c: Likewise.
* gal/e-table/e-table-group-container.c: Likewise.
* gal/e-table/e-table-item.c: Likewise.
* gal/e-table/e-table-without.c: Likewise.

svn path=/trunk/; revision=18702
2002-11-11 19:09:23 +00:00
2fb9565ed5 correct the GET_CLASS macro.
2002-11-08  Chris Toshok  <toshok@ximian.com>

	* e-table-memory-store.h: correct the GET_CLASS macro.

	* e-table-one.h: same.

	* e-table-sorted.h: same.

	* e-table-subset.h: same.

	* e-tree-sorted-variable.h: same.

	* e-tree-table-adapter.h: same.

svn path=/trunk/; revision=18680
2002-11-09 02:19:32 +00:00
75f89dc869 GObjectify GObjectify
2002-11-05  Mike Kestner  <mkestner@ximian.com>

	* e-table-sorted-variable.[ch] : GObjectify
	* e-tree-sorted-variable.[ch] : GObjectify

svn path=/trunk/; revision=18573
2002-11-06 00:07:08 +00:00
4256558b9c remove ref/unref G_OBJECT masks ditto ditto ditto ditto ditto ditto ditto
2002-11-05  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c : remove ref/unref G_OBJECT masks
	* e-table-extras.c : ditto
	* e-table-header-item.c : ditto
	* e-table-item.c : ditto
	* e-table-memory-store.c : ditto
	* e-table-one.c : ditto
	* e-tree-sorted.c : ditto
	* e-tree-table-adapter.c : ditto
	* e-tree.c : ditto

svn path=/trunk/; revision=18572
2002-11-05 23:34:32 +00:00
9b97a17eb7 GObjectify GObjectify GObjectify use GObject api for models use GObject
2002-11-05  Mike Kestner  <mkestner@ximian.com>

	* e-table-col.[ch] : GObjectify
	* e-table-column-specification.[ch] : GObjectify
	* e-table-config.[ch] : GObjectify
	* e-table-group-leaf.c : use GObject api for models
	* e-table-group.c : use GObject api for models
	* e-table-header-item.c : use GObject api for models
	* e-table-header.c : use GObject api for models
	* e-table-selection-model.c : use GObject api for models
	* e-table-sort-info.[ch] : GObjectify
	* e-table-sorted.[ch] : GObjectify
	* e-table-sorter.c : use GObject api for models
	* e-table-specification.c : use GObject api for models
	* e-table-state.[ch] : GObjectify
	* e-table-subset-variable.[ch] : GObjectify
	* e-table-subset.[ch] : GObjectify
	* e-table.c : use GObject api for models

svn path=/trunk/; revision=18571
2002-11-05 22:53:40 +00:00
f8172191ad use GObject api for models GObjectify GObjectify GObjectify GObjectify
2002-11-05  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c : use GObject api for models
	* e-table-memory-callbacks.[ch] : GObjectify
	* e-table-memory-store.[ch] : GObjectify
	* e-table-memory.[ch] : GObjectify
	* e-table-model.[ch] : GObjectify
	* e-table-one.[ch] : GObjectify
	* e-table-simple.[ch] : GObjectify
	* e-tree-memory.[ch] : GObjectify
	* e-tree-model.[ch] : GObjectify
	* e-tree-selection-model.c : use GObject api for models
	* e-tree-simple.[ch] : GObjectify
	* e-tree-sorted.[ch] : GObjectify
	* e-tree-table-adapter.[ch] : GObjectify
	* e-tree.c : use GObject api for models

svn path=/trunk/; revision=18553
2002-11-05 15:05:25 +00:00
65269c6882 use GObject api for ETableHeader use GObject api on ETableHeader
2002-11-04  Mike Kestner  <mkestner@ximian.com>

	* e-table-group.c : use GObject api for ETableHeader
	* e-table-header-item.c : use GObject api on ETableHeader
	* e-table-header.[ch] : GObjectify
	* e-table-item.c : use GObject api on ETableHeader
	* e-table-search.[ch] : GObjectify
	* e-table-sorted.c : use GObject api for ETableHeader
	* e-table-sorter.c : use GObject api for ETableHeader
	* e-table-specification.[ch] : GObjectify
	* e-table-utils.c : use GObject api for ETableHeader
	* e-tree-sorted.c : use GObject api for ETableHeader
	* e-tree.c : use GObject api on Header, Spec, and Search

svn path=/trunk/; revision=18531
2002-11-04 16:18:45 +00:00
a611e132e9 gobjectify ETableExtras is now a GObject (e_tree_class_init): remove
2002-11-01  Mike Kestner  <mkestner@ximian.com>

	* e-table-extras : gobjectify
	* e-tree.c (et_real_construct): ETableExtras is now a GObject
	(e_tree_class_init): remove duplicated signals

svn path=/trunk/; revision=18490
2002-11-01 21:47:34 +00:00
613453b109 merging the gal-2 branch back to the trunk.
merging the gal-2 branch back to the trunk.

svn path=/trunk/; revision=18471
2002-10-31 21:30:57 +00:00
b1555639d8 add prototypes for the _change* functions.
2002-10-24  Chris Toshok  <toshok@ximian.com>

	* e-table-memory-store.h: add prototypes for the _change*
	functions.

	* e-table-memory-store.c (e_table_memory_store_change_array): new
	function, mostly c&p from _insert_array.
	(e_table_memory_store_change): new function, mostly c&p from
	_insert.
	(e_table_memory_store_change_adopt_array): new function, mostly
	c&p from _insert_adopt_array.
	(e_table_memory_store_change_adopt): new function, mostly c&p from
	_insert_adopt.

svn path=/trunk/; revision=18432
2002-10-25 06:26:20 +00:00
c83476952d call e_tree_state_change
2002-10-24  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (e_tree_set_state_object): call e_tree_state_change

svn path=/trunk/; revision=18428
2002-10-24 19:50:53 +00:00
ef12fcd08f don't emit a signal if we couldn't find the view row
2002-10-18  JP Rosevear  <jpr@ximian.com>

	* e-table-item.c (eti_cursor_activated): don't emit a signal if we
	couldn't find the view row

svn path=/trunk/; revision=18405
2002-10-22 05:49:55 +00:00
9420fa7f82 call drop_timeout
2002-10-02  Mike Kestner  <mkestner@ximian.com>

	* e-table-search.c (e_table_search_destroy): call drop_timeout

svn path=/trunk/; revision=18319
2002-10-03 20:16:49 +00:00