[gtk+] Use NULL instead of g_direct_equal
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Use NULL instead of g_direct_equal
- Date: Sat, 12 Sep 2015 23:24:16 +0000 (UTC)
commit 27db410fd501f8a59c416cbc8fc81eda7771dfd3
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 12 18:48:17 2015 -0400
Use NULL instead of g_direct_equal
GHashTable has built-in support for pointer comparison.
gtk/gtkwidget.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 4d714b2..fd17c2e 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -16681,9 +16681,8 @@ get_auto_child_hash (GtkWidget *widget,
widget->priv->auto_children =
g_hash_table_new_full (g_direct_hash,
- g_direct_equal,
- NULL,
- (GDestroyNotify)g_hash_table_destroy);
+ NULL,
+ NULL, (GDestroyNotify)g_hash_table_destroy);
}
auto_child_hash =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]