[Xfce4-commits] <midori:master> Use g_hash_table_lookup() instead of newer g_hash_table_contains()
Christian Dywan
noreply at xfce.org
Sat Jul 28 10:48:02 CEST 2012
Updating branch refs/heads/master
to 7f91e0985fd87df4302ae35f3c55763281bacdc9 (commit)
from 1e6793330fd8abd0864e6200e1975b391a07f0ad (commit)
commit 7f91e0985fd87df4302ae35f3c55763281bacdc9
Author: Enrico Tröger <enrico.troeger at uvena.de>
Date: Fri Jul 27 15:55:17 2012 +0200
Use g_hash_table_lookup() instead of newer g_hash_table_contains()
This retains compability with GLib 2.30.
midori/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/midori/main.c b/midori/main.c
index 46d2f30..57ee6f3 100644
--- a/midori/main.c
+++ b/midori/main.c
@@ -1267,7 +1267,7 @@ midori_load_module (MidoriApp* app,
Skip any modules that were loaded before. */
if (modules == NULL)
modules = g_hash_table_new (g_direct_hash, g_direct_equal);
- if (g_hash_table_contains (modules, module))
+ if (g_hash_table_lookup (modules, module))
return;
g_hash_table_insert (modules, module, g_strdup (filename));
More information about the Xfce4-commits
mailing list