Commit Graph

1172 Commits

Author SHA1 Message Date
b76d2415d6 Fixes #2465
* menus/gal-view-menus.c (build_menus):
Encode the label using bonobo_ui_util_encode_str and set "label"
attribute, not "_label".
I have no idea what the previous code was trying to do but it was
definitely wrong.

svn path=/trunk/; revision=12601
2001-09-04 21:22:11 +00:00
099d43d698 Remove debugging message.
* e-tree.c (e_tree_drag_unhighlight): Remove debugging message.

svn path=/trunk/; revision=12599
2001-09-04 20:54:18 +00:00
abef6d7dad Use e_iconv_from_locale, not e_iconv_to_locale.
* gal/widgets/e-unicode.c (e_utf8_from_locale_string_sized):
Use e_iconv_from_locale, not e_iconv_to_locale.

svn path=/trunk/; revision=12562
2001-09-02 20:06:40 +00:00
5c1e0a1d9e Strip spaces at the beginning or end as well as changing " " to " ". Fixes
2001-09-02  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-date.c (ecd_get_text): Strip spaces at the beginning or
	end as well as changing "  " to " ".  Fixes Ximian bug #7683.

svn path=/trunk/; revision=12560
2001-09-02 09:26:13 +00:00
03a5d4a3d3 Bumped the version number to 0.11.99.2 for new e_utf8 functions.
2001-09-01  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the version number to 0.11.99.2 for new
	e_utf8 functions.

	* gal/widgets/e-unicode.c, gal/widgets/e-unicode.h
	(e_utf8_is_ascii): Added this function.  Reformatted.

svn path=/trunk/; revision=12557
2001-09-02 02:14:04 +00:00
a3d7a62572 Bumped the version number to 0.111.99.1 for new e_utf8 functions.
2001-09-01  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the version number to 0.111.99.1 for new
	e_utf8 functions.

	* gal/unicode/gunicollate.c (g_utf8_collate, g_utf8_collate_key):
	Changed this from e_utf8_from_locale_string to
	e_utf8_to_locale_string.

	* gal/widgets/e-font.c, gal/widgets/e-font.h
	(e_iconv_from_charset, e_iconv_to_charset): Added these functions
	to the exported interface (renamed them as well from
	e_iconv_from_encoding and e_iconv_to_encoding.)

	* gal/widgets/e-unicode.c, gal/widgets/e-unicode.h
	(e_utf8_from_iconv_string, e_utf8_from_iconv_string_sized,
	e_utf8_to_iconv_string, e_utf8_to_iconv_string_sized,
	e_utf8_from_charset_string, e_utf8_from_charset_string_sized,
	e_utf8_to_charset_string, e_utf8_to_charset_string_sized): Added
	these functions.
	(e_utf8_from_locale_string, e_utf8_to_locale_string): Changed
	these to use the new e_utf8_from_iconv_string and
	e_utf8_to_iconv_string.

svn path=/trunk/; revision=12554
2001-09-01 08:16:49 +00:00
06eb6e23fb Rename these functions from ecn_get_text and ecn_free_text.
2001-09-01  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-float.c (ecf_get_text, ecf_free_text): Rename these
	functions from ecn_get_text and ecn_free_text.

	* e-cell-tree.c (ect_height): Make sure the height is a multiple
	of two here.

	* e-table-header-item.c, e-table-header-item.h: Added a "tree"
	argument so that the sorting can be set by right clicking on the
	header item.

	* e-table-item.c (eti_table_model_rows_deleted): Added some
	assertions here.

	* e-tree-selection-model.c (etsm_find_node_unless_equals): Fixed
	indentation.

	* e-tree-table-adapter.c (etta_proxy_node_changed): Rewrote this
	to be more readable.
	(e_tree_table_adapter_node_set_expanded): Added an assertion.

	* e-tree.c, e-tree.h (e_tree_get_spec): Added this function.
	(e_tree_setup_header): Set the tree argument on the
	ETableHeaderItem here.

svn path=/trunk/; revision=12553
2001-09-01 08:03:44 +00:00
1273682db1 Fix this memmove. We've already subtracted the count from eti->rows.
2001-08-31  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_table_model_rows_deleted): Fix this memmove.
	We've already subtracted the count from eti->rows.

svn path=/trunk/; revision=12550
2001-09-01 01:44:58 +00:00
24a4d864f0 New prototype here.
2001-08-27  Ettore Perazzoli  <ettore@ximian.com>

	* e-timezone-dialog/e-timezone-dialog.h
	(e_timezone_dialog_reparent): New prototype here.

svn path=/trunk/; revision=12511
2001-08-29 03:49:21 +00:00
87b3e9277f Patch to fix few 64bit issues
Tue Aug 28 18:29:28 2001  George Lebl <jirka@5z.com>

	Patch to fix few 64bit issues

	* gal/e-table/e-table-header-item.c (ethi_draw) (ethi_start_drag)
	  gal/widgets/e-categories.c (e_categories_value_at)
	  (e_categories_value_to_string):
	  Use GINT_TO_POINTER and GPOINTER_TO_INT to cast between pointers
	  and ints to fix 64bit issues connected with that.

	* gal/e-table/e-table-sorting-utils.c
	  (e_table_sorting_utils_tree_check_position)
	  gal/util/e-sorter-array.c (e_sorter_array_append):
	  Use size_t for size not ints to fix crashes

	* gal/e-text/e-completion-match.c, gal/e-text/e-completion.c:
	  Include <string.h>

svn path=/trunk/; revision=12507
2001-08-29 01:30:26 +00:00
c28f63f861 New prototype here.
* e-timezone-dialog/e-timezone-dialog.h
(e_timezone_dialog_reparent): New prototype here.

svn path=/trunk/; revision=12496
2001-08-28 00:23:47 +00:00
7c5fe3b52c Add prototype
svn path=/trunk/; revision=12489
2001-08-27 20:48:23 +00:00
c4b24c895e Fixed this memmove to subtract the count as well as the row for the number
2001-08-27  Christopher James Lahey  <clahey@ximian.com>

	* e-table-item.c (eti_table_model_rows_deleted): Fixed this
	memmove to subtract the count as well as the row for the number of
	rows to move.

svn path=/trunk/; revision=12482
2001-08-27 15:32:14 +00:00
d30a9fe66f Convert UTF-8 strings to locale's encoding before putting them in canvas
* e-table-group-container.c (compute_text):
Convert UTF-8 strings to locale's encoding before putting them in
canvas item.

svn path=/trunk/; revision=12472
2001-08-25 14:21:41 +00:00
59da647724 Fixed typo.
* e-table.c (e_table_init): Fixed typo.

svn path=/trunk/; revision=12467
2001-08-24 23:32:36 +00:00
f7120120cd Added start_drag signals.
2001-08-24  Christopher James Lahey  <clahey@ximian.com>

	* e-table-group-container.c, e-table-group-leaf.c,
	e-table-group-leaf.h, e-table-group.c, e-table-group.h: Added
	start_drag signals.

	* e-table-item.c, e-table-item.h (eti_event): Send the start_drag
	signal.  Fixes Ximian bug #807.

	* e-table.c, e-table.h, e-tree.c, e-tree.h: Added start_drag
	signal.  Made default handler start drag & drop if we're set to
	automatically handle dnd.  Ripped out the code to handle watching
	events for dnd since start_drag does this now.

svn path=/trunk/; revision=12437
2001-08-24 16:33:30 +00:00
54bea2eaa8 This patch fixes a lot of i18n problems in Evolution.
* gal/widgets/e-unicode.c (e_utf8_to_gtk_string_sized):
Call gtk_widget_ensure_style before refering to widget's style.

svn path=/trunk/; revision=12381
2001-08-22 15:10:32 +00:00
e4ec4a3420 cut and paste fixed version of gnome_canvas_button here.
2001-08-21  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-canvas.c (e_canvas_button): cut and paste fixed
	version of gnome_canvas_button here.
	(pick_current_item): needed by e_canvas_button, also from
	gnome-canvas.c.
	(gnome_canvas_item_invoke_point): same.
	(e_canvas_class_init): hook button_press_event and
	button_release_event to e_canvas_button.

svn path=/trunk/; revision=12376
2001-08-22 01:20:55 +00:00
a0bfb48ea7 We need to free_gotten_key_func key2, not key! (e_table_without_show):
2001-08-20  Jon Trowbridge  <trow@ximian.com>

	* e-table-without.c (check_with_key): We need to
	free_gotten_key_func key2, not key!
	(e_table_without_show): Renamed, used to be
	e_table_without_remove.  Double-negative function names
	are confusing!
	(e_table_without_hide_adopt): Renamed, used to be
	e_table_without_add_adopt.
	(e_table_without_hide): Renamed, used to be e_table_without_add.

2001-08-20  Jon Trowbridge  <trow@ximian.com>

	* configure.in: Increment version number to 0.10.99.5 for changes
	to ETableWithout api.

svn path=/trunk/; revision=12332
2001-08-21 00:52:33 +00:00
beba0c1009 Added these functions.
2001-08-20  Christopher James Lahey  <clahey@ximian.com>

	* e-table-subset.c, e-table-subset.h
	(e_table_subset_model_to_view_row,
	e_table_subset_view_to_model_row): Added these functions.

svn path=/trunk/; revision=12317
2001-08-20 18:22:46 +00:00
4dd3f5e734 Made this object handle NULLs for all the handler functions.
2001-08-20  Christopher James Lahey  <clahey@ximian.com>

	* e-table-without.c: Made this object handle NULLs for all the
	handler functions.

svn path=/trunk/; revision=12316
2001-08-20 17:13:36 +00:00
ac852ece23 Changed the used parity of the return value of check here.
2001-08-20  Christopher James Lahey  <clahey@ximian.com>

	* e-table-without.c (etw_proxy_model_rows_inserted,
	etw_proxy_model_changed): Changed the used parity of the return
	value of check here.

svn path=/trunk/; revision=12313
2001-08-20 16:31:39 +00:00
37c1db52c9 Shut up!
svn path=/trunk/; revision=12207
2001-08-18 20:42:28 +00:00
7b3fe06340 Chain to the destroy handler in the parent class. Hey, I'm getting used to
2001-08-18  Federico Mena Quintero  <federico@ximian.com>

	* e-table-without.c (etw_destroy): Chain to the destroy handler in
	the parent class.  Hey, I'm getting used to this :)

svn path=/trunk/; revision=12199
2001-08-18 08:03:24 +00:00
d5ea07e5be Compile fixes
svn path=/trunk/; revision=12172
2001-08-17 19:44:17 +00:00
060e4cf5da Add libical include path
svn path=/trunk/; revision=12168
2001-08-17 18:55:20 +00:00
31bb4b3f7b Destroy the hash table and all objects in it, as well as the priv
2001-08-17  Christopher James Lahey  <clahey@ximian.com>

	* e-table-without.c (etw_destroy): Destroy the hash table and all
	objects in it, as well as the priv structure.

svn path=/trunk/; revision=12147
2001-08-17 07:23:43 +00:00
4e60b7d947 Startup assistant stuff
svn path=/trunk/; revision=12145
2001-08-17 04:29:11 +00:00
dad6d45018 Bumped version number to 0.10.99.4. Fixed some comments.
2001-08-16  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped version number to 0.10.99.4.  Fixed some
	comments.

	* gal/Makefile.am (libgal_la_LIBADD): Added
	e-table/e-table-without.lo.

From gal/e-table/ChangeLog:

2001-08-16  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am: Added e-table-without.c and e-table-without.h.

	* e-table-without.c, e-table-without.h: Got this to compile.
	Finished the first version of it.

svn path=/trunk/; revision=12144
2001-08-17 03:38:16 +00:00
a7da845f7f added e_date_edit_get/set_make_time_insensitive() which makes the time
2001-08-16  Damon Chaplin  <damon@ximian.com>

	* e-dateedit.c: added e_date_edit_get/set_make_time_insensitive()
	which makes the time field insensitive rather than hiding it.
	I'm not sure we're going to actually use this now, though.

svn path=/trunk/; revision=12135
2001-08-16 23:25:45 +00:00
791c2bec7e Set the horizontal usize of the entry to 4.
* e-search-bar.c (activate_by_subitems): Set the horizontal usize
of the entry to 4.

svn path=/trunk/; revision=12132
2001-08-16 22:28:24 +00:00
23c322c893 Adding the first versions of these files. Doesn't work yet.
2001-08-16  Christopher James Lahey  <clahey@ximian.com>

	* e-table-without.c, e-table-without.h: Adding the first versions
	of these files.  Doesn't work yet.

svn path=/trunk/; revision=12121
2001-08-16 20:16:43 +00:00
fd7cce6091 Added "hit_count" to ECompletionMatch. Used by search
2001-08-16  Jon Trowbridge  <trow@ximian.com>

        * gal/e-text/e-completion-match.h: Added "hit_count" to
        ECompletionMatch.  Used by search refinement/unrefinement.

	* gal/e-text/e-completion.c (e_completion_refine_search): Added.
	Handle automatic search refinements.
	(e_completion_unrefine_search): Added.  Handle automatic search
	"unrefinements", or reversions.
	(e_completion_begin_search): Check if the refinement or
	unrefinement operations can be used to handle the search.  Emit
	"request_search" at the end of the call.
	(e_completion_class_init): Added a new signal "request_search".
	"begin_search" is now purely informational, telling views that a
	series of matches and an "end_search" are forthcoming.

	* configure.in: Increment version of 0.10.99.3.

svn path=/trunk/; revision=12116
2001-08-16 19:47:57 +00:00
fef28ce070 Boost scoring on an exact nickname match. Manually addressify match.
2001-08-16  Jon Trowbridge  <trow@ximian.com>

	* gui/component/select-names/e-select-names-completion.c
	(match_nickname): Boost scoring on an exact nickname match.
	Manually addressify match.
	(match_name): Manually addressify matches.
	(book_query_score): Remove automatic addressification.

	* gui/component/addressbook.c (addressbook_query_changed): Minor
	tweak to avoid a crash if we have a negative subid with id
	ESB_CATEGORY.  This should never happen.
	(addressbook_menu_activated): Reset the entry/option when we
	select "Clear".
	Some changes to reflect renaming in ESearchBar.

	* gui/component/select-names/e-select-names-bonobo.c
	(entry_set_property_fn): Cardify after importing destinations.
	This might fix a problem that Damon is having.

2001-08-16  Jon Trowbridge  <trow@ximian.com>

	* e-filter-bar.c (option_changed): Adjusted for renamed ESearchBar
	functions.
	(menubar_activated): Adjusted for renamed ESearchBar functions.

	* e-search-bar.c: Renames some of the horrible function names:
	s/option_choice/item_id/, s/suboption_choice/subitem_id/.

2001-08-16  Jon Trowbridge  <trow@ximian.com>

	* gui/cal-search-bar.c: Changed to reflect my renaming of some of
	the more hideously-named functions in the ESearchBar API.

svn path=/trunk/; revision=12081
2001-08-16 06:17:18 +00:00
f6ae871a73 Destroy, do not unref, the popup_window.
2001-08-14  Federico Mena Quintero  <federico@ximian.com>

	* e-cell-date-edit.c (e_cell_date_edit_destroy): Destroy, do not
	unref, the popup_window.

svn path=/trunk/; revision=12022
2001-08-14 18:32:33 +00:00
0f680dfd18 Destroy, do not unref, the popup_window.
2001-08-14  Federico Mena Quintero  <federico@ximian.com>

	* e-cell-combo.c (e_cell_combo_destroy): Destroy, do not unref,
	the popup_window.

svn path=/trunk/; revision=12021
2001-08-14 18:30:10 +00:00
84eb55399b Correctness fixes for when the entry and submenu must be interchanged.
2001-08-14  Federico Mena Quintero  <federico@ximian.com>

	* e-search-bar.c (activate_by_subitems): Correctness fixes for
	when the entry and submenu must be interchanged.

svn path=/trunk/; revision=12019
2001-08-14 17:48:08 +00:00
f8473e11f7 *Please* add accessor functions instead of just object arguments!
2001-08-14  Federico Mena Quintero  <federico@ximian.com>

	*Please* add accessor functions instead of just object arguments!

	* e-search-bar.c (e_search_bar_set_option_choice): New function.
	(e_search_bar_set_suboption_choice): New function.
	(e_search_bar_set_text): New function.
	(impl_set_arg): Use the functions above instead of setting things
	directly.
	(add_dropdown): If the item is a separator, set it as insensitive.
	(activate_by_subitems): Handle the translate field in the subitem
	structure.  Also, allow the creation of separators by having NULL
	text strings in the subitems.
	(set_option): If the item is a separator, set it as insensitive.
	(set_option): Do not use the subitem_garbage hack.  Do proper
	memory management instead.
	(e_search_bar_set_suboption): New function to change the suboption
	items in a search bar.

	* e-search-bar.h (ESearchBarSubitem): Added a `translate' field.
	This API sucks so much it is not funny.
	(ESearchBar): Removed the subitem_garbage hack.  Please do proper
	memory management.

svn path=/trunk/; revision=12014
2001-08-14 16:04:33 +00:00
9086989f20 Add "Any Category" option for category searches.
2001-08-14  Jon Trowbridge  <trow@ximian.com>

	* gui/component/addressbook.c (addressbook_factory_new_control):
	Add "Any Category" option for category searches.
	(addressbook_query_changed): Do the right thing on an
	"Any Category" search.

2001-08-14  Jon Trowbridge  <trow@ximian.com>

	* e-search-bar.c (activate_by_subitems): Oops... initial
        suboption_choice should be subitems[0].id, not 0.

svn path=/trunk/; revision=12013
2001-08-14 15:48:39 +00:00
c4d909a366 Workaround for Ximian bug #6795. Will prevent a crash and doesn't seem to
2001-08-14  Peter Williams  <peterw@ximian.com>

	* e-tree-selection-model.c (etsm_selected_count_recurse):
	Workaround for Ximian bug #6795. Will prevent a crash and
	doesn't seem to cause any problems, but the underlying problem
	still exists.

svn path=/trunk/; revision=12010
2001-08-14 14:33:02 +00:00
3baba3b25e Handle GDK_KP_Up and GDK_KP_Down here.
2001-08-14  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-selection-model.c (e_selection_model_key_press):
	Handle GDK_KP_Up and GDK_KP_Down here.

svn path=/trunk/; revision=11997
2001-08-14 08:04:34 +00:00
6d8437d4a9 Handle GDK_KP_Page_Up, GDK_KP_Page_Down, GDK_KP_Right, and GDK_KP_Left
2001-08-14  Christopher James Lahey  <clahey@ximian.com>

	* e-table.c (group_key_press), e-tree.c (item_key_press): Handle
	GDK_KP_Page_Up, GDK_KP_Page_Down, GDK_KP_Right, and GDK_KP_Left
	here.

svn path=/trunk/; revision=11996
2001-08-14 08:03:25 +00:00
d261f1e17b Got rid of event forwarding for double clicks and releases and such and
2001-08-14  Christopher James Lahey  <clahey@ximian.com>

	* e-table-click-to-add.c (etcta_event): Got rid of event
	forwarding for double clicks and releases and such and for single
	clicks except when first creating the row object.

svn path=/trunk/; revision=11993
2001-08-14 06:33:46 +00:00
7796022af8 Oops, we didn't need to unref all of the widgets, just a few.
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* e-search-bar.c (impl_destroy): Oops, we didn't need to unref all
	of the widgets, just a few.

svn path=/trunk/; revision=11907
2001-08-11 00:19:08 +00:00
78544223ad Removed comment about the need to resolve nicknames properly, because we
2001-08-10  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer-hdrs.c (set_recipients): Removed comment about
	the need to resolve nicknames properly, because we now do that.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * e-filter-bar.h: Set the subitems to NULL in the pre-defined
        ESearchBarItems.

        * e-filter-bar.c (rule_editor_clicked): Set the ESearchBarItem's
        subitems to NULL.
        (build_items): Set the ESearchBarItem's subitems to NULL.
        (e_filter_bar_new): Set the ESearchBarItem's subitems to NULL.

        * e-search-bar.c: Added support for subitems, so that a search
        option can key off of another option menu rather than just an
        entry.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/component/addressbook.c: Set the ESearchBarItem
        subitems explicitly to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/cal-search-bar.c: Where we have ESearchBarItems, set their
        subitems to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * folder-browser.c: Set our ESearchBarItems subitems to NULL.

svn path=/trunk/; revision=11904
2001-08-10 22:36:41 +00:00
3e0c7948c3 Don't display the Define Views dialog.
2001-08-10  Christopher James Lahey  <clahey@ximian.com>

	* menus/gal-view-menus.c (build_menus): Don't display the Define
	Views dialog.

svn path=/trunk/; revision=11899
2001-08-10 21:09:42 +00:00
0e5939dc90 last_item_separator shouldn't get reset if the item is hidden.
2001-08-10  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-popup-menu.c (e_popup_menu_create):
	last_item_separator shouldn't get reset if the item is hidden.

svn path=/trunk/; revision=11898
2001-08-10 21:01:27 +00:00
1580b0527c If the sort_info can't group, hide the grouping button and label.
2001-08-10  Christopher James Lahey  <clahey@ximian.com>

	* e-table-config.c (setup_gui): If the sort_info can't group, hide
	the grouping button and label.

	* e-table-header-item.c (ethi_header_context_menu): Removed the
	Group By This Field menu item if the sort_info doesn't support
	grouping.

	* e-table-sort-info.c, e-table-sort-info.h
	(e_table_sort_info_get_can_group,
	e_table_sort_info_set_can_group): Added these functions.

	* e-tree.c (e_tree_set_state_object, et_real_construct): Set
	can_group to FALSE for all our sort infos.
	(e_tree_get_state_object): Fixed a potential gtk_object_ref (NULL)
	here.

svn path=/trunk/; revision=11896
2001-08-10 20:49:24 +00:00
2f81032abc new proto and virtual method
2001-08-10  JP Rosevear  <jpr@ximian.com>

	* gal/widgets/e-canvas-vbox.h: new proto and virtual method

	* gal/widgets/e-canvas-vbox.c (e_canvas_vbox_real_add_item_start):
	adds the the item to the beginning
	(e_canvas_vbox_add_item_start): call the virtual method

2001-08-10  JP Rosevear  <jpr@ximian.com>

	* e-table.c (et_build_groups): add the items to the start or end
	based on where the click to add should be
	(e_table_setup_table): ditto
	(et_real_construct): read additional spec flag

	* e-table.h: new flag

	* e-table-specification.c (etsp_init): init new flag
	(e_table_specification_load_from_node): set click to add end flag
	(e_table_specification_save_to_node): write out flag

	* e-table-specification.h: new flag

svn path=/trunk/; revision=11880
2001-08-10 15:47:18 +00:00
d69a71921a Don't forget to unref stuff here too.
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* e-search-bar.c (impl_destroy): Don't forget to unref stuff here
	too.

	* e-filter-bar.c (destroy): Free all the goodies that we allocate
	at construct time and unref the rule context.
	(class_init): Override the destroy method.

svn path=/trunk/; revision=11871
2001-08-10 05:16:07 +00:00