The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Rename icons.bf to icons.birdfont

Changes made to libbirdfont/Theme.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/Theme.vala +++ libbirdfont/Theme.vala @@ -701,28 +701,9 @@ } public static string get_icon_file () { - string icons; - File f; - - return_val_if_fail (!is_null (current_theme), "icons.bf".dup ()); - return_val_if_fail (current_theme != "", "icons.bf".dup ()); - - if (current_theme == "dark.theme" - || current_theme == "bright.theme" - || current_theme == "high_contrast.theme") { - return "icons.bf".dup (); - } - - icons = current_theme.replace (".theme", ".bf"); - f = SearchPaths.search_file (null, icons); - - if (f.query_exists ()) { - return icons; - } - - return "icons.bf".dup (); + return "icons.birdfont".dup (); } } }