Commit Graph

334 Commits

Author SHA1 Message Date
2d3e30b912 if we've got focus, set the background of the rect to bg[NORMAL], and the
2003-05-19  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard-label.c (set_colors): if we've got focus,
	set the background of the rect to bg[NORMAL], and the fill color
	of the text and label to text[NORMAL].  This will make the
	background a different color than the canvas, but won't make it
	use the selected background.  fixes #42472

svn path=/trunk/; revision=21262
2003-05-19 18:41:24 +00:00
7535239b99 set the clip_height on reflow so the name of the field is as high as the
2003-05-12  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard-label.c (e_minicard_label_reflow): set
	the clip_height on reflow so the name of the field is as high as
	the field's value.  makes it possible to click anywhere to the
	left of a tall field (like an address) and have it select the
	field.  Fixes #42625.

svn path=/trunk/; revision=21183
2003-05-14 21:56:17 +00:00
16441223ca rename addressbook_destroy to this, and guard against multiple calls.
2003-05-13  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-table-adapter.c (addressbook_dispose):
	rename addressbook_destroy to this, and guard against multiple
	calls.
	(e_addressbook_table_adapter_class_init): GtkObject -> GObject,
	and destroy -> dispose.
	(e_addressbook_table_adapter_init): GtkObject -> GObject.

svn path=/trunk/; revision=21157
2003-05-13 17:49:19 +00:00
acced3219b [ fixes bug #42048 ] button => response. (e_addressbook_view_print):
2003-05-11  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #42048 ]
	* gui/widgets/e-addressbook-view.c (e_contact_print_button):
	button => response.
	(e_addressbook_view_print): connect to "response", not "clicked".

svn path=/trunk/; revision=21145
2003-05-11 21:51:45 +00:00
882658cc42 [ fixes bug #37351 ] the row the signal is called with is already the
2003-04-23  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #37351 ]
	* gui/widgets/e-addressbook-view.c (table_drag_data_get): the row
	the signal is called with is already the model row, not the view
	row, so don't call e_table_view_to_model_row on it.

svn path=/trunk/; revision=20944
2003-04-23 20:34:36 +00:00
c5bab4bb06 [ fixes #7103 ] init style_set. and add the signal.
2003-04-07  Chris Toshok  <toshok@ximian.com>

	[ fixes #7103 ]
	* gui/widgets/e-minicard-label.c (e_minicard_label_class_init):
	init style_set. and add the signal.
	(e_minicard_label_realize): include e_minicard_label_construct's
	code here, and call set_colors after we create the sub-items.
	(e_minicard_label_unrealize): indent, and remove dead code.
	(e_minicard_label_event): indent, and call set_colors instead of
	setting the colors manually.
	(set_colors): new function, set our colors based on the current
	style.
	(e_minicard_label_style_set): new function, just call set_colors.
	(e_minicard_label_new): e_minicard_label_construct doesn't exist
	anymore.

	* gui/widgets/e-minicard-label.h (struct _EMinicardLabelClass):
	add style_set signal.

	* gui/widgets/e-minicard.c (set_selected): little tweaks in the
	coloring.
	(e_minicard_unrealize): reindent, and remove some unused code.

	* gui/widgets/e-minicard-view-widget.h (struct
	_EMinicardViewWidget): add background.

	* gui/widgets/e-minicard-view-widget.c
	(e_minicard_view_widget_class_init): init
	widget_class->style_class.
	(e_minicard_view_widget_style_set): new function, just set the
	background's fill_color_gdk to base[GTK_STATE_NORMAL].
	(e_minicard_view_widget_realize): store off the background canvas
	item so we can set the color later.

svn path=/trunk/; revision=20742
2003-04-08 04:44:58 +00:00
cd41924de3 set "handle_popup" on the field to be TRUE if it's got focus, FALSE if
2003-04-03  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard-label.c (e_minicard_label_event): set
	"handle_popup" on the field to be TRUE if it's got focus, FALSE if
	not.

svn path=/trunk/; revision=20665
2003-04-03 23:32:32 +00:00
53c65079e3 set the im_context on the field's EText. (e_minicard_label_event): remove
2003-04-03  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard-label.c (e_minicard_label_construct): set
	the im_context on the field's EText.
	(e_minicard_label_event): remove a huge swath of #if 0'd code.

svn path=/trunk/; revision=20663
2003-04-03 22:42:02 +00:00
660514490c [ fixes bug #40715 ] add this callback, to unref the book/free the closure
2003-04-03  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #40715 ]
	* gui/merging/e-card-merging.c (final_id_cb): add this callback,
	to unref the book/free the closure after calling the user's
	callback.
	(final_cb): same.
	(doit): use final{_id}_cb
	(cancelit): same.
	(response): don't free the lookup struct here.
	(match_query_callback): same.
	(e_card_merging_book_add_card): ref the book.
	(e_card_merging_book_commit_card): same.

	* gui/component/e-address-popup.c (card_picker_init): make sure to
	set the "text" attribute on the cell renderer so the text actually
	shows up.  also, g_object_connect -> g_signal_connect *sigh*.
	Lastly, get rid of the scrolled window and just make the window
	size to show the text.

	* gui/widgets/e-minicard.c (e_minicard_style_set): only call
	set_selected if we're realized (we create all the canvas objects
	that set_selected manipulates in our realize method.)

svn path=/trunk/; revision=20662
2003-04-03 22:34:55 +00:00
04601125b5 add NONE:OBJECT
2003-04-02  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-marshal.list: add NONE:OBJECT

	* gui/widgets/e-minicard.c (e_minicard_class_init): add style_set
	signal.
	(e_minicard_style_set): just call set_selected with the currently
	selected flag, so we recolor properly.

	* gui/widgets/e-minicard.h (struct _EMinicardClass): add style_set
	signal.

svn path=/trunk/; revision=20651
2003-04-03 01:31:49 +00:00
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
286b4ee484 re-enable in build, include e-destination.h. For #39256.
2003-03-11  Not Zed  <NotZed@Ximian.com>

        * gui/widgets/e-addressbook-util.c (e_addressbook_send_card_list):
        re-enable in build, include e-destination.h.  For #39256.

svn path=/trunk/; revision=20229
2003-03-10 06:40:18 +00:00
4311a1916c Likewise. Likewise. Likewise. Likewise. Likewise. (ebook_create):
* backend/ebook/load-pine-addressbook.c (ebook_create): Likewise.
* backend/ebook/load-gnomecard-addressbook.c (ebook_create): Likewise.
* backend/ebook/evolution-vcard-importer.c (ebook_create): Likewise.
* backend/ebook/evolution-ldif-importer.c (ebook_create): Likewise.
* backend/ebook/test-client.c (get_cursor_cb): Likewise.
(ebook_create): Likewise.
* gui/widgets/e-minicard.c (e_minicard_set_property): Likewise.
(card_modified_cb): Likewise.
(e_minicard_event): Likewise.
* gui/widgets/gal-view-minicard.c (column_width_changed): Likewise.
* gui/widgets/test-minicard-view.c (ebook_create): Likewise.
* gui/widgets/gal-view-treeview.c (column_width_changed): Likewise.

svn path=/trunk/; revision=20203
2003-03-06 17:30:54 +00:00
45e27ae492 (create_minicard_view): No need
to do any reparenting here; the widget is created with no parent.

svn path=/trunk/; revision=20129
2003-03-03 22:20:32 +00:00
f824830018 Build libecontacteditor as an uninstalled shared library.
* gui/contact-editor/Makefile.am: Build libecontacteditor as an
	uninstalled shared library.

	* gui/contact-list-editor/Makefile.am: Likewise for
	libecontactlisteditor

	* gui/merging/Makefile.am: and libecardmerging

	* gui/search/Makefile.am: and libeaddressbooksearch

	* gui/widgets/Makefile.am: and libeminicard

	* printing/Makefile.am: and libecontactprint

	* gui/component/Makefile.am (libevolution_addressbook_la_LIBADD):
	Update for new library names (and get rid of libtool portability
	warnings).

svn path=/trunk/; revision=20112
2003-02-28 21:59:37 +00:00
5597bf794e Remove these from here; talking to the mailer doesn't really belong at the
* backend/ebook/e-card.c (e_card_list_send, e_card_send): Remove
	these from here; talking to the mailer doesn't really belong at
	the libebook level anyway.

	* backend/ebook/Makefile.am: Remove Evolution-Composer CORBA
	stuff, which fixes some linking problems on OS X.

	* gui/widgets/e-addressbook-util.c (e_addressbook_send_card_list,
	e_addressbook_send_card): Move from e-card.c and rename.

	* gui/widgets/Makefile.am: move Evolution-Composer CORBA stuff
	here

	* gui/widgets/e-addressbook-view.c (send_as, send_to,
	e_addressbook_view_send, e_addressbook_view_send_to): Update for
	new function names.

	* gui/contact-list-editor/e-contact-list-editor.c (file_send_as_cb,
	file_send_to_cb): Likewise

	* gui/contact-editor/e-contact-editor.c (file_send_as_cb,
	file_send_to_cb): Likewise

svn path=/trunk/; revision=20103
2003-02-28 18:02:35 +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
986f2ace07 Make libemiscwidgets, libefilterbar, and libetimezonedialog dynamic
libraries, so they can be portably linked into the (shared library)
components. (Part 1 of N.)

svn path=/trunk/; revision=19971
2003-02-20 16:48:43 +00:00
4481f892e1 revert previous change
svn path=/trunk/; revision=19968
2003-02-20 05:38:56 +00:00
2a670b2f86 oops
svn path=/trunk/; revision=19964
2003-02-20 04:11:40 +00:00
a902ec9bad Build the subparts as (noinst) shared libraries rather than static
* gui/component/Makefile.am:
        * gui/contact-editor/Makefile.am:
        * gui/contact-list-editor/Makefile.am:
        * gui/search/Makefile.am:
        * gui/widgets/Makefile.am:
        * printing/Makefile.am: Build the subparts as (noinst) shared
        libraries rather than static libraries, so they can be portably
        linked into libevolution-addressbook.so

svn path=/trunk/; revision=19963
2003-02-20 04:07:28 +00:00
34b7a88245 Make parent_class static.
* gui/widgets/e-addressbook-model.c: Make parent_class static.

        * gui/widgets/e-addressbook-reflow-adapter.c: Likewise

        * gui/widgets/e-addressbook-table-adapter.c: Likewise

svn path=/trunk/; revision=19961
2003-02-20 03:31:12 +00:00
9e048335b6 disconnect search_started and search_result. (addressbook_compare): if
2003-02-16  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-reflow-adapter.c (unlink_model):
	disconnect search_started and search_result.
	(addressbook_compare): if we're loading, just compare model
	positions (so we just append while loading).
	(remove_card): use e_reflow_model_item_removed.
	(search_started): new function, set loading = TRUE.
	(search_result): new function, set loading = FALSE and emit
	"comparison_changed".
	(e_addressbook_reflow_adapter_init): init loading and the new
	signal ids.
	(e_addressbook_reflow_adapter_construct): connect "search_started"
	and "search_result".

	* gui/widgets/e-addressbook-model.h (struct
	_EAddressbookModelClass): add search_started signal.

	* gui/widgets/e-addressbook-model.c
	(e_addressbook_model_class_init): new signal "search_started".
	(book_view_loaded): emit "search_started" after "model_changed".
	(remove_card): simplify this, and use CARD_REMOVED all the time,
	instead of just in the single card case.

svn path=/trunk/; revision=19916
2003-02-17 02:00:32 +00:00
0db95c91b2 [ huge change, all for 1 little performance problem :) fixes #18207 ] use
2003-02-08  Chris Toshok  <toshok@ximian.com>

	[ huge change, all for 1 little performance problem :) fixes #18207 ]
	* gui/widgets/e-addressbook-model.c (get_view): use
	e_book_check_static_capability here to make things a little
	prettier.
	(remove_card): complain about my life, and add code to use one
	"model_changed" signal if we get back a list of cards instead of
	multiple "card_removed" signals.

	* gui/widgets/e-addressbook-model.h: little clean up.

	* gui/widgets/e-addressbook-view.c (delete): write a bulk-remove
	case for this.  if the backend supports it, send all the ids at
	once.  otherwise loop over the ids.
	(e_addressbook_view_delete_selection): fake a CardAndBook
	structure and call delete, instead of duplicating the code in 2
	places.

	* gui/component/addressbook.c (delete_contact_cb): don't call
	e_contact_editor_confirm_delete here, it's handled by the
	EAddressbookView.

	* backend/pas/pas-card-cursor.c (pas_card_cursor_construct): fix a
	compiler warning about a stupid crash.

	* backend/pas/pas-book.h (PASOperation): RemoveCard ->
	RemoveCards.
	(PASRemoveCardsReques): char *id -> GList *ids.
	(PASRequest): PASRemoveCardRequest -> PASRemoveCardsRequest.

	* backend/pas/pas-book.c (pas_book_queue_remove_cards): build up a
	GList from the id sequence.
	(pas_book_respond_remove): notifyCardRemoved ->
	notifyCardsRemoved.
	(impl_GNOME_Evolution_Addressbook_Book_removeCards): rename.
	(pas_book_free_request): free the idlist for RemoveCards.
	(pas_book_class_init): removeCard -> removeCards.

	* backend/pas/pas-book-view.h: change prototype for
	pas_book_view_notify_remove, and add prototype for
	pas_book_view_notify_remove_1.

	* backend/pas/pas-book-view.c (pas_book_view_notify_remove_1):
	build up a list and call pas_book_view_notify_remove.
	(pas_book_view_notify_remove): build up the corba id sequence and
	call BookViewListener::notifyCardsRemoved.

	* backend/pas/pas-backend.h: remove_card -> remove_cards.

	* backend/pas/pas-backend.c (pas_backend_remove_cards): rename
	from _remove_card.
	(process_client_requests): RemoveCard -> RemoveCards and
	_remove_card -> _remove_cards.

	* backend/pas/pas-backend-ldap.c (check_schema_support):
	g_strcasecmp -> g_ascii_strcasecmp.
	(remove_card_handler): _remove => _remove_1.
	(modify_card_modify_handler): same.
	(pas_backend_ldap_process_remove_cards): rename from _remove_card.
	(pas_backend_ldap_class_init): _remove_card -> _remove_cards.

	* backend/pas/pas-backend-file.c (pas_backend_file_class_init):
	remove_card -> remove_cards.
	(pas_backend_file_get_static_capabilities): add "bulk-removes".
	(pas_backend_file_process_remove_cards): rewrite this function
	largely, so that it handles lists of ids.  first we loop through
	and for every successful deletion we build a list of deleted
	ECards.  Then for each view we build a list (a subset of the
	deleted ECard list) and pass back that list to the view.
	(pas_backend_file_process_modify_card): use _remove_1 instead of
	_remove.
	(ecard_matches_search): new function.

	* backend/pas/pas-backend-card-sexp.c
	(pas_backend_card_sexp_match_vcard): rewrite in terms of
	_match_ecard.
	(pas_backend_card_sexp_match_ecard): new function, the guts from
	_match_vcard.

	* backend/pas/pas-backend-card-sexp.h: add prototype for
	pas_backend_card_sexp_match_ecard.

	* backend/idl/addressbook.idl: the card removal stuff now takes
	CardIdList.

	* backend/ebook/e-book.c (e_book_get_static_capabilities): cache
	successful capability queries (since they're static).
	(e_book_check_static_capability): new, convenience function to
	check if a particular capability is supported.
	(e_book_remove_card_by_id): build a single element GList and call
	e_book_remove_cards.
	(e_book_remove_cards): build up a CORBA sequence from the GList
	and call Book::removeCards.
	(e_book_dispose): free the cached capabilities string.

	* backend/ebook/e-book.h: add new prototypes for
	e_book_check_static_capability and e_book_remove_cards.

	* backend/ebook/e-book-view.h (struct _EBookViewClass): rename
	"card_removed" signal to "cards_removed".

	* backend/ebook/e-book-view.c (e_book_view_do_removed_event): id
	-> ids, and free the id list.
	(e_book_view_check_listener_queue): CardRemovedEvent ->
	CardsRemovedEvent.

	* backend/ebook/e-book-view-listener.c
	(e_book_view_listener_queue_response): free the id list.
	(e_book_view_listener_queue_idlist_event): new function, used for
	cards_removed.
	(e_book_view_listener_queue_status_event): id -> ids.
	(e_book_view_listener_queue_sequence_event): same.
	(e_book_view_listener_queue_message_event): same.
	(impl_BookViewListener_notify_cards_removed): call
	queue_idlist_event.
	(e_book_view_listener_dispose): free the id list.
	(e_book_view_listener_class_init): track change to idl call.

	* backend/ebook/e-book-view-listener.h
	(EBookViewListenerOperation): CardRemovedEvent ->
	CardsRemovedEvent.
	(EBookViewListenerResponse): char *id -> GList *ids.

	* backend/ebook/e-book-listener.c
	(impl_BookListener_respond_r

svn path=/trunk/; revision=19854
2003-02-08 09:06:46 +00:00
aeec7106f7 check the status, not the book, and unref the book here.
2003-02-06  Chris Toshok  <toshok@ximian.com>

	* gui/component/e-address-popup.c (email_table_save_card_cb):
	check the status, not the book, and unref the book here.
	(contact_editor_cb): same.
	(start_query): unref the book in the failure case.
	(add_card_idle_cb): addressbook_load_default_book returns void
	now.
	(edit_contact_info_cb): same.
	(e_address_popup_query): same.

	* gui/component/addressbook.c (control_activate_cb): track change
	to addressbook_load_uri return type.
	(set_prop): same.
	(addressbook_load_uri): return type is void now.
	(addressbook_load_default_book): same.

	* gui/component/addressbook.h:
	addressbook_load_uri/addressbook_load_default_book return void
	now.

	* conduit/address-conduit.c (start_addressbook_server):
	e_book_load_default_book returns void now.

	* backend/ebook/e-book-util.h: track changes to return types.

	* backend/ebook/e-book-util.c (e_book_load_address_book_by_uri):
	fallout from change to e_book_load_uri.  return type for this
	function is void now too.
	(e_book_use_address_book_by_uri): same.
	(e_book_use_default_book): same.
	(e_book_load_default_book): same.
	(got_uri_book_cb): if unsuccessful and book is non-NULL, unref it
	here.
	(got_default_book_cb): same.

	* backend/ebook/e-book.c (e_book_load_uri): no longer return a
	gboolean.  any error is communicated to the callback.

	* backend/ebook/e-book.h: e_book_load_uri no longer returns a
	gboolean (it's void.)

	* backend/ebook/evolution-ldif-importer.c (ebook_create): track
	change to the e_book_load_uri family of functions.

	* backend/ebook/test-client-list.c (ebook_create): same.

	* backend/ebook/test-client.c (ebook_create): same.

	* backend/ebook/load-pine-addressbook.c (ebook_create): same.

	* backend/ebook/evolution-vcard-importer.c (ebook_create): same.

svn path=/trunk/; revision=19839
2003-02-07 07:14:34 +00:00
675a9d147a Remove cruft. (gladedir, etspecdir): Remove definitions. (glade_DATA):
* gui/widgets/Makefile.am (INCLUDES): Remove cruft.
	(gladedir, etspecdir): Remove definitions.
	(glade_DATA): Empty, so remove it.

	* gui/widgets/e-addressbook-reflow-adapter.c: #include <string.h>
	(addressbook_get_property): Remove unused variable

	* gui/widgets/e-addressbook-view.c: #include <string.h>
	(get_selection_model): Add a g_return_val_if_reached.

	* gui/widgets/e-minicard.c: #include string.h, gtkmain.h,
	gnome-canvas-pixbuf.h
	(field_changed): s/gtk_object_unref/g_object_unref/
	(get_left_width): Remove unused variable

	* gui/widgets/e-minicard-control.c: #include <string.h>
	(pstream_load, pstream_save): Use g_ascii_strcasecmp

	* gui/widgets/e-minicard-view.c: #include <string.h>

	* gui/widgets/e-minicard-view-widget.c
	(e_minicard_view_widget_new): s/gtk_type_new/g_object_new/

svn path=/trunk/; revision=19784
2003-02-05 23:48:14 +00:00
a5e82f72f8 updated for e scroll frame --> gtk scrolled window
svn path=/trunk/; revision=19736
2003-02-04 19:03:02 +00:00
3cef144c50 [ fixes bug #34898 ] handle modifications to email addresses in contact
2003-01-23  Sean Gao  <Sean.Gao@Sun.COM>

	[ fixes bug #34898 ]
	* gui/widgets/e-minicard.c (field_changed): handle modifications
	to email addresses in contact lists.

svn path=/trunk/; revision=19604
2003-01-23 21:52:42 +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
16b54010c9 applied patch from Frederic Crozat <fcrozat@mandrakesoft.com>
svn path=/trunk/; revision=19540
2003-01-21 17:23:38 +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
e772616c90 fix parameter types here (this signal isn't generated from an ETable.)
2003-01-09  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/gal-view-minicard.c (column_width_changed): fix
	parameter types here (this signal isn't generated from an ETable.)

	* gui/widgets/gal-view-factory-minicard.c: include e-util.h

	* gui/widgets/e-minicard.h: include gnome-canvas.h here.

	* gui/widgets/e-addressbook-table-adapter.c: #include
	e-destination.h here.

	* gui/widgets/e-minicard.c: same.

svn path=/trunk/; revision=19378
2003-01-09 22:09:54 +00:00
1e68876622 oops, don't include e-treeview-selection-model.h unless we're building the
2003-01-08  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-view.c: oops, don't include
	e-treeview-selection-model.h unless we're building the treeview.

svn path=/trunk/; revision=19304
2003-01-09 03:55:45 +00:00
81d8ab193f add E_ADDRESSBOOK_VIEW_TREEVIEW to the enum, ifdef'ed out.
2003-01-08  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-view.h: add
	E_ADDRESSBOOK_VIEW_TREEVIEW to the enum, ifdef'ed out.

	* gui/widgets/e-addressbook-view.c
	(e_addressbook_view_class_init): add ifdefed treeview code.
	(init_collection): same.
	(display_view): same.
	(get_selection_model): same.
	(treeview_row_activated): same.
	(create_treeview_view): same.
	(change_view_type): same.xo
	(e_addressbook_view_print): same.
	(e_addressbook_view_print_preview): same.

	* gui/widgets/Makefile.am: add in the treeview sources (commented
	out).

svn path=/trunk/; revision=19300
2003-01-09 02:40:46 +00:00
5d92db0149 add parent arg.
2003-01-08  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/gal-view-minicard.c (gal_view_minicard_edit): add
	parent arg.

	* gui/widgets/e-addressbook-treeview-adapter.[ch]: new files, for
	a GtkTreeView view of contacts.

	* gui/widgets/gal-view-treeview.[ch]: same

	* gui/widgets/gal-view-favroty-treeview.[ch]: same

svn path=/trunk/; revision=19299
2003-01-09 02:31:46 +00:00
f4f3c71805 $(datadir)/evolution/images instead of $(datadir)/images/evolution.
* gui/component/Makefile.am: $(datadir)/evolution/images instead
of $(datadir)/images/evolution.
* gui/contact-editor/Makefile.am: Likewise.
* gui/contact-list-editor/Makefile.am (iconsdir): Likewise.
* gui/widgets/Makefile.am: Likewise.

svn path=/trunk/; revision=19295
2003-01-08 22:37:24 +00:00
7bd2b9cf14 [ fixes bug #34897 ] don't free the return of e_card_simple_get_const, as
2002-12-17  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #34897 ]
	* gui/widgets/e-addressbook-table-adapter.c
	(addressbook_value_at): don't free the return of
	e_card_simple_get_const, as this causes a double free later on.

svn path=/trunk/; revision=19163
2002-12-19 00:04:04 +00:00
0f56ef44c9 g_string_sprintfa -> g_string_append_printf. (create_alphabet): same.
2002-12-18  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-view.c (jump_to_letters):
	g_string_sprintfa -> g_string_append_printf.
	(create_alphabet): same.
	(create_minicard_view): remove gtk_widget_{push,pop}_visual.

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

svn path=/trunk/; revision=19161
2002-12-18 22:22:15 +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
109dab31b4 #define MINICARD_CONTROL_ID.
svn path=/trunk/; revision=19063
2002-12-09 17:19:36 +00:00
f4f96ef264 connect ::response to gtk_widget_destroy so the dialog goes away.
2002-12-08  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-util.c (e_addressbook_error_dialog):
	connect ::response to gtk_widget_destroy so the dialog goes away.

	* gui/widgets/e-minicard-label.c (e_minicard_label_construct):
	don't use font_gdk anymore on EText.  it doesn't exist.

svn path=/trunk/; revision=19059
2002-12-09 01:04:39 +00:00
cca7f7dd64 this uses pango now. (addressbook_height): same.
2002-12-08  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-reflow-adapter.c (text_height): this
	uses pango now.
	(addressbook_height): same.

svn path=/trunk/; revision=19058
2002-12-09 01:01:38 +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
be82b4b9ec gnomedialog -> gtkdialog stuff. print dialog is a gtkdialog now.
2002-12-02  Not Zed  <NotZed@Ximian.com>

        * gui/widgets/e-addressbook-view.c (e_contact_print_button):
        gnomedialog -> gtkdialog stuff.  print dialog is a gtkdialog now.

        * gui/contact-editor/e-contact-editor.c: include gtkstock.h

2002-11-27  Not Zed  <NotZed@Ximian.com>

        * gui/contact-editor/e-contact-editor-address.c: #include gtkstock.h

svn path=/trunk/; revision=18971
2002-12-02 03:03:50 +00:00
bf795a3e81 the detail is supposed to go after the signal id, not at the end of the
2002-11-29  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard-view-widget.c (column_width_changed): the
	detail is supposed to go after the signal id, not at the end of
	the parameter list.

svn path=/trunk/; revision=18958
2002-11-30 06:19:40 +00:00
8ccc292dd0 remove the button_press_event handler (that did nothing). this makes it so
2002-11-28  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-view.c (create_minicard_view): remove
	the button_press_event handler (that did nothing).  this makes it
	so button presses actually get to the canvas (and therefore we can
	now drag the lines in the reflow widget).

svn path=/trunk/; revision=18954
2002-11-28 22:23:35 +00:00
bbb885a116 add include for gtkstock.h.
2002-11-26  Chris Toshok  <toshok@ximian.com>

	* gui/contact-editor/e-contact-quick-add.c: add include for
	gtkstock.h.

	* gui/contact-list-editor/e-contact-list-model.c
	(e_contact_list_model_add_destination): add pre_change call.
	(e_contact_list_model_remove_row): same.
	(e_contact_list_model_remove_all): same.

	* gui/contact-list-editor/e-contact-list-editor.c
	(e_contact_list_editor_new): ref/sink the contact list editor so
	we don't get the floating unref warning from gtk.

	* gui/contact-editor/e-contact-editor.c (e_contact_editor_new):
	ref/sink the contact editor so we don't get the floating unref
	warning from gtk.
	(e_contact_editor_init): use g_build_filename instead of
	g_concat_dir_and_file.

	* gui/widgets/e-minicard-label.c
	(e_minicard_label_resize_children): use MAX (value, 0) to make
	sure we aren't passing negative values for clip-widths.

	* gui/widgets/e-minicard.c (e_minicard_realize): use MAX (value,
	0) to make sure we aren't passing negative values for widths.

	* gui/contact-editor/e-contact-editor.c (e_contact_editor_init):
	use g_build_filename.

svn path=/trunk/; revision=18946
2002-11-27 06:32:23 +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
1cca1ad87b remove the cast to (int) - column_width is a double.
2002-11-18  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/gal-view-minicard.c (gal_view_minicard_attach):
	remove the cast to (int) - column_width is a double.

	* gui/widgets/e-minicard.c (e_minicard_class_init): the height
	property is only readable, not readwrite.

	* gui/widgets/e-minicard-view-widget.c
	(e_minicard_view_widget_class_init): make column_width a double
	property.
	(e_minicard_view_widget_set_property): don't cast to (int).
	column_width is double in the e-minicard-view.
	(e_minicard_view_widget_realize): same.
	(e_minicard_view_widget_get_property): use g_value_set_double for
	column_width.

svn path=/trunk/; revision=18831
2002-11-19 00:14:40 +00:00