summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-02-27 21:00:16 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2015-02-27 21:02:16 +0000
commit7cee6c5cc6f35d9ed453f943686c0b21e86b4a3e (patch)
tree791f8db8228a42a2db1b0af11d9b0bab72f583ea /gdk
parentab3084b71447c456e3e37ffeee95b24f4fe8e007 (diff)
downloadgtk+-7cee6c5cc6f35d9ed453f943686c0b21e86b4a3e.tar.gz
gdk: Use a better error message
Having "Assertion failed: success" on the console is not going to help anyone.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/gdkdisplay-win32.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index b4f004dc07..0a75f45878 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -355,7 +355,12 @@ inner_clipboard_window_procedure (HWND hwnd,
GdkWindow *owner;
success = OpenClipboard (hwnd);
- g_return_val_if_fail (success, 0);
+ if (!success)
+ {
+ g_warning ("Failed to OpenClibpboard on window handle %p", hwnd);
+ return 0;
+ }
+
hwndOwner = GetClipboardOwner ();
owner = gdk_win32_window_lookup_for_display (_gdk_display, hwndOwner);
if (owner == NULL)