Enlightenment CVS committal Author : rephorm Project : e17 Module : proto
Dir : e17/proto/e_dbus/src/bin Modified Files: notify.c Log Message: update api =================================================================== RCS file: /cvs/e/e17/proto/e_dbus/src/bin/notify.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- notify.c 11 Jul 2007 00:45:13 -0000 1.1 +++ notify.c 11 Jul 2007 00:46:29 -0000 1.2 @@ -8,37 +8,26 @@ { E_Notification_Return_Notify *notify; notify = ret; - printf("id: %d\n", notify->notification_id); + if (notify) { + printf("id: %d\n", notify->notification_id); + } ecore_main_loop_quit(); } int main(int argc, char **argv) { - E_DBus_Connection *conn; int ret = 0; + E_Notification *n; ecore_init(); - e_dbus_init(); - - conn = e_dbus_bus_get(DBUS_BUS_SESSION); - if (conn) + if (e_notification_init()) { - E_Notification *n; - E_Notification_Context *cl; - - cl = malloc(sizeof(E_Notification_Context)); - cl->conn = conn; n = e_notification_full_new("Elicit", 0, "elicit", "Summary", "The <b>body</b>", -1); - e_notification_send(cl, n, cb_sent, NULL); + e_notification_send(n, cb_sent, NULL); ecore_main_loop_begin(); - } - else - { - printf("Error: could not connect to session bus.\n"); - ret = 1; + e_notification_shutdown(); } - e_dbus_shutdown(); ecore_shutdown(); return ret; } ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs