Enlightenment CVS committal
Author : rephorm
Project : e17
Module : proto
Dir : e17/proto/e_dbus/src/lib/notification
Modified Files:
E_Notify.h e_notify_private.h notification.c
Log Message:
add notification_{id,closed}_{get,set}
===================================================================
RCS file: /cvs/e/e17/proto/e_dbus/src/lib/notification/E_Notify.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- E_Notify.h 11 Jul 2007 00:46:13 -0000 1.6
+++ E_Notify.h 11 Jul 2007 00:48:25 -0000 1.7
@@ -114,20 +114,24 @@
int expire_timeout);
/* notification mutators */
+void e_notification_id_set(E_Notification *note, unsigned int id);
void e_notification_app_name_set(E_Notification *n, const char *app_name);
void e_notification_app_icon_set(E_Notification *n, const char *app_icon);
void e_notification_summary_set(E_Notification *n, const char *summary);
void e_notification_body_set(E_Notification *n, const char *body);
void e_notification_replaces_id_set(E_Notification *n, int replaces_id);
void e_notification_timeout_set(E_Notification *n, int timeout);
+void e_notification_closed_set(E_Notification *note, unsigned char closed);
/* notification accessors */
+unsigned int e_notification_id_get(E_Notification *note);
const char *e_notification_app_name_get(E_Notification *n);
const char *e_notification_app_icon_get(E_Notification *n);
const char *e_notification_summary_get(E_Notification *n);
const char *e_notification_body_get(E_Notification *n);
-int e_notification_timeout_get(E_Notification *note);
int e_notification_replaces_id_get(E_Notification *note);
+int e_notification_timeout_get(E_Notification *note);
+unsigned char e_notification_closed_get(E_Notification *note);
/* actions */
void e_notification_action_add(E_Notification *n, const char *action_id, const
char *action_name);
===================================================================
RCS file: /cvs/e/e17/proto/e_dbus/src/lib/notification/e_notify_private.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_notify_private.h 11 Jul 2007 00:47:19 -0000 1.3
+++ e_notify_private.h 11 Jul 2007 00:48:25 -0000 1.4
@@ -73,6 +73,7 @@
} hints;
int hint_flags;
+ unsigned char closed;
int refcount;
};
===================================================================
RCS file: /cvs/e/e17/proto/e_dbus/src/lib/notification/notification.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- notification.c 11 Jul 2007 00:46:13 -0000 1.4
+++ notification.c 11 Jul 2007 00:48:25 -0000 1.5
@@ -64,7 +64,7 @@
if (n->summary) free(n->summary);
if (n->body) free(n->body);
- ecore_list_destroy(n->actions);
+ if (n->actions) ecore_list_destroy(n->actions);
if (n->hints.category) free(n->hints.category);
if (n->hints.desktop) free(n->hints.desktop);
@@ -74,6 +74,11 @@
}
/* mutators */
+void
+e_notification_id_set(E_Notification *note, unsigned int id)
+{
+ note->id = id;
+}
void
e_notification_app_name_set(E_Notification *note, const char *app_name)
@@ -128,8 +133,19 @@
note->expire_timeout = timeout;
}
+void
+e_notification_closed_set(E_Notification *note, unsigned char closed)
+{
+ note->closed = closed;
+}
+
/* accessors */
+unsigned int
+e_notification_id_get(E_Notification *note)
+{
+ return note->id;
+}
const char *
e_notification_app_name_get(E_Notification *note)
@@ -171,6 +187,12 @@
e_notification_timeout_get(E_Notification *note)
{
return note->expire_timeout;
+}
+
+unsigned char
+e_notification_closed_get(E_Notification *note)
+{
+ return note->closed;
}
/***** actions *****/
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs