[gtk+] gdk: Make GDK_NONE Atom translate to NULL
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Make GDK_NONE Atom translate to NULL
- Date: Wed, 15 Nov 2017 18:22:18 +0000 (UTC)
commit 0451c6d30c47896511e4cdfe941ef7c77e0e4be4
Author: Benjamin Otte <otte redhat com>
Date: Wed Nov 15 16:45:12 2017 +0100
gdk: Make GDK_NONE Atom translate to NULL
Instead of the string "NONE" we now use NULL.
gdk/gdkproperty.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkproperty.c b/gdk/gdkproperty.c
index faa4664..d46b9ed 100644
--- a/gdk/gdkproperty.c
+++ b/gdk/gdkproperty.c
@@ -68,8 +68,7 @@ ensure_atom_tables (void)
names_to_atoms = g_hash_table_new (g_str_hash, g_str_equal);
atoms_to_names = g_ptr_array_new ();
- g_hash_table_insert (names_to_atoms, (gpointer) "NONE", NULL);
- g_ptr_array_add (atoms_to_names, (gpointer) "NONE");
+ g_ptr_array_add (atoms_to_names, NULL);
}
static GdkAtom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]