mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-26 22:05:34 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d768d8b690 | ||
|
|
7ded00815e |
@@ -12,12 +12,6 @@
|
||||
|
||||
---
|
||||
|
||||
**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,12 +13,6 @@ 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
|
||||
|
||||
@@ -765,7 +765,7 @@ void GscMainWindow::update_status_widgets()
|
||||
+ (model.empty() ? "" : (", " + model));
|
||||
if (name_label_) {
|
||||
name_label_->set_markup(info_str);
|
||||
app_gtkmm_set_widget_tooltip(*name_label_, info_str, false); // in case it doesn't fit
|
||||
app_gtkmm_set_widget_tooltip(*name_label_, info_str, true); // in case it doesn't fit
|
||||
}
|
||||
|
||||
const StorageProperty health_prop = drive->get_health_property();
|
||||
@@ -793,8 +793,8 @@ void GscMainWindow::update_status_widgets()
|
||||
}
|
||||
|
||||
if (family_label_) {
|
||||
family_label_->set_text(family);
|
||||
app_gtkmm_set_widget_tooltip(*family_label_, family, false); // in case it doesn't fit
|
||||
family_label_->set_markup(family);
|
||||
app_gtkmm_set_widget_tooltip(*family_label_, family, true); // in case it doesn't fit
|
||||
}
|
||||
|
||||
// std::string status_str = " " + device + (size.empty() ? "" : (", " + size)) + (family_fallback.empty() ? "" : (", " + family_fallback));
|
||||
|
||||
@@ -554,18 +554,10 @@ Glib::RefPtr<Gdk::Pixbuf> GscMainWindowIconView::load_icon_pixbuf(Glib::RefPtr<G
|
||||
{
|
||||
Glib::RefPtr<Gdk::Pixbuf> icon;
|
||||
|
||||
// Try the icon theme first; fall back to the bundled icon if needed.
|
||||
// Try XDG version first
|
||||
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