diff --git a/gsmartcontrol/src/applib/app_gtkmm_utils.cpp b/gsmartcontrol/src/applib/app_gtkmm_utils.cpp index 201f3b4..6b61852 100644 --- a/gsmartcontrol/src/applib/app_gtkmm_utils.cpp +++ b/gsmartcontrol/src/applib/app_gtkmm_utils.cpp @@ -63,24 +63,6 @@ void app_gtkmm_set_widget_tooltip(Gtk::Widget& widget, -bool app_gtkmm_icon_theme_has_icon(Glib::RefPtr theme, - const Glib::ustring& icon_name, int size) -{ - if (!theme || !theme->has_icon(icon_name)) // check if it exists first, or exception may be thrown. - return false; - - std::vector sizes = theme->get_icon_sizes(icon_name); - - for (std::vector::const_iterator iter = sizes.begin(); iter != sizes.end(); ++iter) { - if (*iter == size || *iter == -1) // -1 means scalable - return true; - } - - return false; -} - - - namespace { /// This has been copied from _g_utf8_make_valid() (glib-2.20.4). diff --git a/gsmartcontrol/src/applib/app_gtkmm_utils.h b/gsmartcontrol/src/applib/app_gtkmm_utils.h index 622b043..74de72f 100644 --- a/gsmartcontrol/src/applib/app_gtkmm_utils.h +++ b/gsmartcontrol/src/applib/app_gtkmm_utils.h @@ -68,11 +68,6 @@ int app_gtkmm_create_tree_view_column(Gtk::TreeModelColumn& mcol, Gtk::TreeVi -/// Check whether the icon theme has the specified icon of size \c size. -bool app_gtkmm_icon_theme_has_icon(Glib::RefPtr theme, - const Glib::ustring& icon_name, int size); - - /// Get Glib::ustring from gchar*, freeing gchar*. Glib::ustring app_ustring_from_gchar(gchar* str);