diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-31 01:07:35 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-31 01:07:35 +0800 |
commit | d968b3380c661d8c31be352afbd373cac5fcb673 (patch) | |
tree | 6c2f00bd75cdf966ce23cd70dc19e3b5bafcf382 /libempathy-gtk/empathy-ui-utils.c | |
parent | 111068fd8b34e36ffbfd9614001918bb31388e73 (diff) | |
download | gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar.gz gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar.bz2 gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar.lz gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar.xz gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.tar.zst gsoc2013-empathy-d968b3380c661d8c31be352afbd373cac5fcb673.zip |
W.I.P. for notifications on chat window.
svn path=/trunk/; revision=2285
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; + } } |