summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2005-12-13 22:16:51 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2005-12-13 22:16:51 +0000
commit9c670744bd64d76de33d6f272c411e6a279b3b33 (patch)
tree754a77a622164e54817bb8d472caff5519f92fcf
parentaaf003b59080b8eb70758a4e86408d622e114a00 (diff)
downloadlibnotify-0.3.0.tar.gz
- must have just checked in the src directory0.3.0
here is the rest
-rw-r--r--ChangeLog17
-rw-r--r--tests/test-basic.c4
-rw-r--r--tests/test-multi-actions.c6
3 files changed, 22 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 90d4050..c90910e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+Fri Dec 09 2005 John (J5) Palmieri <johnp@redhat.com>
+
+ * libnotify/notifymarshal.[c|h]: new files where GLib callback
+ marshalers are added
+
+ * libnotify/notifynotification.c (notify_notifiaction_init): Add a
+ marshaller for signals with uint, string parameters
+ (_gslist_to_string_array): new internal method that coverts
+ a GSList to a NULL terminated array of strings
+ (_notify_notification_show_internal): send the actions list as an
+ array of strings, not a GSList which does not work with the bindings
+
+ * libnotify/Makefile.am: notifymarshal.[c|h] added
+
+ * tests/test-multi-actions.c: working example of using actions
+
+
Fri Dec 02 2005 John (J5) Palmieri <johnp@redhat.com>
* libnotify/notifynotification.c (notify_notification_add_action):
diff --git a/tests/test-basic.c b/tests/test-basic.c
index cc2b83d..4599b08 100644
--- a/tests/test-basic.c
+++ b/tests/test-basic.c
@@ -29,11 +29,11 @@ int main() {
notify_init("Basics");
n = notify_notification_new ("Summary",
- "Content that is very long 8374983278r32j4 rhjjfh dw8f 43jhf 8ds7 ur2389f jdbjkt h8924yf jkdbjkt 892hjfiHER98HEJIF BDSJHF hjdhF JKLH 890YRHEJHFU 89HRJKSHFJ YE8UI HR3UIH89EFHIUEUF9DHFUIBuiew f89hsajiJ FHJKDSKJFH SDJKFH KJASDFJK HKJADSHFK JSAHF89WE HUIIUG JG kjG JKGJGHJg JHG H J HJGJHDG HJKJG hgd hgjhf df h3eui fusidyaiu rh f98ehkrnm e8rv9y 43heh vijdhjkewdkjsjfjk sdhkjf hdkj fadskj hfkjdsh",
+ "Content that is very long 8374983278r32j4 rhjjfh dw8f 43jhf 8ds7 ur2389f jdbjkt h8924yf jkdbjkt 892hjfiHER98HEJIF BDSJHF hjdhF JKLH 890YRHEJHFU 89HRJKSHdd dddd ddddd dddd ddddd dddd ddddd dddd dddd ddd ddd dddd Fdd d ddddd dddddddd ddddddddhjkewdkjsjfjk sdhkjf hdkj dadasdadsa adsd asd sd saasd fadskfkhsjf hsdkhfkshfjkhsd kjfhsjdkhfj ksdhfkjshkjfsd sadhfjkhaskd jfhsdajkfhkjs dhfkjsdhfkjs adhjkfhasdkj fhdsakjhfjk asdhkjkfhd akfjshjfsk afhjkasdhf jkhsdaj hf kjsdfahkfh sakjhfksdah kfdashkjf ksdahfj shdjdh",
NULL, NULL);
notify_notification_set_timeout (n, 3000); //3 seconds
- if (!notify_notification_show (n, NULL)) {
+ if (!notify_notification_show_and_forget (n, NULL)) {
fprintf(stderr, "failed to send notification\n");
return 1;
}
diff --git a/tests/test-multi-actions.c b/tests/test-multi-actions.c
index 95519bc..5a4ed7b 100644
--- a/tests/test-multi-actions.c
+++ b/tests/test-multi-actions.c
@@ -35,7 +35,7 @@
GMainLoop *loop;
-static void help_callback(NotifyNotification *n, const char *action, void *user_data)
+static void help_callback(NotifyNotification *n, const char *action)
{
assert( action != NULL );
assert( strcmp (action, "help") == 0 );
@@ -47,7 +47,7 @@ static void help_callback(NotifyNotification *n, const char *action, void *user_
g_main_loop_quit(loop);
}
-static void ignore_callback(NotifyNotification *n, const char *action, void *user_data)
+static void ignore_callback(NotifyNotification *n, const char *action)
{
assert( action != NULL );
assert( strcmp (action, "ignore") == 0 );
@@ -60,7 +60,7 @@ static void ignore_callback(NotifyNotification *n, const char *action, void *use
}
-static void empty_callback(NotifyNotification *n, const char *action, void *user_data)
+static void empty_callback(NotifyNotification *n, const char *action)
{
assert( action != NULL );
assert( strcmp (action, "empty") == 0 );