diff options
author | Christian Hammond <chipx86@chipx86.com> | 2006-01-21 04:49:43 +0000 |
---|---|---|
committer | Christian Hammond <chipx86@chipx86.com> | 2006-01-21 04:49:43 +0000 |
commit | 9b1b095cafca5acfde3030490ea73b613a4f9725 (patch) | |
tree | d0e2afc50da8ba7a8e532861e06c2cdd34b4d321 | |
parent | 2676d3aa8b0ce0caafdecf45c17cf2e7ca6305b6 (diff) | |
download | libnotify-9b1b095cafca5acfde3030490ea73b613a4f9725.tar.gz |
Some small code cleanups.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libnotify/notify.c | 23 |
2 files changed, 9 insertions, 19 deletions
@@ -1,3 +1,8 @@ +Fri Jan 20 20:49:31 PST 2006 Christian Hammond <chipx86@chipx86.com> + + * libnotify/notify.c: + - Some small code cleanups. + Fri Jan 20 02:19:29 PST 2006 Christian Hammond <chipx86@chipx86.com> * libnotify/notification.c: diff --git a/libnotify/notify.c b/libnotify/notify.c index b09bace..489a7e0 100644 --- a/libnotify/notify.c +++ b/libnotify/notify.c @@ -47,22 +47,6 @@ static DBusGProxy *_proxy = NULL; # define format_func #endif -#if 0 -static void format_func -print_error(char *message, ...) -{ - char buf[1024]; - va_list args; - - va_start(args, message); - vsnprintf(buf, sizeof(buf), message, args); - va_end(args); - - fprintf(stderr, "%s(%d): libnotify: %s", - (getenv("_") ? getenv("_") : ""), getpid(), buf); -} -#endif - gboolean notify_init(const char *app_name) { @@ -75,7 +59,6 @@ notify_init(const char *app_name) _app_name = g_strdup(app_name); g_type_init(); - dbus_g_type_specialized_init(); #ifdef HAVE_ATEXIT atexit(notify_uninit); @@ -95,14 +78,16 @@ notify_get_app_name(void) void notify_uninit(void) { - if (_app_name != NULL) { g_free(_app_name); _app_name = NULL; } - /* TODO: keep track of all notifications and destroy them here? */ + /* + * TODO: Keep track of all notifications and destroy them here? + * Definitely all notifications that don't expire. + */ } gboolean |