Open Bug 752037 Opened 13 years ago Updated 2 years ago

Do not use deprecated notify_notification_set_icon_from_pixbuf()

Categories

(Core :: Widget: Gtk, defect, P4)

x86
Linux
defect

Tracking

()

People

(Reporter: a9016009, Unassigned)

References

()

Details

(Whiteboard: tpi:+)

Attachments

(1 file)

./toolkit/system/gnome/nsAlertsIconListener.cpp: notify_notification_set_icon_from_pixbuf(mNotification, aPixbuf); http://developer.gnome.org/libnotify/0.7/NotifyNotification.html#notify-notification-set-icon-from-pixbuf states that this is deprecated and that http://developer.gnome.org/libnotify/0.7/NotifyNotification.html#notify-notification-set-image-from-pixbuf should be used instead.
Any idea what the difference between the methods is? ISTR an ownership issue with an GdkPixbuf method. See also bug 750141.
(In reply to Karl Tomlinson (:karlt) from comment #1) > ISTR an ownership issue with an GdkPixbuf method. That was notify_notification_set_image_from_pixbuf in https://bugzilla.gnome.org/show_bug.cgi?id=633829 I don't know if or in which stable versions that bug existed.
Looks like the missing ref on the pixbuf was introduced in http://git.gnome.org/browse/libnotify/commit/libnotify/notification.c?id=f63e8ab8b192b291b81148fac53947cdea5841f1 for 0.6.1 and fixed in http://git.gnome.org/browse/libnotify/commit/libnotify/notification.c?id=49766bca28bb6fc57689f6061669bb44362d694d for 0.7.1. But that's independent of this bug anyway because notify_notification_set_icon_from_pixbuf was essentially just an alias for notify_notification_set_image_from_pixbuf anyway. It seems there are no differences in the methods, and the names can be switched when we know there are no libnotify libraries in use without the new function name.
Assignee: nobody → hub
Status: NEW → ASSIGNED
Attached patch Proposed patchSplinter Review
We require 0.8 for the lib. we should be perfectly fine now.
Attachment #8621932 - Flags: review?(karlt)
Comment on attachment 8621932 [details] [diff] [review] Proposed patch (In reply to Hubert Figuiere [:hub] from comment #4) > We require 0.8 for the lib. we should be perfectly fine now. Where do we require this? The latest tag I see on https://git.gnome.org/browse/libnotify is 0.7.6.
Attachment #8621932 - Flags: review?(karlt)
Flags: needinfo?(hub)
(In reply to Karl Tomlinson (ni?:karlt) from comment #5) > Comment on attachment 8621932 [details] [diff] [review] > Proposed patch > > (In reply to Hubert Figuiere [:hub] from comment #4) > > We require 0.8 for the lib. we should be perfectly fine now. > > Where do we require this? > > The latest tag I see on https://git.gnome.org/browse/libnotify is 0.7.6. Uh oh. I thought we did in configure.in but it is something else. My bad.
Flags: needinfo?(hub)
Priority: -- → P4
Whiteboard: tpi:+
Assignee: hub → nobody
Status: ASSIGNED → NEW
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: