Commit Graph

287 Commits

Author SHA1 Message Date
a66943ec82 [ fixes bug #32113 ] add include_email arg to e_destination_get_textrep.
2003-03-23  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #32113 ]
	* backend/ebook/e-destination.h: add include_email arg to
	e_destination_get_textrep.

	* backend/ebook/e-destination.c (e_destination_get_textrep): add
	include_email arg.  if it's TRUE, and if there's an email address to
	add

	* gui/contact-list-editor/e-contact-list-model.c
	(contact_list_value_at): use e_destination_get_textrep so we don't
	display QP text, and pass TRUE for include_email.

	* gui/widgets/e-minicard.c (add_field): same.
	(remodel): same.

	* gui/widgets/e-addressbook-treeview-adapter.c (adapter_get_value): same.

	* gui/widgets/e-addressbook-table-adapter.c (addressbook_value_at): same.

	* gui/component/select-names/e-select-names-text-model.c
	(e_select_names_text_model_insert_length): pass FALSE for
	include_email.

	* gui/component/select-names/e-select-names-model.c
	(e_select_names_model_get_textification): pass FALSE for
	include_email.
	(e_select_names_model_get_string): same.
	(e_select_names_model_replace): same.
	(e_select_names_model_name_pos): same.
	(e_select_names_model_text_pos): same.

svn path=/trunk/; revision=20467
2003-03-23 09:18:04 +00:00
30231895d1 up the column count by one for the underline.
2003-03-18  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-table-model.c
	(e_select_names_table_model_col_count): up the column count by one
	for the underline.
	(e_select_names_table_model_value_at): add handling for underline.

svn path=/trunk/; revision=20355
2003-03-19 05:26:18 +00:00
8c2719b4b5 use alternating-row-colors="false"
2003-03-18  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-section.etspec: use
	alternating-row-colors="false"

	* gui/component/select-names/e-select-names.h: nuke prototypes for
	e_select_names_get_source/section.

	* gui/component/select-names/e-select-names.c (set_book): remove
	the signal disconnect from here.
	(addressbook_model_set_uri): same.
	(e_select_names_init): connect to the search_result signal on the
	addressbook model.
	(e_select_names_child_free): disconnect the changed_id signal.
	(e_select_names_add_section): set the underline column so the
	recipient tables look like they did when they were EEntry.
	(e_select_names_add_section): store off the changed_id.
	(e_select_names_get_section): nuke.
	(e_select_names_get_source): nuke.

svn path=/trunk/; revision=20345
2003-03-18 20:42:41 +00:00
ef8e2ea6e2 disconnect/keep track of search result signal id. (e_select_names_init):
2003-03-18  Not Zed  <NotZed@Ximian.com>

        * gui/component/select-names/e-select-names.c (set_book,
        addressbook_model_set_uri): disconnect/keep track of search result
        signal id.
        (e_select_names_init): Keep track of various signals, particularly
        status signal.
        (e_select_names_dispose): disconnect from any signals that are
        still active.  Fixes crash for #38202.

svn path=/trunk/; revision=20334
2003-03-18 08:51:31 +00:00
b1df789b25 [ fixes bug #20210 ] change "Edit Contact Info" to "View Contact Info", as
2003-03-12  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #20210 ]
	* gui/component/select-names/e-select-names-popup.c
	(popup_menu_card): change "Edit Contact Info" to "View Contact
	Info", as you can't always edit the contact (if the book is read
	only).
	(popup_menu_list): same, but for a contact list.

svn path=/trunk/; revision=20270
2003-03-13 05:51:36 +00:00
bdad58fc5f [ fixes bug #39507 ] new function, sync the models after we do a search.
2003-03-11  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #39507 ]
	* gui/component/select-names/e-select-names.c (search_result): new
	function, sync the models after we do a search.
	(addressbook_model_set_uri): connect to search_result.

svn path=/trunk/; revision=20260
2003-03-12 06:46:38 +00:00
e5b1a49030 fix compiler warnings about deprecated functions.
2003-03-11  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names.c
	(e_select_names_init): fix compiler warnings about deprecated
	functions.
	(e_select_names_child_free): unref the table model.
	(remove_address): re-enable.
	(section_right_click_cb): this is an ETable callback now.
	(e_select_names_add_section): remove a gross gross awful hack, and
	make the recipient tables ETables instead EEntry's.  We lose the
	nice underlining, but we can add that back in as another ETable
	style (like strikeout and bold), and we also fix the longstanding
	scrolling problems (like bug #25148) and can finally remove
	addresses by double clicking on them (which is also a bug
	someplace I think.. dunno the # offhand.)

	* gui/component/select-names/e-select-names-table-model.c
	(clear_info): always set the count to -1, regardless of what
	model->data is.

	* gui/component/select-names/e-select-names-model.c: remove some
	unused enums.

	* gui/component/select-names/Makefile.am (etspec_DATA): add
	e-select-names-section.etspec

	* gui/component/select-names/e-select-names-section.etspec: new
	file, spec for the To:/Cc:/Bcc: etable's in the select-names
	dialog.

svn path=/trunk/; revision=20259
2003-03-12 03:19:13 +00:00
896ab49a3c Fixes #37881
2003-03-04  JP Rosevear  <jpr@ximian.com>

 	Fixes #37881

 	* gui/component/select-names/e-simple-card-bonobo.c
 	(impl_SimpleCard_get): if we get a null value, send back the empty
 	string

svn path=/trunk/; revision=20159
2003-03-04 22:20:54 +00:00
c1e2563e39 reflect prior column addition
2003-03-04  JP Rosevear  <jpr@ximian.com>

 	* gui/component/select-names/e-select-names.etspec: reflect prior
column addition

 	* gui/component/select-names/e-select-names-bonobo.c
 	(entry_get_property_fn): set the arg properly

 	*
gui/component/select-names/Evolution-Addressbook-SelectNames.idl:
 	add Icscalendar to field list

 	* backend/pas/pas-backend-ldap.c: add icscalendar to prop list

 	* backend/ebook/e-card.h: add icscalendar data member

 	* backend/ebook/e-card.c: add icscalendar to list and its parse
 	routine
 	(e_card_get_vobject): add icscalendar prop value
 	(parse_icscalendar): parse routine
 	(e_card_class_init): add icscalendar arg
 	(e_card_destroy): destroy icscalendar member
 	(e_card_set_arg): set icscalendar
 	(e_card_init): init icscalendar
 	(e_card_get_arg): return icscalendar

 	* backend/ebook/e-card-simple.c (field_data): add icscalendar

 	* backend/ebook/e-card-simple.h: ditto

svn path=/trunk/; revision=20153
2003-03-04 22:00:57 +00:00
53457a7366 (e_select_names_new): Don't set the "modal" property through
g_object_new().
(e_select_names_init): Explictly make the dialog modal here.

svn path=/trunk/; revision=20131
2003-03-03 22:50:31 +00:00
8ddb619ad0 (e_select_names_init): Instead of using gtk_widget_unparent(),
remove the widget from the container using gtk_container_remove().
This fixes a bunch of crashers in all the places using the
ESelectNames widget/control.

svn path=/trunk/; revision=20127
2003-03-03 22:10:44 +00:00
9abf82080c use g_signal_connect here, not swapped... although since we pass the
2003-02-27  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook.c (book_open_cb): use g_signal_connect
	here, not swapped... although since we pass the widget as the
	closure it really doesn't matter.
	(load_uri_auth_cb): use a GtkDialog here.
	(search_result): same.

	* gui/component/select-names/e-simple-card-bonobo.h: add prototype
	for e_simple_card_bonobo_construct to fix warning.

	* gui/widgets/e-addressbook-view.c (create_alphabet): remove call
	to gtk_widget_set_usize.

	* gui/contact-editor/e-contact-editor-address.c
	(e_contact_editor_address_init): gtk_window_set_policy =>
	gtk_window_set_resizable.

	* gui/contact-editor/e-contact-editor-fullname.c
	(e_contact_editor_fullname_init): same.

svn path=/trunk/; revision=20095
2003-02-27 23:06:58 +00:00
d40f089a70 Make libversit a shared library, update stuff for that, and clean up
some LDADDs in the process

svn path=/trunk/; revision=19994
2003-02-21 21:24:34 +00:00
c879655ace if we can complete solely from our cached cards, call
2003-02-17  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-completion.c
	(e_select_names_completion_start_query): if we can complete solely
	from our cached cards, call e_completion_end_search from here when
	we're done.

svn path=/trunk/; revision=19925
2003-02-17 21:02:06 +00:00
8c40386245 indent properly.
2003-02-16  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-manager.c
	(e_select_names_manager_entry_new): indent properly.

svn path=/trunk/; revision=19919
2003-02-17 03:16:43 +00:00
29d288066b gone. (match_initials): gone. (book_query_sexp): remove the primary
2003-02-09  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-completion.c
	(sexp_initials): gone.
	(match_initials): gone.
	(book_query_sexp): remove the primary handling.
	(book_query_score): same.

	* backend/ebook/e-card.c (e_card_set_property):
	g_value_get_pointer => g_value_get_object for "category_list".

	* backend/ebook/e-book.c (struct _EBookPrivate): add a comment.

	* backend/pas/pas-backend-ldap.c (func_beginswith): performance at
	the cost of a tiny bit of correctness.  If the ldap server doesn't
	support evolutionPerson don't query on fileAs, use sn (since
	that's effectively what gets used in the display when fileAs isn't
	supported.)

svn path=/trunk/; revision=19863
2003-02-10 06:21:12 +00:00
0c46add40d lots of changes here. should be a big performance gain. god i hope this is
2003-02-09  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-completion.c: lots of
	changes here.  should be a big performance gain.  god i hope this
	is finally right.

svn path=/trunk/; revision=19860
2003-02-10 02:23:36 +00:00
292e7184f6 Use different tmp file names so these rules can be executed in parallel
* backend/ebook/Makefile.am (e-book-marshal.c, e-book-marshal.h):
Use different tmp file names so these rules can be executed in
parallel without interfering with each otehr.

* backend/pas/Makefile.am: Make the ORBit compilation work
properly with parallel makes (i.e. make sure it does not spawn
multiple orbit-idl processes on the same IDL file at the same
time).
* gui/component/select-names/Makefile.am: Likewise.
* backend/ebook/Makefile.am: Likewise.

svn path=/trunk/; revision=19834
2003-02-06 23:24:45 +00:00
0873dd0b65 Remove cruft. (serverdir, gladedir, etspecdir): Remove definitions
* gui/component/select-names/Makefile.am (INCLUDES): Remove cruft.
	(serverdir, gladedir, etspecdir): Remove definitions

	* gui/component/select-names/e-select-names.c: #include <string.h>

	* gui/component/select-names/e-select-names-popup.c
	(init_html_mail): Remove deprecated
	gtk_check_menu_item_set_show_toggle call.

	* gui/component/select-names/e-select-names-manager.c
	(e_select_names_manager_entry_free):
	s/gtk_timeout_remove/g_source_remove/

svn path=/trunk/; revision=19785
2003-02-05 23:48:38 +00:00
9c3b7cbe49 Define componentdir instead of COMPONENT_DIR. Set it to
* configure.in (idldir): Define componentdir instead of
COMPONENT_DIR.  Set it to $privlibdir/components instead of
$libdir/evolution-$(BASE_VERSION)/components.

* gui/component/select-names/Makefile.am (componentdir): Remove
definition; no need to set it here since it's now defined in
configure.in
* gui/component/Makefile.am (componentdir): Likewise.

* gui/Makefile.am (componentdir): Removed definition; this is now
defined in configure.in.

* Makefile.am (componentdir): Removed definition; this is now
defined in configure.in.

* Makefile.am (componentdir): Removed definition; this is now
defined in configure.in.

svn path=/trunk/; revision=19588
2003-01-23 17:47:06 +00:00
e8c9adced8 Version using $(BASE_VERSION). (etspecdir): Likewise. (iconsdir):
* gui/component/select-names/Makefile.am (gladedir): Version using
$(BASE_VERSION).
(etspecdir): Likewise.
(iconsdir): Likewise.

* gui/contact-list-editor/Makefile.am (iconsdir): Version using
$(BASE_VERSION).
(gladedir): Likewise.

* gui/merging/Makefile.am (gladedir): Version using $(BASE_VERSION).

* gui/search/Makefile.am (ruledir): Version using $(BASE_VERSION).

* gui/component/Makefile.am (INCLUDES): Update EVOLUTION_IMAGESDIR
to be versioned through $(BASE_VERSION).

* gui/widgets/e-addressbook-view.c (init_collection): Use
EVOLUTION_GALVIEWSDIR.

* gui/widgets/Makefile.am (INCLUDES): Define EVOLUTION_GALVIEWSDIR
and update EVOLUTION_IMAGESDIR.

svn path=/trunk/; revision=19551
2003-01-22 20:06:06 +00:00
ef10039e71 Change dialog from Yes/No/Cancel to Discard/Cancel/Save to match the HIG.
* gui/widgets/e-addressbook-util.c
(e_addressbook_prompt_save_dialog): Change dialog from
Yes/No/Cancel to Discard/Cancel/Save to match the HIG.

* gui/search/e-addressbook-search-dialog.c
(e_addressbook_search_dialog_init): Change dialog from OK/Cancel
to Cancel/OK to match the HIG.

* gui/contact-editor/e-contact-save-as.c (file_exists): Change
dialog from Overwrite/Cancel to Cancel/Overwrite to match the HIG.

* gui/contact-editor/e-contact-quick-add.c
(build_quick_add_dialog): Fix typo s/reponse/response/.  Also
change the dialog to be Edit/Cancel/OK instead of OK/Edit/Cancel
to match the HIG.

* gui/contact-editor/e-contact-editor.c
(e_contact_editor_confirm_delete): Make alert cancel/delete
instead of delete/cancel to match the HIG.

* gui/contact-editor/e-contact-editor-fullname.c
(e_contact_editor_fullname_init): Make dialog Cancel/OK instead of
OK/Cancel to match the HIG.

* gui/contact-editor/e-contact-editor-address.c
(e_contact_editor_address_init): Make dialog Cancel/OK instead of
OK/Cancel to match the HIG.

* gui/component/select-names/e-select-names.c
(e_select_names_init): Make dialog Cancel/OK instead of OK/Cancel
to match the HIG.

svn path=/trunk/; revision=19472
2003-01-14 22:50:53 +00:00
d589c6974e #include gtklabel.h, fixes an unresolved symbol.
2003-01-09  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-popup.c: #include
	gtklabel.h, fixes an unresolved symbol.

svn path=/trunk/; revision=19387
2003-01-10 01:57:50 +00:00
fd67bd851b call e_select_names_bonobo_construct on the newly created object.
2003-01-09  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-bonobo.c
	(e_select_names_bonobo_new): call e_select_names_bonobo_construct
	on the newly created object.

svn path=/trunk/; revision=19384
2003-01-10 01:06:44 +00:00
52bf62c822 comment out the factory oaf_server, and change the location of the
2003-01-09  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/GNOME_Evolution_Addressbook_SelectNames.server.in.in:
	comment out the factory oaf_server, and change the location of the
	SelectNames controls to be
	OAFIID:GNOME_Evolution_Addressbook_Factory so the normal
	addressbook.so will create them.

	* gui/component/select-names/Makefile.am
	(libeselectnames_la_SOURCES): remove the
	e-select-names-factory.[ch] stuff for the time being.

	* gui/component/component-factory.c (factory): we're now (for the
	time being) the factory for the select names control.

svn path=/trunk/; revision=19369
2003-01-09 19:17:01 +00:00
b4c4834eaa remove idldir definition. (It's defined in configure.in now)
* Makefile.am: remove idldir definition. (It's defined in
	configure.in now)

svn path=/trunk/; revision=19242
2003-01-06 14:19:06 +00:00
176ee17667 [ fixes the non-ui portion of #36183 ] use the entry's
2003-01-01  Chris Toshok  <toshok@ximian.com>

	[ fixes the non-ui portion of #36183 ]
	* gui/component/select-names/e-select-names-completion.c
	(e_select_names_completion_start_query): use the entry's
	minimum_query_length instead of a constant here.
	(e_select_names_completion_set_minimum_query_length): new
	function, set the entry's minimum_query_length.

	* gui/component/select-names/e-select-names-manager.c
	(e_select_names_manager_entry_new): set the minimum_query length
	after setting the completion books.
	(read_completion_settings_from_db): rename
	read_completion_books_from_db to this, and read the
	minimum_query_length too.
	(db_listener): rename uris_listener to this, and listen for
	changes on both the uris and minimum_query_length settings.

	* gui/component/select-names/e-select-names-completion.h: add
	prototype for e_select_names_completion_set_minimum_query_length.

	* gui/component/select-names/e-select-names-manager.h: add
	minimum_query_length to struct _ESelectNamesManager.

svn path=/trunk/; revision=19199
2003-01-01 21:15:18 +00:00
ace402d917 drop use of "font" arg. (get_left_width): use pango to calculate this
2002-12-18  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard.c (e_minicard_realize): drop use of
	"font" arg.
	(get_left_width): use pango to calculate this instead of a GdkFont.

	* gui/widgets/e-minicard-view.c: drop include of e-unicode.h.

	* gui/widgets/e-minicard-label.c (e_minicard_label_construct):
	don't need to create the font anymore.

	* gui/search/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED.

	* gui/search/e-addressbook-search-dialog.c
	(e_addressbook_search_dialog_new): use g_object_new instead of
	gtk_type_new.

	* gui/merging/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED.

	* gui/contact-list-editor/Makefile.am (INCLUDES): add
	-D*_DISABLE_DEPRECATED.

	* gui/contact-list-editor/e-contact-list-editor.c (is_named):
	strdup (or not, if we don't need to save the value) instead of
	using the e_utf8 functions.
	(fill_in_info): same.

	* gui/contact-editor/Makefile.am (INCLUDES): add
	-D*_DISABLE_DEPRECATED.

	* gui/contact-editor/e-contact-save-as.c (e_contact_save_as):
	strdup (or not, if we don't need to save the value) instead of
	using the e_utf8 functions.
	(e_contact_list_save_as): same.

	* gui/contact-editor/e-contact-quick-add.c (clicked_cb): strdup
	(or not, if we don't need to save the value) instead of using the
	e_utf8 functions.
	(build_quick_add_dialog): same.

	* gui/contact-editor/e-contact-editor.c (phone_entry_changed):
	strdup (or not, if we don't need to save the value) instead of
	using the e_utf8 functions.
	(file_as_set_style): same.
	(name_entry_changed): same.
	(full_name_clicked): same.
	(categories_clicked): same.
	(set_field): same.
	(fill_in_field): same.
	(fill_in_single_field): same.
	(extract_field): same.
	(extract_single_field): same.

	* gui/contact-editor/e-contact-editor-fullname.c (extract_field):
	just strdup, it's already utf8.

	* gui/contact-editor/e-contact-editor-address.c (extract_field):
	they're all entries, use GTK_ENTRY foo here.

	* gui/component/select-names/Makefile.am (INCLUDES): add
	-D*_DISABLE_DEPRECATED.

	* gui/component/select-names/e-select-names.c
	(e_select_names_add_section): remove the extra
	utf8_from_locale_string stuff.

	* gui/component/select-names/e-select-names-popup.c
	(set_uiinfo_label): gtk_container_children ->
	gtk_container_get_children, and remove the extra utf8 stuff.

	* gui/component/Makefile.am (INCLUDES): add
	-D*_DISABLE_DEPRECATED.

	* gui/component/addressbook-storage.c
	(addressbook_storage_init_source_uri): g_string_sprintfa ->
	g_string_append_printf.

	* gui/component/addressbook-config.c (focus_help):
	gtk_notebook_set_page -> gtk_notebook_set_current_page.
	(addressbook_source_dialog_set_source): same.
	(auth_optionmenu_activated): gtk_container_children ->
	gtk_container_get_children.
	(ssl_optionmenu_activated): same.
	(ssl_optionmenu_selected): same, and gtk_notebook_set_page ->
	gtk_notebook_set_current_page.
	(scope_optionmenu_activated): same.
	(set_advanced_button_state): same.
	(addressbook_ldap_init): hook "response" to gtk_widget_destroy to
	make the dialog go away when clicked.
	(addressbook_ldap_auth): same.
	(addressbook_root_dse_query): same.
	(do_ldap_root_dse_query): same.
	(addressbook_config_control_new): fix return type and cast.
	(main): remove call to gtk_widget_push_visual.

	* gui/component/addressbook-config.h:
	addressbook_config_control_new returns a BonoboObject, not a
	BonoboControl.

	* gui/component/addressbook.c: remove e-unicode.h include.

	* backend/pas/Makefile.am (INCLUDES): Add
	-DLIBGNOME_DISABLE_DEPRECATED.

	* backend/ebook/Makefile.am (INCLUDES): Add
	-DLIBGNOME_DISABLE_DEPRECATED.

	* backend/ebook/e-card.c (e_card_get_property): remove misleading
	comment.

svn path=/trunk/; revision=19160
2002-12-18 22:11:28 +00:00
e446a3dd9f oops, use strcmp, not !strcmp here.
2002-12-17  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-manager.c
	(uris_listener): oops, use strcmp, not !strcmp here.

svn path=/trunk/; revision=19149
2002-12-17 18:27:22 +00:00
37751b5ece #include <string.h>.
* gui/component/e-cardlist-model.c: #include <string.h>.

* gui/component/addressbook-storage.c: #include <string.h>,
<ctype.h>, <unistd.h>.

* gui/component/addressbook-factory.c: Removed.

* gui/component/addressbook-component.c: #include
<bonobo/bonobo-main.h>, <unistd.h> and <string.h>.
(create_view): addressbook_new_control() instead of
addressbook_factory_new_control().

* gui/component/select-names/e-select-names.c
(e_addressbook_create_ebook_table): Removed unused variable.
(e_select_names_add_section): Removed unused variable.

* gui/component/select-names/e-select-names-manager.c
(focus_in_cb): Use g_source_remove() here instead of
gtk_timeout_remove().

* gui/widgets/e-minicard-control.c
(e_minicard_control_factory_init): Removed.
(e_minicard_control_control_factory): Removed.
(e_minicard_control_new): New.

* gui/component/e-address-widget.c
(e_address_widget_factory_init): Removed.
(e_address_widget_new_control): Renamed from
e_address_widget_factory_new_control(), made public.
(e_address_widget_factory): Removed.

* gui/component/e-address-popup.c (e_address_popup_new_control):
New.
(e_address_popup_factory_new_control): Removed.
(e_address_popup_factory): Removed.
(e_address_popup_factory_init): Removed.

* gui/component/addressbook-config.c
(addressbook_config_register_factory): Removed.
(addressbook_config_create_control): New.

* gui/component/addressbook-component.c
(addressbook_component_factory_init): Removed.
(addressbook_component_get_object): New.
(owner_set_cb): Do not call addressbok_config_register_factory().

* gui/component/addressbook.c (addressbook_factory_init): Removed.
(addressbook_new_control): Renamed from
addressbook_factory_new_control().

svn path=/trunk/; revision=19041
2002-12-06 17:29:59 +00:00
58c180fef9 Use collate for sorting rather than the normal string sort. This fixes bug
2002-12-05  Jeffrey Stedfast  <fejj@ximian.com>

	* gui/component/select-names/e-select-names.etspec: Use collate
	for sorting rather than the normal string sort. This fixes bug
	#26335 without causing bug #33933 :-)

svn path=/trunk/; revision=19015
2002-12-05 18:40:05 +00:00
212786c3e4 [ roll forward from 1.2 branch, partial fix for #31763 ] add the Find
2002-11-28  Chris Toshok  <toshok@ximian.com>
	[ roll forward from 1.2 branch, partial fix for #31763 ]
	* gui/component/select-names/select-names.glade: add the Find
	button back in.

svn path=/trunk/; revision=18956
2002-11-28 22:34:06 +00:00
fd57ebebf4 remove redundant setting of y2.
2002-11-26  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard.c (e_minicard_reflow): remove redundant
	setting of y2.

	* gui/contact-list-editor/e-contact-list-editor.c
	(e_contact_list_editor_init): show the table.

	* gui/component/select-names/e-select-names-completion.c: remove
	an unnecessary #include.

	* gui/component/addressbook-storage.c (addressbook_storage_setup):
	use g_build_filename.

	* gui/component/addressbook-component.c (remove_folder): use
	g_build_filename.
	(add_creatable_item): same.
	(ensure_completion_uris_exist): same, and use the right gconf
	paths for completion uris.

svn path=/trunk/; revision=18940
2002-11-27 02:39:19 +00:00
83a54e15a9 use new schema for completion/uris. (uris_listener): same.
2002-11-26  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-manager.c
	(read_completion_books_from_db): use new schema for
	completion/uris.
	(uris_listener): same.

	* gui/component/select-names/e-select-names.h: Convert to
	GtkDialog from GnomeDialog.

	* gui/component/select-names/e-select-names.c: Convert to
	GtkDialog from GnomeDialog.
	(folder_selected): use new schema for last_used_uri.
	(e_select_names_init): same.
	(e_select_names_set_default): use pango markup to set
	bold/not-bold.
	(e_select_names_add_section): don't bother creating an EEntry, we
	can use pango and a normal label.  This also keeps us from
	wrapping "contacts ->" at the '-'.

	* gui/component/apps_evolution_addressbook.schemas: new file.

	* gui/component/Makefile.am: add the schema stuff.

svn path=/trunk/; revision=18939
2002-11-27 02:10:21 +00:00
a218e07d52 ignore server.in
svn path=/trunk/; revision=18917
2002-11-26 06:05:03 +00:00
86a5d1bf73 Pass type to bonobo_ctonrol_set_property, and also NULL terminate the
2002-11-21  Not Zed  <NotZed@Ximian.com>

        * gui/component/select-names/e-select-names-bonobo.c
        (entry_changed): Pass type to bonobo_ctonrol_set_property, and
        also NULL terminate the valist.

        * gui/component/select-names/e-select-names-text-model.c
        (changed_cb): Fix signature for signal.

svn path=/trunk/; revision=18871
2002-11-20 23:41:35 +00:00
b86382d56d gui/component/select-names/GNOME_Evolution_Addressbook_SelectNames.server.
* gui/component/select-names/GNOME_Evolution_Addressbook_SelectNames.server.in.in,
* gui/component/select-names/Makefile.am: Same changes as below
for the SelectNames component.

svn path=/trunk/; revision=18845
2002-11-19 21:28:39 +00:00
a645910fc8 show the custom table.
2002-11-18  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names.c
	(e_select_names_init): show the custom table.

svn path=/trunk/; revision=18834
2002-11-19 01:52:05 +00:00
be6e6ee964 oops, missed some "oaf"'s.
2002-11-17  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/Makefile.am (servers_DATA): oops,
	missed some "oaf"'s.

svn path=/trunk/; revision=18817
2002-11-18 08:29:07 +00:00
a47eb7a9a1 Added rule to generate GNOME_Evolution_Addressbook.server.in from
* gui/component/Makefile.am: Added rule to generate
GNOME_Evolution_Addressbook.server.in from
GNOME_Evolution_Addressbook.server.in.in, substituting
@LIBEXECDIR@.

* GNOME_Evolution_Addressbook.server.in.in: Renamed from
GNOME_Evolution_Addressbook.server.in.  Added @LIBEXECDIR@ before
the location of the executable.

* gui/component/select-names/select-names.glade: Ported to Glade
2.

* gui/component/select-names/recipient.glade: Ported to Glade 2.

svn path=/trunk/; revision=18794
2002-11-15 22:13:52 +00:00
7d53a155c8 push_in = FALSE, no clue why... :) (_arrow_pressed): call
2002-11-12  Chris Toshok  <toshok@ximian.com>

	* gui/contact-editor/e-contact-editor.c (_popup_position): push_in
	= FALSE, no clue why... :)
	(_arrow_pressed): call g_signal_stop_emission here, seems to fix
	things.

	* gui/component/select-names/e-select-names.c
	(e_select_names_init): fix warnings.

	* gui/component/select-names/e-select-names-manager.c
	(e_select_names_manager_activate_dialog): fix warning.

	* gui/component/addressbook.c (forget_passwords_cb): remove the
	PENDING_PORT ifdef.
	(load_uri_auth_cb): same.
	(addressbook_authenticate): same.

	* gui/component/addressbook-factory.c (main): same.

	* gui/component/addressbook-storage.c (load_source_data): be
	silent about text nodes if they contain nothing but whitespace.

svn path=/trunk/; revision=18728
2002-11-13 02:14:32 +00:00
d7aee7e7ed change signature to that of a weak ref notify function. (main): ::destroy
2002-11-11  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/test-reflow.c (destroy_callback): change signature
	to that of a weak ref notify function.
	(main): ::destroy -> weak_ref.

	* gui/widgets/test-minicard.c (destroy_callback): change signature
	to that of a weak ref notify function.
	(main): ::destroy -> weak_ref.

	* gui/widgets/test-minicard-view.c (destroy_callback): change
	signature to that of a weak ref notify function.
	(main): ::destroy -> weak_ref.

	* gui/widgets/test-minicard-label.c (destroy_callback): change
	signature to that of a weak ref notify function.
	(main): ::destroy -> weak_ref.

	* gui/widgets/e-minicard-widget.c (e_minicard_widget_init): ifdef
	out the call to gnome_canvas_set_scroll_region.  It doesn't seem
	necessary judging from the rest of the code, and it also crashes
	the addressbook if it's in.

	* gui/widgets/e-minicard-widget-test.c (destroy_callback): change
	signature to that of a weak ref notify function.
	(main): ::destroy -> weak_ref.

	* gui/widgets/e-minicard-control.c (free_struct): change signature
	to that of a weak ref notify function.
	(e_minicard_control_factory): ::destroy -> weak_ref.

	* gui/widgets/e-addressbook-view.c (e_addressbook_view_init):
	::destroy -> weak_ref.
	(e_addressbook_view_print): same.
	(free_closure): change signature to that of a weak ref notify
	function.
	(e_contact_print_destroy): same.
	(invisible_destroyed): same.

	* gui/widgets/e-addressbook-util.c
	(e_addressbook_prompt_save_dialog): convert from GnomeDialog to
	GtkDialog.
	(e_addressbook_show_multiple_cards): same.

	* gui/contact-list-editor/e-contact-list-editor.c
	(prompt_to_save_changes): change response ids to use
	GTK_RESPONSE_.

	* gui/component/select-names/e-select-names-manager.c
	(clear_widget): new function.
	(e_select_names_manager_activate_dialog): ::destroy -> weak_ref.

	* gui/component/select-names/e-select-names.c (clear_widget):
	change signature to that of a weak ref notify function.
	(e_select_names_init): ::destroy -> weak_ref.

	* gui/component/e-address-popup.c (mini_wizard_destroy_cb): change
	signature to that of a weak ref notify function.
	(mini_wizard_new): ::destroy -> weak_ref.

	* gui/component/addressbook-config.c
	(addressbook_source_dialog_destroy): change signature to that of a
	weak ref notify function.
	(ldap_config_control_destroy_callback): same.
	(addressbook_add_server_druid): ::destroy -> weak_ref.
	(addressbook_edit_server_dialog): same.
	(ldap_config_control_new): same.

	* gui/component/addressbook.c (destroy_callback): change signature
	to that of a a weak ref notify function.
	(addressbook_factory_new_control): ::destroy -> weak_ref.

	* gui/merging/e-card-merging.c (response): rename clicked to this,
	and destroy the dialog here.
	(match_query_callback): ::clicked -> ::response

	* gui/merging/e-card-merging-book-commit-duplicate-detected.glade:
	convert.

	* gui/merging/e-card-duplicate-detected.glade: same.

svn path=/trunk/; revision=18719
2002-11-12 04:01:10 +00:00
0b1546202c parent class is GObjectClass.
2002-11-08  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-model.h: parent class
	is GObjectClass.

	* gui/component/select-names/e-simple-card-bonobo.c
	(impl_dispose): guard against multiple invocations, and chain
	dispose.

	* gui/component/select-names/e-select-names.c
	(e_select_names_dispose): guard against multiple invocations.

	* gui/component/select-names/e-select-names-text-model.c
	(e_select_names_text_model_dispose): guard against multiple
	invocations.
	(e_select_names_text_model_set_source): fix casts.

	* gui/component/select-names/e-select-names-table-model.c
	(e_select_names_table_model_add_source): remove the GTK_OBJECT
	cast, fixes a warning.
	(clear_info): guard against multiple invocations from ::dispose.

	* gui/component/select-names/e-select-names-manager.c
	(e_select_names_manager_dispose): same.

	* gui/component/select-names/e-select-names-completion.c
	(e_select_names_completion_dispose): same.

	* gui/component/select-names/e-select-names-bonobo.c
	(impl_dispose): guard against multiple invocations.

svn path=/trunk/; revision=18681
2002-11-09 03:11:33 +00:00
afd87cea9a prepend /apps/Evolution to config db paths.
2002-11-08  Chris Toshok  <toshok@ximian.com>

	* backend/ebook/e-book-util.c
	(set_default_book_uri_from_config_db): prepend /apps/Evolution to
	config db paths.

	* gui/component/select-names/e-select-names-manager.c (read_completion_books_from_db): same.
	(uris_listener): same.

svn path=/trunk/; revision=18664
2002-11-08 09:35:05 +00:00
98a6157975 more porting work.
2002-11-07  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-bonobo.[ch]: more
	porting work.

	* gui/component/select-names/e-select-names-completion.[ch]: more
	porting work.

	* gui/component/select-names/e-select-names-manager.[ch]: more
	porting work.

	* gui/component/select-names/e-select-names-model.[ch]: more
	porting work.

	* gui/component/select-names/e-select-names-popup.c: more
	porting work.

	* gui/component/select-names/e-select-names-table-model.[ch]: more
	porting work.

	* gui/component/select-names/e-select-names-text-model.[ch]: more
	porting work.

	* gui/component/select-names/e-select-names.[ch]: more
	porting work.

svn path=/trunk/; revision=18657
2002-11-08 06:20:11 +00:00
4e57b96f83 Port to GObject/gnome2.
2002-11-05  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-simple-card-bonobo.[ch]: Port to
	GObject/gnome2.

	* gui/component/select-names/e-select-names.[ch]: Port to
	GObject/gnome2.

	* gui/component/select-names/e-select-names-text-model.c: Port to
	GObject/gnome2.

	* gui/component/select-names/e-select-names-table-model.c: Port to
	GObject/gnome2.

	* gui/component/select-names/e-select-names-popup.[ch]: Port to
	GObject/gnome2.

	* gui/component/select-names/e-select-names-model.c: Port to
	GObject/gnome2.

	* gui/component/select-names/e-select-names-manager.[ch]: Port to
	GObject/gnome2.

	* gui/component/select-names/e-select-names-factory.c: Port to
	GObject/gnome2.

	* gui/component/select-names/e-select-names-completion.[ch]: Port
	to GObject/gnome2.

	* gui/component/select-names/e-select-names-bonobo.[ch]: Port to
	GObject/gnome2.

	* gui/component/select-names/Makefile.am: typical port stuff.  add
	marshaller generation foo, dist it, and switch the .oaf to .server

	* gui/component/select-names/.cvsignore: ignore the marshaller
	stuff.

svn path=/trunk/; revision=18587
2002-11-06 08:08:16 +00:00
253ba0c94e Set /Addressbook/select_names_uri in the configdb to the selected folder.
* gui/component/select-names/e-select-names.c
	(folder_selected): Set /Addressbook/select_names_uri in the
	configdb to the selected folder.
	(e_select_names_init): Look for /Addressbook/select_names_uri
	before /DefaultFolders/contacts_uri for the initial folder. So the
	select names dialog now starts up using the same folder you used
	last time, which is useful when you have an LDAP company directory
	(which can't be your default contacts folder because it's
	read-only).

svn path=/trunk/; revision=18416
2002-10-23 15:16:30 +00:00
f2a3913ffe [ Fix #7094, #7064, #7095, #31944, #31945 ] Hook up new etspec file.
2002-10-10  Kjartan Maraas  <kmaraas@gnome.org>

	[ Fix #7094, #7064, #7095, #31944, #31945 ]
	* gui/component/Makefile.am: Hook up new etspec file.
	* gui/component/addressbook-config.c: Remove ETable spec.
	* gui/component/addressbook-config.etspec: New file.
	* gui/component/ldap-config.glade: Fix typo.
	* gui/component/select-names/e-select-names.c: Remove inline spec.
	* gui/component/select-names/e-select-names.etspec: New file.
	* gui/contact-list-editor/Makefile.am: Hook up etspec.
	* gui/contact-list-editor/e-contact-list-editor.c: Remove inline spec.
	* gui/contact-list-editor/e-contact-list-editor.etspec: New file.
	* gui/widgets/Makefile.am: Hook up new spec.
	* gui/widgets/e-addressbook-view.c: Remove inline spec.
	* gui/widgets/e-addressbook-view.etspec: New file.

svn path=/trunk/; revision=18361
2002-10-09 23:03:04 +00:00
deac52b20c free adapter->priv.
2002-09-23  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-table-adapter.c (addressbook_destroy):
	free adapter->priv.

	* gui/widgets/e-addressbook-model.c (addressbook_destroy): free
	model->query.

	* gui/component/select-names/e-select-names-manager.c
	(load_completion_books): use e_book_expand_uri here, and free the
	expanded uri after calling addressbook_load_uri, plugging a leak.

	* gui/component/select-names/e-select-names.c (set_book): unref
	esn->model before we unref esn.  fixes an edge case memory
	corruption bug.
	(clear_widget): utility function to set a widget's ref to NULL
	when it's destroyed.
	(e_select_names_init): hook the status_message, categories option
	menu, and select_entry to clear_widget.
	(addressbook_model_set_uri): use e_book_expand_uri.

svn path=/trunk/; revision=18292
2002-10-02 06:14:29 +00:00
521b129893 Rename "ldap-contacts" to "contacts/ldap" and add "contacts/public".
* gui/component/addressbook-component.c (folder_types): Rename
	"ldap-contacts" to "contacts/ldap" and add "contacts/public".
	(IS_CONTACT_TYPE): update for new types.

	* gui/component/select-names/e-select-names.c
	(e_select_names_init): Use "contacts/*" for selector_types.

	* gui/widgets/e-addressbook-util.c (e_addressbook_transfer_cards):
	Likewise.

	* gui/component/GNOME_Evolution_Addressbook.oaf.in: add
	"evolution:config_item:type" = "contacts/ldap" to the LDAP sources
	control so it comes up by default when you open Preferences in an
	LDAP folder.

svn path=/trunk/; revision=18221
2002-09-25 21:40:49 +00:00