summary refs log tree commit diff stats
path: root/src/fe-gtk/plugin-notification.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2015-02-11 17:58:44 -0500
committerTingPing <tingping@tingping.se>2015-02-11 17:58:44 -0500
commit7063406d6caf42f61d87e42db6ce46df9e64ffef (patch)
tree34807a61e8a80c40fedaad33ee9d89d300fd03be /src/fe-gtk/plugin-notification.c
parent9858784eb6369dc189836f8971791af5238145ea (diff)
Remove input_balloon_time setting
This setting doesn't work on most platforms
including some notification daemons on linux.

Where it does work I think it is bad behavior
to default overriding their defaults anyway.

It's most valuable use was likely win32
tray balloons which no longer exist.
Diffstat (limited to 'src/fe-gtk/plugin-notification.c')
-rw-r--r--src/fe-gtk/plugin-notification.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/fe-gtk/plugin-notification.c b/src/fe-gtk/plugin-notification.c
index 43ceeece..04a64213 100644
--- a/src/fe-gtk/plugin-notification.c
+++ b/src/fe-gtk/plugin-notification.c
@@ -60,16 +60,6 @@ should_alert (void)
 	return TRUE;
 }
 
-/* Returns timeout in ms */
-static int
-get_timeout (void)
-{
-	int timeout = 0;
-	hexchat_get_prefs (ph, "input_balloon_time", NULL, &timeout);
-
-	return timeout * 1000;
-}
-
 static gboolean
 is_ignored (char *nick)
 {
@@ -91,7 +81,7 @@ show_notification (const char *title, const char *text)
 	stripped_title = hexchat_strip (ph, title, -1, 7);
 	stripped_text = hexchat_strip (ph, text, -1, 7);
 	
-	notification_backend_show (stripped_title, stripped_text, get_timeout ());
+	notification_backend_show (stripped_title, stripped_text);
 
 	hexchat_free (ph, stripped_title);
 	hexchat_free (ph, stripped_text);