chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31384ca
)
Stop using deprecated gdk_beep().
author
Simon Tatham
<anakin@pobox.com>
Wed, 9 May 2018 15:08:46 +0000
(16:08 +0100)
committer
Simon Tatham
<anakin@pobox.com>
Wed, 9 May 2018 15:10:15 +0000
(16:10 +0100)
Switched over to gdk_display_beep(), which should work in any GTK2 or
GTK3 environment. (This code base doesn't care about GTK1 any more.)
gtk.c
patch
|
blob
|
history
diff --git
a/gtk.c
b/gtk.c
index 7deb753744dc02d1aa8f5fbde42bd362cc394fad..c3115b58162793838dd613c1aafa977e711cd714 100644
(file)
--- a/
gtk.c
+++ b/
gtk.c
@@
-2152,7
+2152,7
@@
static void menu_copy_event(GtkMenuItem *menuitem, gpointer data)
if (text) {
write_clip(fe, text);
} else {
-
gdk_beep(
);
+
gdk_display_beep(gdk_display_get_default()
);
}
}