зеркало из https://github.com/mozilla/gecko-dev.git
b=714068 use gtk_icon_theme_get_icon_sizes instead of gtk_icon_theme_has_icon to determine whether GtkWindow will use an icon r=karlt
--HG-- extra : transplant_source : %01%D7%07%9BU%7E%0C%C7t%E6ye%3Av%CC%02%FB%99%1B%D1
This commit is contained in:
Родитель
e04149c97f
Коммит
9babf96e21
|
@ -1830,8 +1830,11 @@ nsWindow::SetIcon(const nsAString& aIconSpec)
|
|||
nsCOMPtr<nsILocalFile> iconFile;
|
||||
nsCAutoString path;
|
||||
|
||||
bool foundIcon = gtk_icon_theme_has_icon(gtk_icon_theme_get_default(),
|
||||
gint *iconSizes =
|
||||
gtk_icon_theme_get_icon_sizes(gtk_icon_theme_get_default(),
|
||||
iconName.get());
|
||||
bool foundIcon = (iconSizes[0] != 0);
|
||||
g_free(iconSizes);
|
||||
|
||||
if (!foundIcon) {
|
||||
// Look for icons with the following suffixes appended to the base name
|
||||
|
|
Загрузка…
Ссылка в новой задаче