[gtk/gtk-3-24: 1/4] modules/input/gtkimcontextthai: Remove deprecated gdk_beep



commit 5fb999010c520aa419f21c5d689fcda4202fcbd8
Author: Yi-Soo An <yisooan gmail com>
Date:   Fri Jul 20 15:39:49 2018 +0900

    modules/input/gtkimcontextthai: Remove deprecated gdk_beep
    
    Use gdk_display_beep instead of it.

 modules/input/gtkimcontextthai.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/modules/input/gtkimcontextthai.c b/modules/input/gtkimcontextthai.c
index 73510c0360..c3ebc83be5 100644
--- a/modules/input/gtkimcontextthai.c
+++ b/modules/input/gtkimcontextthai.c
@@ -336,7 +336,8 @@ gtk_im_context_thai_filter_keypress (GtkIMContext *context,
   if (is_reject)
     {
       /* reject character */
-      gdk_beep ();
+      GdkDisplay *display = gdk_display_get_default ();
+      gdk_display_beep (display);
     }
   return TRUE;
 }


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