[Galago-commits] r2456 - in trunk/libnotify: . libnotify
galago-commits at freedesktop.org
galago-commits at freedesktop.org
Fri Jan 20 20:49:46 PST 2006
Author: chipx86
Date: 2006-01-20 20:49:43 -0800 (Fri, 20 Jan 2006)
New Revision: 2456
Modified:
trunk/libnotify/ChangeLog
trunk/libnotify/libnotify/notify.c
Log:
Some small code cleanups.
Modified: trunk/libnotify/ChangeLog
===================================================================
--- trunk/libnotify/ChangeLog 2006-01-20 10:23:55 UTC (rev 2455)
+++ trunk/libnotify/ChangeLog 2006-01-21 04:49:43 UTC (rev 2456)
@@ -1,3 +1,8 @@
+Fri Jan 20 20:49:31 PST 2006 Christian Hammond <chipx86 at chipx86.com>
+
+ * libnotify/notify.c:
+ - Some small code cleanups.
+
Fri Jan 20 02:19:29 PST 2006 Christian Hammond <chipx86 at chipx86.com>
* libnotify/notification.c:
Modified: trunk/libnotify/libnotify/notify.c
===================================================================
--- trunk/libnotify/libnotify/notify.c 2006-01-20 10:23:55 UTC (rev 2455)
+++ trunk/libnotify/libnotify/notify.c 2006-01-21 04:49:43 UTC (rev 2456)
@@ -47,22 +47,6 @@
# 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 @@
_app_name = g_strdup(app_name);
g_type_init();
- dbus_g_type_specialized_init();
#ifdef HAVE_ATEXIT
atexit(notify_uninit);
@@ -95,14 +78,16 @@
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
More information about the galago-commits
mailing list