From d968b3380c661d8c31be352afbd373cac5fcb673 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 30 Jan 2009 17:07:35 +0000 Subject: W.I.P. for notifications on chat window. svn path=/trunk/; revision=2285 --- libempathy-gtk/empathy-ui-utils.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libempathy-gtk/empathy-ui-utils.c') diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index 7b55587ea..7c6166839 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -1647,7 +1647,7 @@ empathy_sound_play (GtkWidget *widget, } gboolean -empathy_notification_should_show (void) +empathy_notification_should_show (gboolean check_focus) { EmpathyConf *conf; gboolean res; @@ -1670,6 +1670,12 @@ empathy_notification_should_show (void) } } - return TRUE; + if (check_focus) { + empathy_conf_get_bool (conf, + EMPATHY_PREFS_NOTIFICATIONS_FOCUS, &res); + return res; + } else { + return TRUE; + } } -- cgit v1.2.3