Commit Graph

1271 Commits

Author SHA1 Message Date
2ea215ff87 Added cursor_changed handling to set the has_cursor argument of the
2001-10-26  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-reflow.c, gal/widgets/e-reflow.h: Added
	cursor_changed handling to set the has_cursor argument of the
	contained objects.

svn path=/trunk/; revision=14136
2001-10-26 13:23:14 +00:00
b0ab0a15e0 Document allow-grouping attribute.
2001-10-26  Christopher James Lahey  <clahey@ximian.com>

	* docs/etablexml.txt: Document allow-grouping attribute.

	* tests/test-table-1.c (SPEC): Updated this to test the
	allow_grouping=\"false\" attribute.

From gal/e-table/ChangeLog:

2001-10-26  Christopher James Lahey  <clahey@ximian.com>

	* e-table-config.c (config_group_info_update,
	config_fields_info_update): Added some checks for NULL labels
	here.

	* e-table-specification.c, e-table-specification.h: Added
	allow_grouping field.  Fixes Ximian bug #13412.

	* e-table.c, e-table.h: Added allow_grouping field.  Set this
	field for the sort infos from state objects.

svn path=/trunk/; revision=14134
2001-10-26 11:48:53 +00:00
22cd779002 Fixed warnings here.
2001-10-26  Christopher James Lahey  <clahey@ximian.com>

	* gal/util/e-iconv.c (e_iconv), gal/widgets/e-font.c
	(e_font_to_native), gal/widgets/e-unicode.c
	(e_utf8_from_iconv_string_sized, e_utf8_to_iconv_string_sized,
	e_utf8_from_gtk_string_sized, e_utf8_to_gtk_string_sized): Fixed
	warnings here.

svn path=/trunk/; revision=14132
2001-10-26 11:07:44 +00:00
ec99a18271 If the root node is hidden and selected, don't count it in the selected
2001-10-26  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-selection-model.c (etsm_selected_count): If the root node
	is hidden and selected, don't count it in the selected path count.

	* e-tree.c (et_canvas_root_event): Attach to the event handler on
	the root canvas item instead of the canvas itself when making the
	ETree leave editing state.

svn path=/trunk/; revision=14128
2001-10-26 09:00:36 +00:00
6784b6928a Fixes Ximian bug #6832.
2001-10-25  Federico Mena Quintero  <federico@ximian.com>

	Fixes Ximian bug #6832.

	* e-table.c (e_table_setup_table): Use a callback instead of
	gtk_widget_queue_draw() for focus events, as the latter does not
	have the correct prototype for an event handler.
	(group_start_drag): Emit START_DRAG, not KEY_PRESS!
	(focus_first_etable_item): Focus the first row in the first
	ETableItem if there is no focused item.

	* e-tree.c (e_tree_setup_table): Same change as in
	e_table_setup_table().
	(table_canvas_focus_event_cb): Focus the first row in the tree
	item if there is no focused item.

svn path=/trunk/; revision=14124
2001-10-26 04:47:53 +00:00
5
ac091e954d Bumped version to 0.15.99.4 for e-iconv changes.
2001-10-25    <NotZed@Ximian.com>

        * configure.in: Bumped version to 0.15.99.4 for e-iconv changes.

        * gal/widgets/e-unicode.c (e_utf8_from_iconv_string_sized): "
        (e_utf8_to_iconv_string_sized): "
        (e_utf8_from_gtk_string_sized): "
        (e_utf8_to_gtk_string_sized): "

        * gal/widgets/e-font.c (e_font_to_native): s/iconv/e_iconv/

        * gal/util/e-iconv.c (e_iconv): Implement a wrapper for iconv() to
        make sure we link with and execute the right iconv to match the
        right iconv_open.  (BLAH!)

svn path=/trunk/; revision=14111
2001-10-26 00:35:20 +00:00
f1172ec0fd Added #include "gal/widgets/e-unicode.h".
2001-10-24  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-combo.c: Added #include "gal/widgets/e-unicode.h".

	* e-cell-text.c: Added lots of deactivated debugging printfs here.
	(ect_event): Fixed the flags check here.  Set edit->actions to 0
	before calling e_text_event_processor_handle_event.

	* e-table-item.c, e-table-item.h: Use eti_grab and eti_ungrab all
	over the place.  Added lots and lots of deactivated debugging
	printfs here.
	(eti_grab, eti_ungrab): New functions to encapsulate grabbing and
	ungrabbing the cursor and to allow for recursive grabs
	(refcounting style.)

	* e-table.c: Added deactivated debugging printfs here.
	(et_canvas_root_event): Attach to the event handler on the root
	canvas item instead of the canvas itself when making the ETable
	leave editing state.  Fixes Ximian bug #9737.

svn path=/trunk/; revision=14072
2001-10-24 22:41:13 +00:00
c10ff3cbd7 Ref the BonoboUIComponent that we are holding. (gvm_destroy): Unref our
2001-10-24  Jon Trowbridge  <trow@ximian.com>

	* menus/gal-view-menus.c (gal_view_menus_apply): Ref the
	BonoboUIComponent that we are holding.
	(gvm_destroy): Unref our BonoboUIComponent.

svn path=/trunk/; revision=13994
2001-10-24 21:23:46 +00:00
5c99202e0b Don't add the menu item here, do this in the context_changed signal
2001-10-23  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c (rule_editor_clicked): Don't add the menu item
	here, do this in the context_changed signal callback instead.
	(context_changed): rebuild the search menu.
	(set_menu): Copy the items into a default_items list so we can
	regenerate the menu when something changes. Then call
	generate_menu().
	(generate_menu): Do what set_menu() used to do.
	(e_filter_bar_new): Don't do a rule_context_load() anymore since
	we don't need to.
	(destroy): free the default_items list.

svn path=/trunk/; revision=13975
2001-10-24 03:47:10 +00:00
974cb91595 copy the translate field over as well. Should fix an uninitialized memory
2001-10-23  Damon Chaplin  <damon@ximian.com>

	* e-search-bar.c (copy_subitems): copy the translate field over as
	well. Should fix an uninitialized memory read.

svn path=/trunk/; revision=13964
2001-10-23 22:19:05 +00:00
46dd4414b9 clear the struct tm fields to keep purify happy.
2001-10-23  Damon Chaplin  <damon@ximian.com>

	* e-dateedit.c (e_date_edit_check_date_changed):
	(e_date_edit_check_time_changed): clear the struct tm fields to keep
	purify happy.

svn path=/trunk/; revision=13959
2001-10-23 21:38:27 +00:00
da7687116d save the UTF-8 strings inside the listitem widgets, but convert to the
2001-10-23  Damon Chaplin  <damon@ximian.com>

	* e-cell-combo.c (e_cell_combo_set_popdown_strings): save the UTF-8
	strings inside the listitem widgets, but convert to the locale to use
	in the label.
	(e_cell_combo_select_matching_item):
	(e_cell_combo_update_cell): use the UTF-8 strings instead of the
	listitem labels. Hopefully fixes bug #7037.

svn path=/trunk/; revision=13954
2001-10-23 20:44:58 +00:00
2def5aacb2 Got rid of the gc argument to e_table_header_draw_button.
2001-10-23  Christopher James Lahey  <clahey@ximian.com>

	* e-table-field-chooser-item.c: Got rid of the gc argument to
	e_table_header_draw_button.
	(etfci_font_load): Just use the style font here.

	* e-table-group-container.c (e_table_group_container_construct):
	Changed this to just use the font from the style.  Fixes Ximian
	bug #11882.

	* e-table-header-item.c: Got rid of the gc argument to
	e_table_header_draw_button.
	(ethi_font_load): Changed this to just fallback on the font from
	the style if the fontname is NULL or doesn't load to a font.
	Fixes Ximian bug #11882.

	* e-table-header-utils.c, e-table-header-utils.h
	(e_table_header_draw_button): Got rid of the gc parameter here and
	changed to use the gc from the style of a button created for this
	purpose, but not shown.  Fixes Ximian bug #13251.

svn path=/trunk/; revision=13949
2001-10-23 19:48:19 +00:00
c996010276 Use the widget's style's text_gc for drawing text if either
2001-10-23  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (e_text_draw): Use the widget's style's
	text_gc for drawing text if either draw_background or draw_button
	is on.

svn path=/trunk/; revision=13937
2001-10-23 09:00:27 +00:00
f359ee16bb Got rid of the gc field here and just use the fg_gc from the style for
2001-10-23  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-item.c, e-table-header-item.h: Got rid of the gc
	field here and just use the fg_gc from the style for drawing the
	buttons.

svn path=/trunk/; revision=13936
2001-10-23 08:58:19 +00:00
4720ad36fa Bumped version to 0.15.99.3 for EText's "draw_button" argument.
2001-10-23  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped version to 0.15.99.3 for EText's
	"draw_button" argument.

	* gal/e-text/e-entry.c: Forward the "draw_button" argument to the
	contained EText.

	* gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_draw): Added
	new "draw_button" argument.  If this is turned on and the first
	widget that's a parent of the containing canvas with GTK_NO_WINDOW
	turned off above the current one is a button, EText draws a button
	underneath itself to match the containing button.

From gal/shortcut-bar/ChangeLog:

2001-10-23  Christopher James Lahey  <clahey@ximian.com>

	* e-shortcut-bar.c (e_shortcut_bar_add_group): Turn on
	"draw_button" argument to EEntry.

svn path=/trunk/; revision=13934
2001-10-23 06:30:54 +00:00
47c416da08 Make this check immediately for whether to show the cursor, instead of in
2001-10-22  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_idle_maybe_show_cursor): Make this check
	immediately for whether to show the cursor, instead of in the idle
	handler.

	* e-tree-table-adapter.c (e_tree_table_adapter_node_set_expanded):
	Added a pre_change here since we send two changes.

svn path=/trunk/; revision=13931
2001-10-23 03:12:52 +00:00
1847de54ad Call e_tree_model_pre_change here where appropriate.
2001-10-22  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-memory.c (e_tree_memory_sort_node): Call
	e_tree_model_pre_change here where appropriate.

svn path=/trunk/; revision=13929
2001-10-23 02:22:59 +00:00
da49f32d5c Cancel the drag or maybe drag if you have the mouse button down when the
2001-10-22  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_cancel_drag_due_to_model_change): Cancel the
	drag or maybe drag if you have the mouse button down when the
	pre_change signal comes in.  Fixes Ximian bug #11309.

	* e-table-without.c (add_row, remove_row,
	e_table_without_show_all): Call e_table_model_pre_change where
	appropriate here.

svn path=/trunk/; revision=13927
2001-10-23 02:09:42 +00:00
f59604582d use the new ECellText methods to get the text and set the value.
2001-10-22  Damon Chaplin  <damon@ximian.com>

	* e-cell-date-edit.c (e_cell_date_edit_set_popup_values):
	(e_cell_date_edit_update_cell): use the new ECellText methods to get
	the text and set the value.

	* e-cell-percent.c: new subclass of ECellText to display & edit a
	percentage value.

svn path=/trunk/; revision=13916
2001-10-22 23:47:32 +00:00
1c090bee53 removed duplicated declaration
svn path=/trunk/; revision=13915
2001-10-22 23:44:13 +00:00
b89da79e8c added set_value() class method, which sets the model value based on the
2001-10-22  Damon Chaplin  <damon@ximian.com>

	* e-cell-text.[hc]: added set_value() class method, which sets the
	model value based on the text. In ECellText itself it assumes the model
	value is a char* and passes the text directly. Subclasses may parse
	the text into some other datatype.
	Also made the calls the e_cell_text_get_text(), e_cell_text_free_text()
	and e_cell_text_set_value() public, since we need them in ECellCombo.

	* e-cell-combo.c (e_cell_combo_select_matching_item):
	(e_cell_combo_update_cell): use e_cell_text_get_text()/free_text()/
	set_value() so it can handle subclasses of ECellText as the child.

svn path=/trunk/; revision=13901
2001-10-22 22:33:20 +00:00
175618ed1e Added a disabled field here.
2001-10-22  Christopher James Lahey  <clahey@ximian.com>

	* e-table-col.c, e-table-col.h, e-table-column-specification.c,
	e-table-column-specification.h: Added a disabled field here.

	* e-table-config.c, e-table-field-chooser-item.c: Pay attention to
	the disabled field here.

	* e-table-utils.c: Copy the disabled field from the column
	specification to the col.

svn path=/trunk/; revision=13897
2001-10-22 22:10:27 +00:00
f22daae8e6 Accept UTF8_STRING, UTF-8, and STRING targets when getting the selection.
2001-10-22  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_get_selection):
	Accept UTF8_STRING, UTF-8, and STRING targets when getting the
	selection.

svn path=/trunk/; revision=13864
2001-10-22 04:16:03 +00:00
c4c8cf0390 Offer UTF8_STRING, UTF-8, COMPOUND_TEXT, STRING, and TEXT targets when we
2001-10-21  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.c (e_text_get_invisible): Offer UTF8_STRING,
	UTF-8, COMPOUND_TEXT, STRING, and TEXT targets when we offer the
	selection.

svn path=/trunk/; revision=13847
2001-10-21 06:57:50 +00:00
06341c604d Make this not be a radio button, but instead just a normal menu.
2001-10-21  Christopher James Lahey  <clahey@ximian.com>

	* menus/gal-view-menus.c: Make this not be a radio button, but
	instead just a normal menu.

