[Xfce4-commits] <midori:master> Use Hildon banners for notifications on Maemo
Christian Dywan
noreply at xfce.org
Mon Oct 26 18:40:01 CET 2009
Updating branch refs/heads/master
to 91113a189cbdbd6254c126ea2d040fcafb586015 (commit)
from f28d6e78d74109cc0c4bedde9416568a55ee05df (commit)
commit 91113a189cbdbd6254c126ea2d040fcafb586015
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Oct 26 18:05:16 2009 +0100
Use Hildon banners for notifications on Maemo
midori/midori-app.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/midori/midori-app.c b/midori/midori-app.c
index e71f4b0..f5c1c52 100644
--- a/midori/midori-app.c
+++ b/midori/midori-app.c
@@ -1076,13 +1076,10 @@ midori_app_init_libnotify (MidoriApp* app)
* @title: title of the notification
* @message: text of the notification, or NULL
*
- * Send #message to the notification daemon to display it.
- * This is done by using libnotify if available or by using the program
- * "notify-send" as a fallback.
+ * Send #message to a notification service to display it.
*
- * There is no guarantee that the message have been sent and displayed, as
- * neither libnotify nor "notify-send" might be available or the
- * notification daemon might not be running.
+ * There is no guarantee that the message has been sent and displayed, as
+ * there might not be any notification service available.
*
* Since 0.1.7
**/
@@ -1091,6 +1088,10 @@ midori_app_send_notification (MidoriApp* app,
const gchar* title,
const gchar* message)
{
+ #if HAVE_HILDON
+ hildon_banner_show_information_with_markup (GTK_WIDGET (app->browser),
+ "midori", message);
+ #else
gboolean sent = FALSE;
g_return_if_fail (MIDORI_IS_APP (app));
@@ -1118,4 +1119,5 @@ midori_app_send_notification (MidoriApp* app,
g_free (msgq);
g_free (command);
}
+ #endif
}
More information about the Xfce4-commits
mailing list