[gtk+] GDK W32: Remove an unnecessary type check
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GDK W32: Remove an unnecessary type check
- Date: Sat, 2 Dec 2017 11:25:08 +0000 (UTC)
commit ae76d1966360675940078f9d63730c929f4c63c4
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Sun Nov 26 13:15:53 2017 +0000
GDK W32: Remove an unnecessary type check
No idea why it's here, the hash table can store any kind of data,
there's no reason why it wouldn't be able to store an old X string type.
Might be a holdout from the old days, when strings were handled in
a special way (stored directly in the clipboard?).
https://bugzilla.gnome.org/show_bug.cgi?id=786509
gdk/win32/gdkselection-win32.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c
index 64f5a53..d793f73 100644
--- a/gdk/win32/gdkselection-win32.c
+++ b/gdk/win32/gdkselection-win32.c
@@ -757,8 +757,6 @@ selection_property_store (GdkWindow *owner,
GdkSelProp *prop;
GdkWin32Selection *win32_sel = _gdk_win32_selection_get ();
- g_return_if_fail (type != GDK_TARGET_STRING);
-
prop = g_hash_table_lookup (win32_sel->sel_prop_table, GDK_WINDOW_HWND (owner));
if (prop != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]