After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 332169 - Support libnotify 0.3.x API
Support libnotify 0.3.x API
Status: RESOLVED FIXED
Product: gossip
Classification: Deprecated
Component: General
0.10
Other Linux
: Normal normal
: ---
Assigned To: Gossip Maintainers
Gossip Maintainers
: 130229 332578 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-02-22 12:27 UTC by Diego González
Modified: 2006-03-16 01:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Initial 0.3.2 libnotify patch (13.42 KB, patch)
2006-02-28 00:43 UTC, Brian Pepple
none Details | Review
Corrected Patch (13.14 KB, patch)
2006-02-28 00:52 UTC, Brian Pepple
rejected Details | Review
New patch for libnotify (13.50 KB, patch)
2006-03-15 15:12 UTC, Brian Pepple
none Details | Review

Description Diego González 2006-02-22 12:27:42 UTC
i get this errors:


gossip-notify.c:48: error: syntax error before '*' token
gossip-notify.c:51: error: syntax error before '*' token
cc1: warnings being treated as errors
gossip-notify.c:52: warning: type defaults to 'int' in declaration of 'notify_new_message'
gossip-notify.c:52: warning: data definition has no type or storage class
gossip-notify.c: In function 'gossip_notify_contact_online':
gossip-notify.c:132: error: 'NotifyIcon' undeclared (first use in this function)
gossip-notify.c:132: error: (Each undeclared identifier is reported only once
gossip-notify.c:132: error: for each function it appears in.)
gossip-notify.c:132: error: 'icon' undeclared (first use in this function)
gossip-notify.c:133: error: 'NotifyHandle' undeclared (first use in this function)
gossip-notify.c:133: error: 'handle' undeclared (first use in this function)
...

It detect a version that it can compile agains using auto* magic and if not available just disable this feature.
Comment 1 Martyn Russell 2006-02-22 14:36:50 UTC
Yea, this is a known problem.

I built in support for libnotify 0.2.1 which is on Breezy.
When I get the next build of Ubuntu in a few months I will fix this up.

You can disable it with ./autogen.sh --disable-libnotify for the time being.
Comment 2 Richard Hult 2006-02-26 10:01:39 UTC
*** Bug 332578 has been marked as a duplicate of this bug. ***
Comment 3 Brian Pepple 2006-02-28 00:43:07 UTC
Created attachment 60276 [details] [review]
Initial 0.3.2 libnotify patch

Martyn, here's what I've got so far for the 0.3.2 api changes.  It still needs some work, in particular the 'notify_notification_add_action' calls which changed it api between 0.3.0 (what I'm on) and 0.3.2, so I haven't tested that it works.  Hopefully, this will be of some help to you.
Comment 4 Brian Pepple 2006-02-28 00:52:58 UTC
Created attachment 60278 [details] [review]
Corrected Patch

D'oh, noticed a error in my prior patch.
Comment 5 Martyn Russell 2006-02-28 09:14:43 UTC
Thanks I will take a look soon.
Comment 6 Martyn Russell 2006-03-15 09:31:04 UTC
Mmm, I couldn't patch Gossip with this patch, I get:

martyn@betula:~/Gnome/source/gossip$ patch -p0 < notify.patch
patching file src/gossip-notify.c
patch: **** malformed patch at line 55: @@ -124,12 +133,13 @@

Can you recreate the patch using 'cvs diff -up > notify.patch'?
Comment 7 Brian Pepple 2006-03-15 15:12:04 UTC
Created attachment 61303 [details] [review]
New patch for libnotify

Martyn, here's a new patch.  If you have any problems, don't hestitate to contact me.
Comment 8 Richard Hult 2006-03-15 20:04:45 UTC
*** Bug 130229 has been marked as a duplicate of this bug. ***
Comment 9 Martyn Russell 2006-03-16 01:17:59 UTC
I have committed your patch Brian with a few improvements ;) - mostly I just removed some of the old crap I put in there for pixbuf management with the 0.2.x API but apart from that - all good thanks!

The only thing I couldn't see how to do was how to keep the notification up until the timeout on some actions. In the old code the "Contact Information" option should not hide the notification so the user could still click to "Respond". If you see how to do this, feel free to let me know/knock up a patch.

Thanks again ;)