Re: [evolution-patches] Fix the lack of message reading signal in new mail notify plugin
- From: Not Zed <notzed ximian com>
- To: Miguel Angel López Hernández <miguel gulev org mx>
- Cc: evolution-patches lists ximian com
- Subject: Re: [evolution-patches] Fix the lack of message reading signal in new mail notify plugin
- Date: Wed, 12 Jan 2005 16:53:54 +0800
You should copy all the common code into a single function, you have a lot of duplication here (all the comments are wrong for starters).
Perhaps something like
send_dbus_message(const char *message_name, ...);
where .. are just the DBUS_TYPE things, assuming there is a dbus_message_append_args type function which takes a va_list.
Then your callbacks become one-liners to the function which does the work.
And also note that gconf_client_get_default() returns a ref'd object you need to unref after you're finished with it.
Cheers,
Michael
On Wed, 2005-01-12 at 00:38 -0600, Miguel Angel López Hernández wrote:
Hi,
This patch fix the lack of a D-BUS signal when a message reading event
is fired, this allow the apps to know when the user starts reading their
mail.
Greetings,
Miguel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]