[file-roller: 23/26] removed the unused use-mime-type gsetting



commit 1aa681299fa0d25968bb295c04993eff1eaf5ce1
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Aug 9 21:40:55 2012 +0200

    removed the unused use-mime-type gsetting

 data/org.gnome.FileRoller.gschema.xml.in |    5 -----
 src/fr-window.c                          |   19 -------------------
 src/preferences.h                        |    1 -
 3 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/data/org.gnome.FileRoller.gschema.xml.in b/data/org.gnome.FileRoller.gschema.xml.in
index 03f9006..d86d876 100644
--- a/data/org.gnome.FileRoller.gschema.xml.in
+++ b/data/org.gnome.FileRoller.gschema.xml.in
@@ -88,11 +88,6 @@
       <_summary>Display path</_summary>
       <_description>Display the path column in the main window.</_description>
     </key>
-    <key name="use-mime-icons" type="b">
-      <default>true</default>
-      <_summary>Use mime icons</_summary>
-      <_description>If true will display icons depending on the file type (slower), otherwise will use always the same icon for all files (faster).</_description>
-    </key>
     <key name="name-column-width" type="i">
       <default>250</default>
       <_summary>Name column width</_summary>
diff --git a/src/fr-window.c b/src/fr-window.c
index 0582581..b3ebdd6 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -5158,21 +5158,6 @@ pref_click_policy_changed (GSettings  *settings,
 
 
 static void
-pref_use_mime_icons_changed (GSettings  *settings,
-	  		     const char *key,
-	  		     gpointer    user_data)
-{
-	FrWindow *window = user_data;
-
-	gth_icon_cache_clear (window->priv->list_icon_cache);
-	gth_icon_cache_clear (window->priv->tree_icon_cache);
-
-	fr_window_update_file_list (window, FALSE);
-	fr_window_update_dir_tree (window);
-}
-
-
-static void
 theme_changed_cb (GtkIconTheme *theme,
 		  FrWindow     *window)
 {
@@ -6005,10 +5990,6 @@ fr_window_construct (FrWindow *window)
 			  "changed::" PREF_LISTING_SHOW_PATH,
 			  G_CALLBACK (pref_show_field_changed),
 			  window);
-	g_signal_connect (window->priv->settings_listing,
-			  "changed::" PREF_LISTING_USE_MIME_ICONS,
-			  G_CALLBACK (pref_use_mime_icons_changed),
-			  window);
 
 	if (window->priv->settings_nautilus)
 		g_signal_connect (window->priv->settings_nautilus,
diff --git a/src/preferences.h b/src/preferences.h
index 06c32c2..99f69d0 100644
--- a/src/preferences.h
+++ b/src/preferences.h
@@ -43,7 +43,6 @@
 #define PREF_LISTING_SHOW_SIZE            "show-size"
 #define PREF_LISTING_SHOW_TIME            "show-time"
 #define PREF_LISTING_SHOW_PATH            "show-path"
-#define PREF_LISTING_USE_MIME_ICONS       "use-mime-icons"
 #define PREF_LISTING_NAME_COLUMN_WIDTH    "name-column-width"
 
 #define PREF_UI_WINDOW_WIDTH              "window-width"



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