![]() |
2012-06-05
, 04:16
|
Posts: 138 |
Thanked: 80 times |
Joined on Apr 2012
|
#161
|
![]() |
2012-06-05
, 04:21
|
|
Posts: 1,396 |
Thanked: 2,796 times |
Joined on Sep 2010
@ Caracas, Venezuela
|
#162
|
scropius .... may be something here for u chek this link http://makergeek.co.uk/2010/05/22/n9...s-from-python/
The Following User Says Thank You to Scorpius For This Useful Post: | ||
![]() |
2012-06-05
, 04:25
|
Posts: 138 |
Thanked: 80 times |
Joined on Apr 2012
|
#163
|
![]() |
2012-06-05
, 05:02
|
|
Posts: 1,396 |
Thanked: 2,796 times |
Joined on Sep 2010
@ Caracas, Venezuela
|
#164
|
n = notify_notification_new(summary,body,"icon",NULL); g_object_set (G_OBJECT (n),"id", 0, NULL);
n = myList.value(key); g_object_set (G_OBJECT (n),"id", 0, NULL); /* Set the number of new notifications */ notify_notification_set_hint_int32 (n,"amount", myList.length()); notify_notification_update(n,new_summary,new_body,"icon");
The Following 10 Users Say Thank You to Scorpius For This Useful Post: | ||
![]() |
2012-06-05
, 05:26
|
Posts: 189 |
Thanked: 171 times |
Joined on Jul 2011
|
#165
|
OK I think I got it, and this is why I hate the lack of documentation of Maemo, or actually, how broken it is. It's such a nice OS, and it could have been so powerful, but it was always in the wrong hands, and Nokia haven't released the whole code yet.
So here it is for all the developers out there that tried to stack notifications and never could and wondered why, and this is why: All the notifications have to have ID = 0 to be stacked. For them I hope they can find this through Google.
And no, there's no function to set the ID of a notification. How can you do it? like this:
That's the first notification. You have to keep your list of notifications of course. When you want to update it, you retreive it from your list and have to do it again:Code:n = notify_notification_new(summary,body,"icon",NULL); g_object_set (G_OBJECT (n),"id", 0, NULL);
To show the notification you have to use notify_notification_show after that as usual.Code:n = myList.value(key); g_object_set (G_OBJECT (n),"id", 0, NULL); /* Set the number of new notifications */ notify_notification_set_hint_int32 (n,"amount", myList.length()); notify_notification_update(n,new_summary,new_body,"icon");
And if you're wondering how I found out the g_object_set (G_OBJECT (notification),"id", 0, NULL); ???
Well I had to read half of the hildon source code for that
The Following User Says Thank You to pablocrossa For This Useful Post: | ||
![]() |
2012-06-05
, 06:06
|
Posts: 66 |
Thanked: 13 times |
Joined on May 2012
@ Netherlands
|
#166
|
![]() |
2012-06-05
, 06:07
|
Posts: 81 |
Thanked: 10 times |
Joined on May 2010
@ Germany
|
#167
|
![]() |
2012-06-05
, 06:17
|
Posts: 7 |
Thanked: 0 times |
Joined on Jun 2012
|
#168
|
![]() |
2012-06-05
, 06:20
|
|
Posts: 1,396 |
Thanked: 2,796 times |
Joined on Sep 2010
@ Caracas, Venezuela
|
#169
|
![]() |
2012-06-05
, 06:20
|
Posts: 138 |
Thanked: 80 times |
Joined on Apr 2012
|
#170
|
![]() |
Tags |
alpha, awesomeness, best_client, let_it_die, mumbai_dumbai, read_first_post, whatsapp |
Thread Tools | |
|