[gtksourceview] vim: use gtk_widget_error_bell()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] vim: use gtk_widget_error_bell()
- Date: Fri, 12 Nov 2021 19:20:07 +0000 (UTC)
commit 5823cd4dcd9f9d5b2c9d0778346abf77eda1f260
Author: Christian Hergert <chergert redhat com>
Date: Fri Nov 12 11:09:07 2021 -0800
vim: use gtk_widget_error_bell()
gtksourceview/vim/gtksourcevimstate.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtksourceview/vim/gtksourcevimstate.c b/gtksourceview/vim/gtksourcevimstate.c
index b27a418e..1e9111f9 100644
--- a/gtksourceview/vim/gtksourcevimstate.c
+++ b/gtksourceview/vim/gtksourcevimstate.c
@@ -468,14 +468,12 @@ void
gtk_source_vim_state_beep (GtkSourceVimState *self)
{
GtkSourceView *view;
- GdkDisplay *display;
g_return_if_fail (GTK_SOURCE_IS_VIM_STATE (self));
- if ((view = gtk_source_vim_state_get_view (self)) &&
- (display = gtk_widget_get_display (GTK_WIDGET (view))))
+ if ((view = gtk_source_vim_state_get_view (self)))
{
- gdk_display_beep (display);
+ gtk_widget_error_bell (GTK_WIDGET (view));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]