Use g_hash_table_lookup() instead of newer g_hash_table_contains()
This retains compability with GLib 2.30.
This commit is contained in:
parent
1e6793330f
commit
7f91e0985f
1 changed files with 1 additions and 1 deletions
|
@ -1267,7 +1267,7 @@ midori_load_module (MidoriApp* app,
|
||||||
Skip any modules that were loaded before. */
|
Skip any modules that were loaded before. */
|
||||||
if (modules == NULL)
|
if (modules == NULL)
|
||||||
modules = g_hash_table_new (g_direct_hash, g_direct_equal);
|
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;
|
return;
|
||||||
g_hash_table_insert (modules, module, g_strdup (filename));
|
g_hash_table_insert (modules, module, g_strdup (filename));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue