]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkiconcache.c
Updated Norwegian bokmål translation
[~andy/gtk] / gtk / gtkiconcache.c
index c8a90e20addac7f71b13b64b79152da9e9d71d5c..ecaf6df1ea10fd1e169d496a97444eb2ac5b2696 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
-#include <config.h>
+#include "config.h"
 
 #include "gtkdebug.h"
 #include "gtkiconcache.h"
 #include "gtkiconcachevalidator.h"
-#include "gtkalias.h"
 
 #include <glib/gstdio.h>
 #include <gdk-pixbuf/gdk-pixdata.h>
@@ -77,7 +76,7 @@ _gtk_icon_cache_unref (GtkIconCache *cache)
                g_print ("unmapping icon cache\n"));
 
       if (cache->map)
-       g_mapped_file_free (cache->map);
+       g_mapped_file_unref (cache->map);
       g_free (cache);
     }
 }
@@ -131,11 +130,11 @@ _gtk_icon_cache_new_for_path (const gchar *path)
   info.flags = CHECK_OFFSETS|CHECK_STRINGS;
 
 #ifdef G_ENABLE_DEBUG
-  if (gtk_debug_flags & GTK_DEBUG_ICONTHEME)
+  if (gtk_get_debug_flags () & GTK_DEBUG_ICONTHEME)
     {
       if (!_gtk_icon_cache_validate (&info))
         {
-          g_mapped_file_free (map);
+          g_mapped_file_unref (map);
           g_warning ("Icon cache '%s' is invalid\n", cache_filename);
 
           goto done;
@@ -224,7 +223,6 @@ find_image_offset (GtkIconCache *cache,
   guint32 chain_offset;
   int hash;
   guint32 image_list_offset, n_images;
-  gboolean found = FALSE;
   int i;
 
   chain_offset = cache->last_chain_offset;