[gedit] app: remove dead code about icons



commit 25ad2a6288f4292dc2bf69dda34f2174b521249e
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Nov 28 20:39:05 2015 +0100

    app: remove dead code about icons
    
    Nothing is installed in $(datadir)/gedit/icons/.
    
    $ grep icons **/Makefile.am
    gives no results.
    
    And there is no icons installed for win32 or OS X.
    
    -> dead code.
    
    One less use of gedit_dirs_get_gedit_data_dir(), maybe we'll be able to
    get rid of it.

 gedit/gedit-app.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 6f4298c..eeea6d7 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -746,8 +746,6 @@ gedit_app_startup (GApplication *application)
        GeditAppPrivate *priv;
        GtkCssProvider *css_provider;
        GtkSourceStyleSchemeManager *manager;
-       const gchar *dir;
-       gchar *icon_dir;
 #ifndef ENABLE_GVFS_METADATA
        const gchar *cache_dir;
        gchar *metadata_filename;
@@ -761,14 +759,6 @@ gedit_app_startup (GApplication *application)
        gedit_debug_init ();
        gedit_debug_message (DEBUG_APP, "Startup");
 
-       gedit_debug_message (DEBUG_APP, "Set icon");
-
-       dir = gedit_dirs_get_gedit_data_dir ();
-       icon_dir = g_build_filename (dir, "icons", NULL);
-
-       gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), icon_dir);
-       g_free (icon_dir);
-
        setup_theme_extensions (GEDIT_APP (application));
 
 #ifndef ENABLE_GVFS_METADATA


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