- must have just checked in the src directory
here is the rest
This commit is contained in:
parent
aaf003b590
commit
9c670744bd
17
ChangeLog
17
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):
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue