Home | History | Annotate | Download | only in nix

Lines Matching refs:icon_name

118   // Returns the path to an icon with the name |icon_name| and a size of |size|
121 FilePath GetIconPath(const std::string& icon_name, int size, bool inherits);
128 // Returns the path to an icon with the name |icon_name| in |subdir|.
129 FilePath GetIconPathUnderSubdir(const std::string& icon_name,
183 FilePath IconTheme::GetIconPath(const std::string& icon_name, int size,
193 icon_path = GetIconPathUnderSubdir(icon_name, subdir_iter->first);
207 FilePath path = GetIconPathUnderSubdir(icon_name, subdir_iter->first);
221 return theme->GetIconPath(icon_name, size, inherits);
241 FilePath IconTheme::GetIconPathUnderSubdir(const std::string& icon_name,
250 icon_path = icon_path.Append(icon_name + (*icon_formats)[i]);
485 FilePath LookupFallbackIcon(const std::string& icon_name) {
492 FilePath icon = iter->first.Append(icon_name + (*icon_formats)[i]);
550 // Try to find an icon with the name |icon_name| that's |size| pixels.
551 FilePath LookupIconInDefaultTheme(const std::string& icon_name, int size) {
562 icon_path = default_themes[i]->GetIconPath(icon_name, size, true);
567 return LookupFallbackIcon(icon_name);
604 std::string icon_name;
610 icon_name = std::string(icon ? icon : "");
613 if (icon_name.length())
614 icon_names.push_back(icon_name);
617 icon_name = mime_type;
618 for (size_t i = icon_name.find('/', 0); i != std::string::npos;
619 i = icon_name.find('/', i + 1)) {
620 icon_name[i] = '-';
622 icon_names.push_back(icon_name);
624 icon_names.push_back("gnome-mime-" + icon_name);
629 icon_name = mime_type.substr(x_substr_pos + 3);
630 icon_names.push_back(icon_name);
634 icon_name = mime_type.substr(0, mime_type.find('/')) + "-x-generic";
635 icon_names.push_back(icon_name);