Contact Lookup Applet 0.8

Version 0.8 of the Contact Lookup Applet is available from here, and a Debian package for experimental is in the queue. This release is dedicated to Jeff Waugh, as his pimping of contact-lookup-applet at the Canonical conference inspired me to work on it a bit more.

09:28 Wednesday, 25 Aug 2004 [#] [computers] (17 comments)

Posted by Jobartim at Wed Aug 25 10:03:20 2004:
Some screenshots of what the changes looks like ?

What about it's integration in the gnome-applets package and in gnome 2.8 ?
Posted by Ross at Wed Aug 25 10:06:36 2004:
I knew I forgot something...

Updated.
Posted by Michi at Wed Aug 25 10:47:54 2004:
What program does the "Send Instant Message" button use? ICQ accounts are shown but the botton is grayed out...
Posted by Ross at Wed Aug 25 10:49:30 2004:
None, there is no IM client I know of which can start a conversion sanely.  gaim's interface isn't good enough and Gossip doesn't support it.

This is pre-1.0 code remember. :)
Posted by pHilipp at Wed Aug 25 13:12:33 2004:
I'd like the applet to take up less space. A possibility to hide the text entry while it's not focused or something similar would be great.
Posted by anon at Wed Aug 25 13:22:30 2004:
Since you are indulging in a bit of blurring out stuff why did you leave your postcode? Although I doubt anybody will turn up at your house isn't a postcode unique to a small number of houses, so basically you are giving your street name but not the number.
Posted by Ross at Wed Aug 25 13:25:02 2004:
It's about 100 houses, so I didn't really see the point.  A phone book will tell you not only my phone number but also the full address...
Posted by Kevin at Fri Aug 27 00:05:51 2004:
I love the changes you've made since the last release.

I've been having a problem. If the applet is loaded and gnome-panel is restarted (by logging out then in or with the kill command) the applet starts but is insensitive although the "Search your address book" tooltip is set. I have a single address book, "Personal." I've found that if I create another one while the applet is insensitive then switch address books using its preferences the applet becomes usuable again. Removing and then readding the applet also fixes the problem.
Posted by Bruno Rodrigues at Fri Aug 27 16:24:47 2004:
Some suggestions:

URL is an URL, you should click on it and avoid that "GO" button.

Don't use drop-downs for IM and email. Just show every value like you do for phone numbers. I wouldn't like to have to open the dropdown to see all email contacts.

IM and Email are also URI's, so you just need to click on them and you can avoid the other Send/Compose buttons.

That way you can move IM and Email and make them aligned with the other values.

regards
Posted by Zoltan Horvath at Mon Aug 30 13:25:39 2004:
Tip:
in contact-lookup-applet.c
(...)
evo_lookup_applet_new (...)

update_widgets (applet, TRUE);

It solves insensitivity problem.
I've no patch, please try.
Posted by Kevin at Thu Sep 2 03:26:14 2004:
Thanks for the tip Zoltan. This does solve the insensitivity problem but the applet produces an error for all entered text in the entry box. It states that the name cannot be found. :(
Posted by alexis at Thu Sep 2 15:34:23 2004:
A very nice applet. Have you thought about integrating gnome-phone-manager (http://usefulinc.com/software/phonemgr/) for sms?
Posted by Ross at Thu Sep 2 15:41:37 2004:
alexis -- yes, Edd and myself are friends and we have Grand Plans.
Posted by Zoltan at Fri Sep 3 13:32:59 2004:
Kevin --

Yes, when applet is started EBook is not loaded.


Add a new function:

static void
evo_lookup_init_book (PanelApplet parent_applet, EvoLookupApplet applet)
{
  const char *xml;
  ESource *source;
  GConfClient *client;

  client = applet->gconf_client;
  xml = panel_applet_gconf_get_string (parent_applet, "source", NULL);
  g_return_if_fail (xml != NULL);
  source = e_source_new_from_standalone_xml (xml);

  if (!applet->book || e_book_get_uri (applet->book)) {
  GError *error = NULL;
  EBook  *book = NULL;

  /* Ignoring any errors here */
  if (applet->book) {
  g_object_unref (applet->book);
  applet->book = NULL;
  }

  if ((book = e_book_new (source, &error)) == NULL) {
  gchar *err_msg = g_strdup_printf ("Unable to open address book: %s", error->message);
 
  /* TODO handle this better */
  set_tooltip (applet, err_msg);
  g_warning (err_msg);
 
  g_free (err_msg);
  g_error_free (error);
  } else {
  applet->book = book;
  }
  }

  if (applet->book)
  e_book_async_open(applet->book, TRUE, (EBookCallback)book_opened_cb, applet);


}

and at the and of evo_applet_new():

...
if (s == NULL) {
  /* Fire the prefs callback */
  prefs_cb (NULL, applet, NULL);
  } else {
  /* load book */ 
  evo_lookup_init_book (parent_applet, applet);
  g_free (s);
  }

  return TRUE;
...

Sorry about the post i'm not familiar with gtk+/evo/panel. It's just a modified copy of Gconf entry callback function. I hope it's usable so.
Posted by Ross at Fri Sep 3 13:34:35 2004:
Urgh, that fix surely isn't required.  I'll try fixing this later.
Posted by Zoltan at Fri Sep 3 13:34:53 2004:
evo_lookup_init_book (PanelApplet * parent_applet, EvoLookupApplet * applet)
Sorry.
Posted by Kevin at Sat Sep 4 08:12:39 2004:
thanks zoltan. i'll give this a try. can't wait for the next release

Name:


E-mail:


URL:


Add 5 and 3 (required):


Comment: