mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-26 22:05:34 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
871cd51e8a | ||
|
|
fa31a696a7 | ||
|
|
cab21bd6dd | ||
|
|
19c50fdd72 |
@@ -12,6 +12,12 @@
|
||||
|
||||
---
|
||||
|
||||
**SCAM ALERT:** gsmartcontrol[.]com is a phishing site! Please don't download anything from there!
|
||||
|
||||
Please always download GSmartControl from its official website [gsmartcontrol.shaduri.dev](https://gsmartcontrol.shaduri.dev) or the official GitHub repository [github.com/ashaduri/gsmartcontrol](https://github.com/ashaduri/gsmartcontrol).
|
||||
|
||||
---
|
||||
|
||||
[GSmartControl](https://gsmartcontrol.shaduri.dev)
|
||||
is a graphical user interface for smartctl (from [smartmontools](https://www.smartmontools.org/)
|
||||
package), which is a tool for
|
||||
|
||||
@@ -13,6 +13,12 @@ nav_order: 1
|
||||
|
||||
---
|
||||
|
||||
**SCAM ALERT:** gsmartcontrol[.]com is a phishing site! Please don't download anything from there!
|
||||
|
||||
Please always download GSmartControl from its official website [gsmartcontrol.shaduri.dev](https://gsmartcontrol.shaduri.dev) or the official GitHub repository [github.com/ashaduri/gsmartcontrol](https://github.com/ashaduri/gsmartcontrol).
|
||||
|
||||
---
|
||||
|
||||
[GSmartControl](https://gsmartcontrol.shaduri.dev)
|
||||
is a graphical user interface for smartctl (from [smartmontools](https://www.smartmontools.org/)
|
||||
package), which is a tool for
|
||||
|
||||
@@ -554,10 +554,18 @@ Glib::RefPtr<Gdk::Pixbuf> GscMainWindowIconView::load_icon_pixbuf(Glib::RefPtr<G
|
||||
{
|
||||
Glib::RefPtr<Gdk::Pixbuf> icon;
|
||||
|
||||
// Try XDG version first
|
||||
// Try the icon theme first; fall back to the bundled icon if needed.
|
||||
try {
|
||||
if (default_icon_theme && !xdg_icon_name.empty()) {
|
||||
icon = default_icon_theme->load_icon(xdg_icon_name, icon_size_, get_scale_factor(), Gtk::IconLookupFlags(0));
|
||||
|
||||
// Some icon themes may return an icon smaller than requested.
|
||||
// In that case, fall back to the bundled icon.
|
||||
if (icon &&
|
||||
(icon->get_width() < icon_size_ ||
|
||||
icon->get_height() < icon_size_)) {
|
||||
icon.reset();
|
||||
}
|
||||
}
|
||||
} catch (...) { } // ignore exceptions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user