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 632848 - Ekiga needs to be adapted to libnotify-0.7.0
Ekiga needs to be adapted to libnotify-0.7.0
Status: RESOLVED FIXED
Product: ekiga
Classification: Applications
Component: GUI
GIT master
Other Linux
: Normal normal
: ---
Assigned To: Ekiga maintainers
Ekiga maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-22 01:38 UTC by Florian Gawrilowicz
Modified: 2010-11-04 20:39 UTC
See Also:
GNOME target: 3.0
GNOME version: ---


Attachments
Proposed patch (1.91 KB, patch)
2010-10-22 09:29 UTC, Florian Gawrilowicz
none Details | Review
Using NOTIFY_CHECK_VERSION(0,7,0) (2.37 KB, patch)
2010-10-22 13:42 UTC, Florian Gawrilowicz
none Details | Review

Description Florian Gawrilowicz 2010-10-22 01:38:53 UTC
notify_notification_attach_to_status_icon has been removed
notify_notification_new takes only 3 arguments
Comment 1 Eugen Dedu 2010-10-22 07:40:37 UTC
Could you propose a patch to help us better?
Comment 2 Florian Gawrilowicz 2010-10-22 09:29:06 UTC
Created attachment 172984 [details] [review]
Proposed patch

Ooops, actually wanted to post this right away. But somehow it got lost on the way...
Comment 3 Eugen Dedu 2010-10-22 12:33:03 UTC
Thanks.  The problem is that on some of the current systems (debian unstable for ex.) this patch will break compilation, since they still use 0.5.0.  Would you mind if you add also a checking of libnotify in configure.ac and use #define-d a compilation to allow both versions of libnotify?
Comment 4 Florian Gawrilowicz 2010-10-22 13:39:24 UTC
May I also use NOTIFY_CHECK_VERSION(0,7,0). Seems to me to be straight forward...
Comment 5 Florian Gawrilowicz 2010-10-22 13:42:37 UTC
Created attachment 173001 [details] [review]
Using NOTIFY_CHECK_VERSION(0,7,0)

I have only tested it with libnotify-0.7.0. Have no older version within reach...
Comment 6 Eugen Dedu 2010-10-24 19:30:22 UTC
It does not work...  It shows a compilation error:

  CXX    libnotify-main.lo
../lib/engine/components/libnotify/libnotify-main.cpp:162:26: error: missing binary operator before token "("
/usr/include/libnotify/notification.h: In member function ‘void LibNotify::on_notification_added(boost::shared_ptr<Ekiga::Notification>)’:
/usr/include/libnotify/notification.h:79: error: too few arguments to function ‘NotifyNotification* notify_notification_new(const char*, const char*, const char*, GtkWidget*)’
../lib/engine/components/libnotify/libnotify-main.cpp:165: error: at this point in file
make[3]: *** [libnotify-main.lo] Error 1

This appears because NOTIFY_CHECK_VERSION does not exist in 0.5.0; it was introduced later: http://osdir.com/ml/general/2010-10/msg27687.html

Do you have the time to fix the patch?  I could do it, but it will take me maybe 30-60 min.  Unfortunately, I think the only solution is to get the version from configure.ac and use it in the cpp files, like http://opalvoip.svn.sourceforge.net/viewvc/opalvoip?view=revision&revision=24100 for example (except 'configure' file).
Comment 7 Eugen Dedu 2010-10-24 19:37:27 UTC
Wait, I have just found a simpler solution, using #ifdef together with #if...
Comment 8 Eugen Dedu 2010-10-24 20:02:39 UTC
Ok, I made the patch.  However, if notify_notification_attach_to_status_icon has been removed, what is it replaced with?
Comment 9 Florian Gawrilowicz 2010-10-25 11:17:11 UTC
Sorry, wasn't able to work on it druing the weekend...

Ability to attach to a status icon is replaced by the use of notification persistence. See .../libnotify-0.7.0/tests/test-persistence.c
Comment 10 Eugen Dedu 2010-10-26 16:20:47 UTC
Thanks.  Should notify_notification_attach_to_status_icon in ekiga just be removed, as in your patch (if yes, why?), or should it be replaced with the use of notification, as you say in the previous comment (if yes, can you help by updating the patch)?
Comment 11 Florian Gawrilowicz 2010-11-03 16:19:04 UTC
It should just be removed, like the nmapplet did ( https://bugzilla.gnome.org/review?bug=632327&attachment=172525 ).
For further detail see: http://live.gnome.org/GnomeShell/Design/Guidelines/MessageTray/Compatibility

I also read that you should use symbolic icons. See: http://live.gnome.org/JavierJardon/Gnome3PortGuide
Don't know if this applies to ekiga...
Comment 12 Eugen Dedu 2010-11-04 20:39:45 UTC
There was an error in your patch:

-  notify = notify_notification_new (title, body, GM_ICON_LOGO, NULL);
+  notify = notify_notification_new (title, body, GM_ICON_LOGO
+                                    #if NOTIFY_CHECK_VERSION(0,7,0)
+                                      , NULL
+                                    #endif
+                                    );

The correct patch is with negation:
#if !NOTIFY...

Committed: http://git.gnome.org/browse/ekiga/commit/?id=6a964b0889.

Thanks for the patch and info.