X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fhistorytreestore.cpp;h=b9573c82eba1525f99378747134fe15e82f6c45b;hb=432aa9c1918023ca0811e33ace5ee31e4f2558b0;hp=f9a1b8b85136d9bd1643419aa51f7f78a6929805;hpb=449972484abe4b99beef5ac1ed918814e76041c6;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/historytreestore.cpp b/synfig-studio/trunk/src/gtkmm/historytreestore.cpp index f9a1b8b..b9573c8 100644 --- a/synfig-studio/trunk/src/gtkmm/historytreestore.cpp +++ b/synfig-studio/trunk/src/gtkmm/historytreestore.cpp @@ -37,6 +37,8 @@ #include #include "instance.h" +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -213,3 +215,15 @@ HistoryTreeStore::on_action_status_changed(etl::handle&,int,const Glib::ustring& x,const Gtk::TreeModel::iterator& iter) +{ + const Model model; + + Glib::ustring substr(x.uppercase()); + Glib::ustring name((*iter)[model.name]); + name=name.uppercase(); + + return name.find(substr)==Glib::ustring::npos; +}