Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=5a4b019e3ea99039eb3ac20823312f4279f670d4

commit 5a4b019e3ea99039eb3ac20823312f4279f670d4
Author: Priyank <[EMAIL PROTECTED]>
Date:   Thu Dec 20 00:51:35 2007 +0530

fun-tooltip: set the notification timeout value from config file

diff --git a/src/fun-tooltip.c b/src/fun-tooltip.c
index bc65edb..fa7e860 100644
--- a/src/fun-tooltip.c
+++ b/src/fun-tooltip.c
@@ -21,6 +21,7 @@
*/

#include <gtk/gtk.h>
+#include "fun-config.h"
#include "fun-tooltip.h"

NotifyNotification *fun_tooltip_new (GtkStatusIcon *icon)
@@ -32,7 +33,7 @@ NotifyNotification *fun_tooltip_new (GtkStatusIcon *icon)
"fun",
NULL);
notify_notification_set_category (tooltip, "information");
-       notify_notification_set_timeout (tooltip, NOTIFY_EXPIRES_DEFAULT);
+       notify_notification_set_timeout (tooltip, 
(fun_config_get_value_int("notification_timeout")*1000));
notify_notification_set_urgency (tooltip, NOTIFY_URGENCY_NORMAL);
notify_notification_attach_to_status_icon (tooltip, icon);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to