[easytag] Remove custom parent folder icon



commit 0de3541155c4bf5b6729557c402ce4b2e3a83afe
Author: David King <amigadave amigadave com>
Date:   Thu Mar 21 16:58:20 2013 +0000

    Remove custom parent folder icon
    
    Use the themed "go-up" icon instead.

 Makefile.am                    |    1 -
 data/pixmaps/parent_folder.xpm |  120 ----------------------------------------
 src/browser.c                  |    7 ++-
 src/misc.c                     |    2 -
 4 files changed, 6 insertions(+), 124 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 62b64df..5525c7f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -167,7 +167,6 @@ pixmaps = \
        data/pixmaps/invert_selection.xpm \
        data/pixmaps/mask.xpm \
        data/pixmaps/musicbrainz.xpm \
-       data/pixmaps/parent_folder.xpm \
        data/pixmaps/read_only.xpm \
        data/pixmaps/red_lines.xpm \
        data/pixmaps/sequence_track.xpm \
diff --git a/src/browser.c b/src/browser.c
index 3cd8e42..c4ac1a6 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -2992,6 +2992,7 @@ GtkWidget *Create_Browser_Items (GtkWidget *parent)
     GtkWidget *ScrollWindowArtistList;
     GtkWidget *ScrollWindowAlbumList;
     GtkWidget *Label;
+    GIcon *parent_folder;
     GtkWidget *Icon;
     GtkCellRenderer *renderer;
     GtkTreeViewColumn *column;
@@ -3016,7 +3017,11 @@ GtkWidget *Create_Browser_Items (GtkWidget *parent)
      * The button to go to the parent directory
      */
     BrowserParentButton = gtk_button_new();
-    Icon = gtk_image_new_from_stock("easytag-parent-folder", GTK_ICON_SIZE_SMALL_TOOLBAR); // On Win32, 
GTK_ICON_SIZE_BUTTON enlarge the combobox...
+    parent_folder = g_themed_icon_new ("go-up");
+    /* TODO: On Win32, GTK_ICON_SIZE_BUTTON enlarge the combobox. */
+    Icon = gtk_image_new_from_gicon (parent_folder,
+                                     GTK_ICON_SIZE_MENU);
+    g_object_unref (parent_folder);
     gtk_container_add(GTK_CONTAINER(BrowserParentButton),Icon);
     gtk_box_pack_start(GTK_BOX(HBox),BrowserParentButton,FALSE,FALSE,0);
     gtk_button_set_relief(GTK_BUTTON(BrowserParentButton),GTK_RELIEF_NONE);
diff --git a/src/misc.c b/src/misc.c
index f4df31a..e0762d3 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -623,7 +623,6 @@ void Set_Unbusy_Cursor (void)
 #include "data/pixmaps/grab.xpm"
 #include "data/pixmaps/invert_selection.xpm"
 #include "data/pixmaps/mask.xpm"
-#include "data/pixmaps/parent_folder.xpm"
 #include "data/pixmaps/read_only.xpm"
 #include "data/pixmaps/red_lines.xpm"
 //#include "data/pixmaps/sequence_track.xpm"
@@ -644,7 +643,6 @@ void Init_Custom_Icons (void)
     Create_Xpm_Icon_Factory((const char**)red_lines_xpm,            "easytag-red-lines");
     Create_Xpm_Icon_Factory((const char**)artist_album_xpm,     "easytag-artist-album");
 ////    Create_Png_Icon_Factory("artist_album.png",                     "easytag-artist-album");
-    Create_Xpm_Icon_Factory((const char**)parent_folder_xpm,        "easytag-parent-folder");
     Create_Xpm_Icon_Factory((const char**)add_folder_xpm,           "easytag-add-folder");
     Create_Xpm_Icon_Factory((const char**)sound_xpm,                "easytag-sound");
     Create_Xpm_Icon_Factory((const char**)all_uppercase_xpm,        "easytag-all-uppercase");


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