diff options
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 10 |
1 files changed, 8 insertions, 2 deletions
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; + } } |