[evolution] eds-I#154 - Replace deprecated gdk_beep() usage in the code



commit 6eca898632d8b3d6c751761dab29760eb05cb60d
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jan 15 12:14:14 2020 +0100

    eds-I#154 - Replace deprecated gdk_beep() usage in the code
    
    Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/154

 src/mail/e-mail-ui-session.c                      | 2 +-
 src/plugins/mail-notification/mail-notification.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/mail/e-mail-ui-session.c b/src/mail/e-mail-ui-session.c
index 93eab27b4c..291d87988f 100644
--- a/src/mail/e-mail-ui-session.c
+++ b/src/mail/e-mail-ui-session.c
@@ -186,7 +186,7 @@ session_play_sound_cb (const gchar *filename)
                        NULL);
        else
 #endif
-               gdk_beep ();
+               gdk_display_beep (gdk_display_get_default ());
 
        return FALSE;
 }
diff --git a/src/plugins/mail-notification/mail-notification.c 
b/src/plugins/mail-notification/mail-notification.c
index f230f74e6f..5865131322 100644
--- a/src/plugins/mail-notification/mail-notification.c
+++ b/src/plugins/mail-notification/mail-notification.c
@@ -650,7 +650,7 @@ do_play_sound (gboolean beep,
                                NULL);
 #endif
        } else
-               gdk_beep ();
+               gdk_display_beep (gdk_display_get_default ());
 }
 
 struct _SoundConfigureWidgets {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]