Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 261919 Details for
Bug 352397
net-libs/xulrunner: patch for libnotify-0.7 support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libnotify-0.7-support upstream patch
xulrunner-1.9.2-libnotify-0.7-support.patch (text/plain), 1.73 KB, created by
Jory A. Pratt
on 2011-02-09 14:36:58 UTC
(
hide
)
Description:
libnotify-0.7-support upstream patch
Filename:
MIME Type:
Creator:
Jory A. Pratt
Created:
2011-02-09 14:36:58 UTC
Size:
1.73 KB
patch
obsolete
># HG changeset patch ># User Priit Laes <plaes@plaes.org> ># Parent 194dd9a57615185c998a87148fac65df51600758 >Bug 628222 - Add support for libnotify-0.7+. r=karlt > >diff --git a/toolkit/system/gnome/nsAlertsIconListener.cpp b/toolkit/system/gnome/nsAlertsIconListener.cpp >--- a/toolkit/system/gnome/nsAlertsIconListener.cpp >+++ b/toolkit/system/gnome/nsAlertsIconListener.cpp >@@ -42,16 +42,21 @@ > #include "nsNetUtil.h" > #include "nsIImageToPixbuf.h" > #include "nsIStringBundle.h" > > #include <gdk-pixbuf/gdk-pixbuf.h> > #include <libnotify/notify.h> > #include <gdk/gdk.h> > >+// Compatibility macro for <libnotify-0.7 >+#ifndef NOTIFY_CHECK_VERSION >+#define NOTIFY_CHECK_VERSION(x,y,z) 0 >+#endif >+ > static PRBool gHasActions = PR_FALSE; > > static void notify_action_cb(NotifyNotification *notification, > gchar *action, gpointer user_data) > { > nsAlertsIconListener* alert = static_cast<nsAlertsIconListener*> (user_data); > alert->SendCallback(); > } >@@ -199,17 +204,23 @@ nsAlertsIconListener::OnStopFrame(imgIRe > return NS_OK; > } > > nsresult > nsAlertsIconListener::ShowAlert(GdkPixbuf* aPixbuf) > { > NotifyNotification* notify = notify_notification_new(mAlertTitle.get(), > mAlertText.get(), >- NULL, NULL); >+ NULL >+// >=libnotify-0.7.0 has no support for attaching to widgets >+#if !NOTIFY_CHECK_VERSION(0,7,0) >+ , NULL >+#endif >+ ); >+ > if (!notify) > return NS_ERROR_OUT_OF_MEMORY; > > if (aPixbuf) > notify_notification_set_icon_from_pixbuf(notify, aPixbuf); > > NS_ADDREF(this); > if (mAlertHasAction) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 352397
:
260486
| 261919