Commit Graph

950 Commits

Author SHA1 Message Date
6434d2b055 Fixed Bug 51252, 51254, 51255. add some code deal with key press event.
2003-11-23 Andrew Wu <yang.wu@sun.com>

       Fixed Bug 51252, 51254, 51255.
        * gal/e-table/e-table-header-item.c:
        (ethi_event):add some code deal with key press event.
        * gal/e-table/e-table-header-item.h
        add a member "selected_col" for keyboard navigation.
        * gal/e-table/e-table.c
        (e_table_setup_header):make header can focus.

svn path=/trunk/; revision=23572
2003-12-02 07:55:14 +00:00
c84cfbc83a Fixes #51139
2003-12-02  Bolian Yin  <bolian.yin@sun.com>

        Fixes #51139

        * gal/a11y/gal-a11y-e-table-item: (gal_a11y_e_table_item_ref_selection)
        (gal_a11y_e_table_item_unref_selection): new functions.

        * gal/e-table/e-table-item.c : change the place of emitting ""selection_model_removed" signal.

svn path=/trunk/; revision=23571
2003-12-02 07:40:28 +00:00
addb2f0ea7 a11y implementations for ECellText. new functions to support corresponding
2003-12-02  Tim Wo  <tim.wo@sun.com>

	* gal/a11y/e-table/gal-a11y-e-cell-text.c: (ect_get_text),
	(ect_get_character_at_offset), (ect_get_caret_offset),
	(ect_get_character_count), (ect_get_n_selections),
	(ect_get_selection), (ect_add_selection), (ect_remove_selection),
	(ect_set_selection), (ect_set_caret_offset),
	(ect_set_text_contents), (ect_insert_text), (ect_copy_text),
	(ect_delete_text), (ect_cut_text), (ect_paste_text),
	(ect_class_init): a11y implementations for ECellText.
	* gal/e-table/e-cell-text.c: (e_cell_text_set_selection),
	(e_cell_text_get_selection), (e_cell_text_copy_clipboard),
	(e_cell_text_paste_clipboard), (e_cell_text_delete_selection): new
	functions to support corresponding atk operations.
	* gal/e-table/e-cell-text.h: some APIs added to support atk operations.

svn path=/trunk/; revision=23568
2003-12-02 07:20:04 +00:00
9582e8159c renamespace and move to here build new files
2003-11-17  Mike Kestner  <mkestner@ximian.com>

	* gal/widgets/gtk-combo* : renamespace and move to
	* gal/widgets/gal-combo* : here
	* gal/widgets/Makefile.am : build new files

2003-11-17  Mike Kestner  <mkestner@ximian.com>

	* e-table-config.c : use new gal_combo_* namespace.

svn path=/trunk/; revision=23402
2003-11-17 21:05:15 +00:00
edf5fa2abb Fix for 50800 connect "e_cell_combo_list_button_press" to gtklist.
2003-11-14  Andrew Wu <yang.wu@sun.com>
       Fix for 50800
       * gal/e-table/e-cell-combo.c (e_cell_combo_init):
       connect "e_cell_combo_list_button_press" to gtklist.
       (e_cell_combo_list_button_press):
       deal with the "click" event.
       (e_cell_combo_selection_changed):
       delete the action to selection changed.

svn path=/trunk/; revision=23350
2003-11-14 10:12:31 +00:00
724be060d1 Fix for 50681 send a event to the right cell to pop up something.
2003-11-12  Andrew Wu <yang.wu@sun.com>
        Fix for 50681
        * gal/e-table/e-table-item.c (eti_event):
        send a event to the right cell to pop up something.

svn path=/trunk/; revision=23349
2003-11-14 10:07:26 +00:00
2ba68734fd new files (gal-a11y-e-cell-tree.c/h) added adding 2 new functions to add
2003-11-03  Tim Wo  <tim.wo@sun.com>

	* gal/a11y/e-table/Makefile.am: new files (gal-a11y-e-cell-tree.c/h)
	added
	* gal/a11y/e-table/gal-a11y-e-cell.h: adding 2 new functions to add or
	remove atk states
	* gal/a11y/e-table/gal-a11y-e-cell.c (eti_dispose): unref the state_set
	(eti_ref_state_set): new function
	(eti_class_init): create and initialize the state_set
	(eti_init): override the "ref_state_set" function in AtkObjectClass with
	"eti_ref_state_set"
	(gal_a11y_e_cell_add_state): adding a return value
	(gal_a11y_e_cell_remove_state): new function
	* gal/e-table/e-cell-tree.c: (e_cell_tree_class_init): register
	GalA11yECellText as the a11y implementation for ECellText.
	(e_cell_tree_view_get_subcell_view): new function to retrieve the cell_view
	of subcell in ECellTree
	* gal/e-table/e-cell-tree.h: adding 1 new function to retrieve the cell_view
	of subcell in ECellTree
	* gal/a11y/e-table/gal-a11y-e-cell-tree.c: new file. A11y implementation
	for ECellTree
	* gal/a11y/e-table/gal-a11y-e-cell-tree.h: new file. A11y implementation
	for ECellTree

svn path=/trunk/; revision=23296
2003-11-12 05:12:04 +00:00
ad315e4a7d Fixes # 50480
2003-11-11  Bolian Yin  <bolian.yin@sun.com>

        Fixes # 50480

        * e-table-item: add two signals: "selection_model_removed" and "selection_model_added"

svn path=/trunk/; revision=23281
2003-11-11 03:42:17 +00:00
240bdec15b disable apply button when initial dialog. disable apply button after
2003-10-13  Charles Zhang  <charles.zhang@sun.com>

	* e-table-config.c (e_table_config_new): disable apply button
	when initial dialog.
	* e-table-header-item.c (apply_changes): disable apply button
	after applying changes.

svn path=/trunk/; revision=23168
2003-11-03 13:40:49 +00:00
d0524e055c new function to deal with grabing table cell focus
2003-10-30  Tim Wo  <tim.wo@sun.com>
	* gal/a11y/e-table/gal-a11y-e-cell.c (eti_grab_focus): new function
	to deal with grabing table cell focus
	(eti_atk_component_iface_init): Override "grab_focus" virtual function
	with eti_grab_focus of AtkComponent interface. (#50131)
	* gal/e-table/e-cell-text.c: (e_cell_text_class_init): register
	GalA11yECellText as the a11y implementation for ECellText.

svn path=/trunk/; revision=23166
2003-11-03 04:20:10 +00:00
1a80fb97d5 shared object looks for wrong mo file"
2003-10-28  Suresh Chandrasekharan  <suresh.chandrasekharan@sun.com>


	* Fix for "50258 libgal: shared object looks for wrong mo file"

svn path=/trunk/; revision=23163
2003-11-03 02:06:02 +00:00
9d85d642b2 add new file for toggle cell a11y object. new a11y object toggle cell
2003-10-26  Yuedong Du  <yuedong.du@sun.com>

        * gal/a11y/e-table/Makefile.am: add new file for toggle cell a11y
         object.
        * gal/a11y/e-table/gal-a11y-e-cell-toggle.c: new a11y object toggle cell        (gal_a11y_e_cell_toggle_get_type),
        (gal_a11y_e_cell_toggle_class_init), (toggle_cell_action), the
        implementation of toggle cell action.
        (gal_a11y_e_cell_toggle_new):
        * gal/a11y/e-table/gal-a11y-e-cell-toggle.h: ditto
        * gal/a11y/e-table/gal-a11y-e-cell.c:
        (_gal_a11y_e_cell_get_action_info),
        (_gal_a11y_e_cell_destroy_action_info),
        (gal_a11y_e_cell_add_action), (gal_a11y_e_cell_remove_action),
        (gal_a11y_e_cell_remove_action_by_name),
        (gal_a11y_e_cell_action_get_n_actions),
        (gal_a11y_e_cell_action_get_name),
        (gal_a11y_e_cell_action_get_description),
        (gal_a11y_e_cell_action_set_description),
        (gal_a11y_e_cell_action_get_keybinding), (idle_do_action),
        (gal_a11y_e_cell_action_do_action),
        (gal_a11y_e_cell_atk_action_interface_init),
        (gal_a11y_e_cell_type_add_action_interface),
        (gal_a11y_e_cell_add_state): helper functions for add a action,
        stealed from gailcell.c
        * gal/a11y/e-table/gal-a11y-e-cell.h:
        * gal/e-table/e-cell-toggle.c: (e_cell_toggle_class_init): register
        toggle's a11y object.

svn path=/trunk/; revision=23095
2003-10-28 05:41:05 +00:00
aa7103dfa1 Fix for "50065 chinese locales Input method hangs after a task entry and
* Fix for "50065 chinese locales Input method hangs after a task entry
        and new folder creation"

        * gal/e-table/e-cell-text.c: (ect_event) Added check to return
        if preedit_length == 0 and E_CELL_PREEDIT flag is set.

svn path=/trunk/; revision=23093
2003-10-27 22:21:18 +00:00
10a4435447 Allocate colors using gdk_colormap_alloc_color().
2003-10-23  Hans Petter Jansson  <hpj@ximian.com>

	* e-table-item.c (eti_get_cell_background_color): Allocate
	colors using gdk_colormap_alloc_color().

svn path=/trunk/; revision=23053
2003-10-23 20:18:55 +00:00
0517e6655c Support for preedit in e-text widgets.
2003-10-14  Suresh Chandrasekharan  <suresh.chandrasekharan@sun.com>

	* Support for preedit in e-text widgets.

	* gal/gal/e-text/e-text.c: Added e_text_preedit_changed_cb and
	insert_preedit_text.

	* Modified the following functions.
	(e_text_draw) Calls insert_preedit_text also cursor pos @ the end of
	text->selection_start + text->preedit_len

	(e_text_event) Added hooks for preedit_cb
	(e_text_init) Inits text->preedit_len
	(e_text_retrieve_surrounding_cb) Removed printf
	(e_text_delete_surrounding_cb) Correct params for
	gtk_editable_delete_text to make it work.

	* gal/gal/e-text/e-text.h: Added preedit_len in struct _EText


2003-09-25  Suresh Chandrasekharan  <suresh.chandrasekharan@sun.com>

	* Fix for "44222 task summary entry widget not i18ned". The following
	files are changed.

	* gal/gal/e-table/e-cell-text.c: Lots of changes for i18n
	selection/input support. Added these functions for input method support.

	(e_cell_text_preedit_changed_cb)
	(e_cell_text_commit_cb)
	(e_cell_text_retrieve_surrounding_cb)
	(e_cell_text_delete_surrounding_cb)

	(layout_with_preedit) This function inserts the preedit string
	with the right attribs to the layout text.

	(build_attr_list) Creates the PangoAttrList with bold/stikeout/underline
	as applicable for the current ECellText.

	The following functions are modified.

	(ect_stop_editing): disconnect signal handlers when editing stops

	(ect_draw): Changes for including the preedit only to the currently
	selected row/col. Also display the cursor at the end of preedit text.

	(ect_event): Connects the IM callbacks to the key press event.
	Disconnect when not in editing mode. Also a special flag to see
	when Enter key pressed in preedit mode, the text is committed only
	not a new row is created. This woks in conjunction with the changes
	made in the eti_event in e-table-item.c file and e-cell.h.

	(ect_height): Changes due to parameters changing for generate_layout

	(ect_enter_edit): Initialization of im_context for a cell text and
	assoociated flags.

	(ect_max_width):  Changes due to parameters changing for
	generate_layout.

	(ect_max_width_by_row):  Changes due to parameters changing for
	generate_layout.

	(ect_show_tooltip): Changes due to parameters changing for
	generate_layout.

	(e_cell_text_construct): check whether paramters are NULL.

	(get_position_from_xy): Changes due to parameters changing for
	generate_layout.

	(_insert): Set the selection_start as the minimum of strlen(edit->text)
	and selection_start. Used to correct the preedit_string length
	which may have added to the selection_start.

	(e_cell_text_view_command): When inserting, if in the preedit mode
	do not delete the selection.

	(_selection_get): Set utf8 data instead of string data.

	(_selection_received): Take in UTF8_ATOM inaddition to
	GDK_SELECTION_TYPE_STRING.

	(e_cell_text_view_get_selection): Make utf8 data when acting as a
	selection source.

	* gal/e-table/e-cell-text.h : Included <gtk/gtkmenu.h>

	* gal/e-table/e-cell.h: Added enum E_CELL_PREEDIT to ECellFlags

	* gal/e-table/e-table-item.c: (eti_event) Changes for not committing
	the edited text as a seperate row in preedit mode.

	* gal/e-table/e-table.c: (table_canvas_focus_event_cb) To have
	proper im_context focus for the ecanvas holding the e-table.

svn path=/trunk/; revision=22882
2003-10-14 18:20:18 +00:00
5bbde1a630 add new files. set the right role. new file.
2003-10-11  Yuedong Du  <yuedong.du@sun.com>

        * gal/a11y/e-table/Makefile.am: add new files.
        * gal/a11y/e-table/gal-a11y-e-cell.c: (gal_a11y_e_cell_construct):
        set the right role.
        * gal/a11y/e-table/gal-a11y-e-table-item-factory.c: new file.
        (gal_a11y_e_table_item_factory_get_accessible_type),
        (gal_a11y_e_table_item_factory_create_accessible),
        (gal_a11y_e_table_item_factory_class_init),
        (gal_a11y_e_table_item_factory_init),
        (gal_a11y_e_table_item_factory_get_type): factory for the table item
        a11y object. in create_accessible, we judge the type of widget
        then set correct role.
        * gal/a11y/e-table/gal-a11y-e-table-item-factory.h: ditto.
        * gal/a11y/e-table/gal-a11y-e-tree-factory.c: new file.
        (gal_a11y_e_tree_factory_get_accessible_type),
        (gal_a11y_e_tree_factory_create_accessible),
        (gal_a11y_e_tree_factory_class_init),
        (gal_a11y_e_tree_factory_init), (gal_a11y_e_tree_factory_get_type):
        factory for a11y object of etree. Mostly copyed from
        gal-a11y-e-table-factory.c.
        * gal/a11y/e-table/gal-a11y-e-tree-factory.h: ditto
        * gal/a11y/e-table/gal-a11y-e-tree.c: (init_child_item),
        (et_ref_accessible_at_point), (et_get_n_children), (et_ref_child),
        (et_class_init), (et_atk_component_iface_init), (et_init),
        (gal_a11y_e_tree_get_type), (gal_a11y_e_tree_new):a11y object for
        etree object, mostly copied from gal-a11y-e-table.c. init_child_item
        set correct role for the table item.
        * gal/a11y/e-table/gal-a11y-e-tree.h: ditto.
        * gal/e-table/e-table-item.c: (eti_class_init): register factory
        for table item a11y object.
        * gal/e-table/e-tree.c: (e_tree_get_item), (e_tree_class_init):
        add new access fuction to get the table item of etree.
        * gal/e-table/e-tree.h: ditto

svn path=/trunk/; revision=22867
2003-10-11 03:00:59 +00:00
84cf30376e process GTK_RESPONSE_DELETE_EVENT signal correctly. the same as above
2003-09-28  Charles Zhang  <charles.zhang@sun.com>

	* e-table-config.c (do_sort_and_group_config_dialog): process
	GTK_RESPONSE_DELETE_EVENT signal correctly.
	* e-table-config.c (do_fields_config_dialog): the same as above
	[#48815]

svn path=/trunk/; revision=22852
2003-10-10 07:07:35 +00:00
7fef481a7a new method to get the source model column for a specified available_model
2003-09-11  Mike Kestner  <mkestner@ximian.com>

	* e-table-config.c (get_source_model_col_index): new method to
	get the source model column for a specified available_model idx.
	(create_global_store): save the source model index in a new col.
	(config_button_add): use the new index lookup function [48153].

svn path=/trunk/; revision=22536
2003-09-11 21:14:00 +00:00
f01f363a70 move scnt and gcnt initialization outside the for loop [43156].
2003-09-11  Mike Kestner  <mkestner@ximian.com>

	* e-table-sort-info.c (e_table_sort_info_load_from_node):
	move scnt and gcnt initialization outside the for loop [43156].

svn path=/trunk/; revision=22532
2003-09-11 20:58:53 +00:00
227f47b1aa add e-table atk support to libgal a11y add atk registration for
2003-09-05  Gilbert Fang  <gilbert.fang@sun.com>

        * gal/a11y/Makefile.am: add e-table atk support to libgal a11y
        * gal/e-table/e-table.c: (e_table_class_init): add atk registration
        for GalA11yETable (#47780)

svn path=/trunk/; revision=22466
2003-09-05 04:41:40 +00:00
7947421861 ** For bug #47874.
2003-08-25  Harry Lu  <harry.lu@sun.com>

        ** For bug #47874.

        * e-table-specification.c (e_table_specification_load_from_file):
        check whether file exists before call xmlParseFile().
        * e-table-state.c (e_table_state_load_from_file): ditto.
        * e-tree-table-adapter.c (open_file): ditto.

svn path=/trunk/; revision=22358
2003-08-26 02:47:19 +00:00
0a68edd9a4 add an expander_style param (ect_draw): pass expander_style to
2003-08-19  Mike Kestner  <mkestner@ximian.com>

	* e-cell-tree.c (draw_expander): add an expander_style param
	(ect_draw): pass expander_style to draw_expander
	(animate_expander): new timeout handler for expander animation
	(ect_event): on !retro clicks, draw a "semi" expander and start
	an animation handler to finish the animation.

svn path=/trunk/; revision=22288
2003-08-19 17:27:36 +00:00
405b846e5b extracted from ect_draw (draw_expander): new gtktreeview-like expander
2003-08-15  Mike Kestner  <mkestner@ximian.com>

	* e-cell-tree.c (draw_retro_expander): extracted from ect_draw
	(draw_expander): new gtktreeview-like expander drawing
	(ect_draw): draw lines and expanders based on retro_look style prop
	(adjust_event_position): extracted method from ect_event
	(event_in_expander): new checks for motion/clicks in expander
	(ect_event): handle prelight for new expanders
	* e-table-item.c (eti_init): init new motion col/row
	(eti_event): synthesize leave_notify events for cells and propogate
	existing motion events to the cells.
	* e-tree.c (e_tree_class_init): add retro_look and expander_size
	style props.

svn path=/trunk/; revision=22251
2003-08-15 20:23:12 +00:00
7e917e1335 actually chose the right color to+ composite over when caching the pixmap.
2003-08-12  Larry Ewing  <lewing@ximian.com>
       * e-cell-toggle.c (check_cache): actually chose the right color to+       composite over when caching the pixmap.

svn path=/trunk/; revision=22200
2003-08-12 22:39:49 +00:00
53aa9cac16 map model_column to available model row by ignoring disabled columns.
2003-07-28  Mike Kestner  <mkestner@ximian.com>

	* e-table-config (setup_fields): map model_column to available
	model row by ignoring disabled columns.

svn path=/trunk/; revision=21993
2003-07-28 16:09:08 +00:00
cfacfc319d Initialize some missing fields. Fixes "no handler with id" warnings at evo
* e-tree.c (e_tree_init): Initialize some missing fields. Fixes
        "no handler with id" warnings at evo shutdown
        (ETreePriv): remove unused table_rows_{inserted,deleted}_id
        (et_disconnect_from_etta): remove refs to them

        * e-table.c (e_table_drag_source_unset): free site->target_list if
        it's set.

svn path=/trunk/; revision=21705
2003-07-01 13:16:43 +00:00
4f9a9a6379 Implement. (ect_print): Use same font heuristics as evo calendar, pick a
2003-06-22  Hans Petter Jansson  <hpj@ximian.com>

        * e-cell-text.c (get_font_for_size): Implement.
        (ect_print): Use same font heuristics as evo calendar, pick a font
        that fits. Correct baseline calculation.

svn path=/trunk/; revision=21519
2003-06-23 20:30:22 +00:00
f64e3ca963 remove extra ref, the count starts at one.
2003-06-19  Larry Ewing  <lewing@ximian.com>

	* e-table-specification.c (e_table_specification_load_from_node):
	remove extra ref, the count starts at one.

	* e-table-utils.c (e_table_spec_to_full_header): add_column adds a
	reference, so drop the intial reference.

	* e-table.c (et_real_construct):remove extra ref, count starts at
	one.

svn path=/trunk/; revision=21479
2003-06-19 15:31:31 +00:00
996f1063f9 don't do the CURSOR_FIRST checks if cursor is NULL [43523]
2003-06-13  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (et_search_search): don't do the CURSOR_FIRST
	checks if cursor is NULL [43523]

2003-06-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_get_cell_background_color): update to
	an alt row color more consistent with gtktreeview. [44610]

svn path=/trunk/; revision=21440
2003-06-13 22:27:03 +00:00
a37e4f4213 guard against NULL strings don't add disabled column titles to the store.
2003-06-12  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (generate_layout): guard against NULL strings
	* e-table-config.c (create_global_store): don't add disabled
	column titles to the store. [44258]
	* e-tree-table-adapter.c (e_t_t_a_node_set_expanded): don't
	warn if we're trying to collapse a node that's not visible.
	* e-tree.c (et_connect_to_etta): don't connect to row_inserted
	and row_deleted. [43893]

svn path=/trunk/; revision=21424
2003-06-12 13:35:46 +00:00
0701e570aa bump libtool version for api addition new, utf8 in/out
2003-05-28  Mike Kestner  <mkestner@ximian.com>

	* configure.in : bump libtool version for api addition
	* gal/util/e-util.c (e_utf8_strftime): new, utf8 in/out
	(e_utf8_strftime_fix_am_pm): new, utf8 in/out

2003-05-28  Mike Kestner  <mkestner@ximian.com>

	* e-cell-date.c (ecd_get_text): use e_utf8_strftime_fix_am_pm
	and remove locale to utf8 conversion at end.  [43485]

svn path=/trunk/; revision=21343
2003-05-28 21:32:52 +00:00
3c4aef5b41 to really fix 42952 use e_table_item_get_cell_geometry. Also a couple
2003-05-20  Ettore Perazzoli  <ettore@ximian.com>

	* e-tree.c (tree_canvas_size_allocate): to really fix 42952
	use e_table_item_get_cell_geometry.  Also a couple valgrind
	and g_warning fixes related to this change from Mike.

svn path=/trunk/; revision=21303
2003-05-21 16:02:59 +00:00
fcb80018c0 revert a broken CLEAN_FILES change. [42478]
2003-05-19  Mike Kestner  <mkestner@ximian.com>

	* Makefile.am : revert a broken CLEAN_FILES change. [42478]

2003-05-19  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): don't call any line breaking
	or justification code if the width <= 0 since it's pointless
	and apparently pango likes to crash when you do. [43199]

svn path=/trunk/; revision=21260
2003-05-19 18:37:12 +00:00
d09737dec4 block the signal that got us here until we're done to stop an infinite
2003-05-16  Mike Kestner  <mkestner@ximian.com>

	* gal-view-collection.c (view_changed): block the signal
	that got us here until we're done to stop an infinite
	recursion.  Fixes 43153.

2003-05-16  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (invisible_finalize): kill
	(ect_stop_editing): destroy the invisible, not weak_unref
	(e_cell_text_view_get_invisible): don't weak_ref the invisible
	since we own its ref.

2003-05-16  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_event): fix a couple timer checks
	* e-tree-table-adapter.c (update_node): Traverse POST order
	so that the parent nodes are at the head of the prepended list.
	Don't restore expanded state to nodes that aren't in the tree
	any longer.  Hopefully fixes #42856.

svn path=/trunk/; revision=21229
2003-05-16 21:58:33 +00:00
b47a4aa4ee (tree_canvas_size_allocate): Call
tree_canvas_reflow_idle() before deciding whether to move the
adjustment, not afterwards.  [#42952]

svn path=/trunk/; revision=21197
2003-05-15 20:58:15 +00:00
6cdf75996f use weak refs not datasets. (e_tree_dispose): weak_unref the context.
2003-05-14  Mike Kestner  <mkestner@ximian.com>

	* e-tree-c (context_connect): use weak refs not datasets.
	(e_tree_dispose): weak_unref the context.
	Hopefully fixes 42617.

svn path=/trunk/; revision=21195
2003-05-15 18:33:47 +00:00
6e8895d6e8 gross hack to work around a post dispose event emission by
2003-05-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_event): gross hack to work around a
	post dispose event emission by gtk2.0/canvas2.0 [#42622]

svn path=/trunk/; revision=21174
2003-05-14 17:56:50 +00:00
b08b55549a add null check for paths (find_prev_in_range): add null check for paths
2003-05-09  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (find_next_in_range): add null check for paths
	(find_prev_in_range): add null check for paths

svn path=/trunk/; revision=21143
2003-05-09 21:39:56 +00:00
4d31188934 don't return on col == -1. update the adjustment to center the cursor.
2003-05-09  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_cursor_change): don't return on col == -1.
	* e-tree.c (tree_canvas_size_allocate): update the adjustment
	to center the cursor.
	(hover_timeout): remove unused variable to fix warning

svn path=/trunk/; revision=21142
2003-05-09 17:14:17 +00:00
c7431a19ae add missing model_changed (etta_proxy_node_inserted): add missing
2003-05-06  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (insert_node): add missing model_changed
	(etta_proxy_node_inserted): add missing model_changed
	(etta_proxy_node_removed): add missing model_changed

svn path=/trunk/; revision=21116
2003-05-06 18:19:15 +00:00
7f56d73b7c Use correct macro for int->pointer
2003-05-05  Jeremy Katz  <katzj@redhat.com>

	* e-table-config.c (setup_fields): Use correct macro for int->pointer

svn path=/trunk/; revision=21111
2003-05-06 04:57:48 +00:00
cfd486fdd8 return the instantiated object. [bug #42156]
2003-05-01  Mike Kestner  <mkestner@ximian.com>

	* gal/e-text/e-completion-callbacks.c (e_completion_callbacks_new):
	return the instantiated object. [bug #42156]

2003-05-01  Mike Kestner  <mkestner@ximian.com>

	* e-cell-combo.c (e_cell_combo_selection_changed): new
	(e_cell_combo_init): connect to selection_changed on popup_list
	(e_cell_combo_do_popup): block selection_changed while popping up
	[bug #40996]

svn path=/trunk/; revision=21042
2003-05-01 18:21:35 +00:00
16bfd2b973 remove gratuitous ref
2003-05-01  JP Rosevear  <jpr@ximian.com>

	* e-table.c (et_real_construct): remove gratuitous ref

svn path=/trunk/; revision=21041
2003-05-01 18:02:17 +00:00
c84abc0e0c don't use unicode ellipsis so that we don't break on broken font setups.
2003-04-29  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): don't use unicode ellipsis so
	that we don't break on broken font setups.

2003-04-29  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (generate_layout): don't set width on the layout
	during edit

svn path=/trunk/; revision=21012
2003-04-29 18:27:04 +00:00
5283d07d81 don't do wrapping during edit
2003-04-28  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): don't do wrapping during edit

svn path=/trunk/; revision=20995
2003-04-28 21:03:35 +00:00
1f8aee1ac6 use unicode ellipsis char for breaking lines. Use g_utf8_find_prev_char
2003-04-21  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): use unicode ellipsis char for
	breaking lines. Use g_utf8_find_prev_char and check for failure
	so that we don't tight loop for small cells that can't display
	any chars.

svn path=/trunk/; revision=20924
2003-04-22 18:54:55 +00:00
1eba3d38e0 use e_tree_table_adapter_node_get_next to determine how to draw sibling
2003-04-21  Mike Kestner  <mkestner@ximian.com>

	* e-cell-tree.c (ect_draw): use e_tree_table_adapter_node_get_next
	to determine how to draw sibling lines.
	(ect_print): ditto
	* e-tree-table-adapter.c (e_t_t_a_node_get_next): new

svn path=/trunk/; revision=20902
2003-04-21 14:18:58 +00:00
6c7b3b17ed [ fixes evolution bug #40464 ] use G_SIGNAL_TYPE_STATIC_SCOPE for the
2003-04-19  Chris Toshok  <toshok@ximian.com>

	[ fixes evolution bug #40464 ]
	* e-table.c (e_table_class_init): use G_SIGNAL_TYPE_STATIC_SCOPE
	for the GtkSelectionData args of table_drag_data_get and
	table_drag_data_received.

svn path=/trunk/; revision=20900
2003-04-20 22:08:00 +00:00
474763899f if the layout splits into more than one line, shorten it to a single line
2003-04-18  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): if the layout splits into more
	than one line, shorten it to a single line with elipses.
	(generate_layout): don't ref NULL layouts
	(ect_enter_edit): use g_new0 for the CellEdit
	(get_position_from_xy): use generate_layout since edit->layout
	isn't necessarily set here.

svn path=/trunk/; revision=20892
2003-04-18 19:51:01 +00:00
0407034071 add guarding for row indexing (Bug# 41497)
2003-04-17  JP Rosevear  <jpr@ximian.com>

	* e-table-subset.c : add guarding for row indexing (Bug# 41497)

svn path=/trunk/; revision=20891
2003-04-18 19:45:27 +00:00