svn path=/trunk/; revision=13844
2001-10-21 06:21:51 +00:00
4e91164bc7 Use right_click_down here instead of maybe_do_something.
2001-10-21  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_selection_event_real): Use
	right_click_down here instead of maybe_do_something.

svn path=/trunk/; revision=13842
2001-10-21 06:13:39 +00:00
2dca9d97ed Don't convert to locale here since EText takes UTF8 strings. Fixes Ximian
2001-10-20  Christopher James Lahey  <clahey@ximian.com>

	* e-table-group-container.c (compute_text): Don't convert to
	locale here since EText takes UTF8 strings.  Fixes Ximian bug
	#8906.

svn path=/trunk/; revision=13836
2001-10-21 03:01:40 +00:00
093c2a884d Keep us from reading tmp_tm uninitialized, so purify won't complain.
2001-10-20  Jon Trowbridge  <trow@ximian.com>

	* e-dateedit.c (e_date_edit_check_date_changed): Keep us from
	reading tmp_tm uninitialized, so purify won't complain.

svn path=/trunk/; revision=13831
2001-10-20 22:57:19 +00:00
19c5a95912 Changed some of these gbooleans to be guint : 1s.
2001-10-20  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.h: Changed some of these gbooleans to be
	guint : 1s.

	* gal/widgets/e-canvas.c (e_canvas_item_grab_focus): Send the in
	event here to the new focused item instead of the old one.

svn path=/trunk/; revision=13824
2001-10-20 19:03:03 +00:00
4f973e115c Check for num_children == -1 here and generate the children if they
2001-10-20  Christopher James Lahey  <clahey@ximian.com>

	* e-tree-sorted.c (e_tree_sorted_node_num_children): Check for
	num_children == -1 here and generate the children if they haven't
	been.  Fixes Ximian bug #12464.

svn path=/trunk/; revision=13819
2001-10-20 06:59:30 +00:00
35c8845807 Connect keys before we show the widget.
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-18 17:34:26 +00:00
ddcc2e8d03 #include bonobo-ui-util.h
2001-10-18  Jeffrey Stedfast  <fejj@ximian.com>

	* menus/gal-view-menus.c: #include bonobo-ui-util.h

svn path=/trunk/; revision=13752
2001-10-18 17:22:45 +00:00
7530d8bb88 Added bounds checking in a number of places. (etta_init): Initialize all
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-16 23:27:58 +00:00
a5931319b6 Use new e_table_header_prioritized_column field.
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 21:52:49 +00:00
6445c55f20 Copy the can group state on the sort info here.
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-12 20:25:21 +00:00
1
736e73548c bumped revision to .1
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 22:07:28 +00:00
69b2e6d8ee Use e_strdup_append_strings here instead of g_strdup_printf because
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-11 16:17:41 +00:00
484c8193e1 Implement these functions as pass through to the child cell.
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 20:44:25 +00:00
6b746897bf Based on patches from Dan Nguyen <dnn@austin.ibm.com>.
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 12:49:34 +00:00
cd18ff4f51 Added this function.
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-10 11:22:19 +00:00
3c7aba68e9 Now takes a menu path argument.
2001-10-09  Jeffrey Stedfast  <fejj@ximian.com>

	* e-charset-picker.c (e_charset_picker_bonobo_ui_populate): Now
	takes a menu path argument.

svn path=/trunk/; revision=13528
2001-10-09 21:59:21 +00:00
a191834cb1 Final un-bit rotting. Now actually works.
svn path=/trunk/; revision=13504
2001-10-08 18:39:28 +00:00
482567f1c7 More bit-rot fighting in example.
svn path=/trunk/; revision=13502
2001-10-08 17:07:52 +00:00
7d5b83061f Partial bit-rot fight. Sample still does not work.
svn path=/trunk/; revision=13498
2001-10-08 14:17:54 +00:00
90daf11b95 Check that cell views are realized before doing anything here. Fixes
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 17:43:47 +00:00
3b74bfce98 remove the test condition and always work form the locale not he the font.
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 17:27:37 +00:00
c87ef08b95 Handle row and cell changes properly in the uniform_row_height case.
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 16:52:08 +00:00
c259b85c5d Use g_dataset_set_data_full to find out when the context is destroyed.
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-06 15:47:29 +00:00
7547460503 Got rid of the misused button variable here.
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 20:47:54 +00:00