[epiphany] ephy-embed-single: don't use macros when not needed



commit b695374f186d3942225bcc4434de033599f24fe8
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Tue Dec 7 18:43:47 2010 +0100

    ephy-embed-single: don't use macros when not needed
    
    We can use the arguments of the function safely.

 embed/ephy-embed-single.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index 9ca1d32..94a18b8 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -463,7 +463,7 @@ cache_size_cb (GSettings *settings,
                char *key,
                EphyEmbedSingle *single)
 {
-  int new_cache_size = g_settings_get_int (EPHY_SETTINGS_WEB, EPHY_PREFS_CACHE_SIZE);
+  int new_cache_size = g_settings_get_int (settings, key);
   webkit_soup_cache_set_max_size (single->priv->cache, new_cache_size * 1024 * 1024 /* in bytes */);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]