[Galago-commits] r2371 - in trunk/libnotify-ng: . tests

galago-commits at freedesktop.org galago-commits at freedesktop.org
Tue Dec 13 14:16:55 PST 2005


Author: johnp
Date: 2005-12-13 14:16:51 -0800 (Tue, 13 Dec 2005)
New Revision: 2371

Modified:
   trunk/libnotify-ng/ChangeLog
   trunk/libnotify-ng/tests/test-basic.c
   trunk/libnotify-ng/tests/test-multi-actions.c
Log:
- must have just checked in the src directory
  here is the rest


Modified: trunk/libnotify-ng/ChangeLog
===================================================================
--- trunk/libnotify-ng/ChangeLog	2005-12-12 22:28:31 UTC (rev 2370)
+++ trunk/libnotify-ng/ChangeLog	2005-12-13 22:16:51 UTC (rev 2371)
@@ -1,3 +1,20 @@
+Fri Dec 09 2005  John (J5) Palmieri <johnp at 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 at redhat.com>
 
 	* libnotify/notifynotification.c (notify_notification_add_action):

Modified: trunk/libnotify-ng/tests/test-basic.c
===================================================================
--- trunk/libnotify-ng/tests/test-basic.c	2005-12-12 22:28:31 UTC (rev 2370)
+++ trunk/libnotify-ng/tests/test-basic.c	2005-12-13 22:16:51 UTC (rev 2371)
@@ -29,11 +29,11 @@
 	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;
 	}

Modified: trunk/libnotify-ng/tests/test-multi-actions.c
===================================================================
--- trunk/libnotify-ng/tests/test-multi-actions.c	2005-12-12 22:28:31 UTC (rev 2370)
+++ trunk/libnotify-ng/tests/test-multi-actions.c	2005-12-13 22:16:51 UTC (rev 2371)
@@ -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 @@
 	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 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 );



More information about the galago-commits mailing list