diff options
author | Chris Toshok <toshok@helixcode.com> | 2001-01-10 07:08:08 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-01-10 07:08:08 +0800 |
commit | 289cbd41bc8c3bdfe417f3c78e5061bbed07dcfb (patch) | |
tree | e08629bc6de08c1bb1411e65963c757338aafd0d /addressbook/gui/widgets/e-addressbook-view.c | |
parent | 70fe2fd985176bdcf7c8fcc433f0b640f2b52432 (diff) | |
download | gsoc2013-evolution-289cbd41bc8c3bdfe417f3c78e5061bbed07dcfb.tar gsoc2013-evolution-289cbd41bc8c3bdfe417f3c78e5061bbed07dcfb.tar.gz gsoc2013-evolution-289cbd41bc8c3bdfe417f3c78e5061bbed07dcfb.tar.bz2 gsoc2013-evolution-289cbd41bc8c3bdfe417f3c78e5061bbed07dcfb.tar.lz gsoc2013-evolution-289cbd41bc8c3bdfe417f3c78e5061bbed07dcfb.tar.xz gsoc2013-evolution-289cbd41bc8c3bdfe417f3c78e5061bbed07dcfb.tar.zst gsoc2013-evolution-289cbd41bc8c3bdfe417f3c78e5061bbed07dcfb.zip |
register our status_message signal. (status_message): new function, emit
2001-01-09 Chris Toshok <toshok@helixcode.com>
* gui/widgets/e-minicard-view-widget.c
(e_minicard_view_widget_class_init): register our status_message
signal.
(status_message): new function, emit our status_message signal.
(e_minicard_view_widget_realize): connect to the EMinicardView's
status_message signal.
* gui/widgets/e-minicard-view-widget.h: add status_message signal.
* gui/widgets/e-minicard-view.c (e_minicard_view_class_init):
register our status_message signal.
(e_minicard_view_init): init status_message_id.
(status_message): new function, emit our status_message signal.
(book_view_loaded): connect to the EBookView's status_message
signal.
(disconnect_signals): disconnect status_message_id.
* gui/widgets/e-minicard-view.h: add status_mesage_id, and
status_message signal.
* gui/widgets/e-addressbook-model.c (status_message): new
function, emit our status_message.
(e_addressbook_model_class_init): register our "status_message"
signal.
(book_view_loaded): connect to the EBookView's status_message
signal, so we can chain it to our parent.
(e_addressbook_model_init): init status_message_id.
(remove_book_view): disconnect status_message_id.
* gui/widgets/e-addressbook-model.h: add status_message_id, and
status_message signal.
* backend/pas/pas-backend-ldap.c change the objectclass we create
objects with to "inetOrgPerson" as it encompasses the fields we
use.
(create_dn_from_ecard): remove the mail/org handling from
here. we just prepend cn=$cn onto the base dn.
(create_card_handler): remove the NULL that build_mods_from_ecards
adds at the end, and insert our objectClass.
(modify_card_handler): call search_for_dn to get the ECardSimple
of the old card, since it might (and does in the current code)
doing a brute force search.
(search_for_dn): new function, to search for an entry by its dn.
right now we brute force (objectclass=*) under the base dn and
compare dn's. going to add a first pass that explodes the dn and
searches that way, using (objectclass=*) as a last resort. also,
here's where we'd put the extensibleMatch code if we want to go
that route.
* backend/ebook/e-card.c (e_card_set_arg): if we're setting the
full name regenerate ecard->name.
svn path=/trunk/; revision=7345
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-view.c')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-view.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c index 816c83ca36..416b1e71e6 100644 --- a/addressbook/gui/widgets/e-addressbook-view.c +++ b/addressbook/gui/widgets/e-addressbook-view.c @@ -152,8 +152,9 @@ e_addressbook_view_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) switch (arg_id){ case ARG_BOOK: - if (eav->book) + if (eav->book) { gtk_object_unref(GTK_OBJECT(eav->book)); + } if (GTK_VALUE_OBJECT(*arg)) { eav->book = E_BOOK(GTK_VALUE_OBJECT(*arg)); gtk_object_ref(GTK_OBJECT(eav->book)); @@ -534,6 +535,12 @@ table_right_click(ETableScrolled *table, gint row, gint col, GdkEvent *event, EA return FALSE; } +static void +status_message (GtkObject *object, const gchar *message, EAddressbookView *eav) +{ + printf ("status = %s\n", message); +} + #define SPEC "<?xml version=\"1.0\"?> \ <ETableSpecification click-to-add=\"true\" draw-grid=\"true\" _click-to-add-message=\"* Click here to add a contact *\"> \ <ETableColumn model_col= \"0\" _title=\"Name\" expansion=\"1.0\" minimum_width=\"20\" resizable=\"true\" cell=\"string\" compare=\"string\"/> \ @@ -641,6 +648,11 @@ change_view_type (EAddressbookView *view, EAddressbookViewType view_type) view->view_type = view_type; + gtk_signal_connect (view->object, + "status_message", + GTK_SIGNAL_FUNC (status_message), + view); + gtk_object_set(view->object, "query", view->query, "book", view->book, |