X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdock_history.cpp;h=91e530f9a1c8320a6f2fd96e5d81072fbe2425d7;hb=2349d242e18afb3d3f440dba872cb7b5b40e7096;hp=248f554dd3a75927a4ec2e937e5f7c505d404165;hpb=37600b4b217caa5e316984ec0b035c5e8f9698af;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/dock_history.cpp b/synfig-studio/trunk/src/gtkmm/dock_history.cpp index 248f554..91e530f 100644 --- a/synfig-studio/trunk/src/gtkmm/dock_history.cpp +++ b/synfig-studio/trunk/src/gtkmm/dock_history.cpp @@ -44,6 +44,8 @@ #include #include "historytreestore.h" +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -109,7 +111,7 @@ Dock_History::Dock_History(): sigc::ptr_fun(studio::App::redo) ); - action_group->add( Gtk::Action::create("toolbar-history", "History") ); + action_group->add( Gtk::Action::create("toolbar-history", _("History")) ); App::ui_manager()->insert_action_group(action_group); Glib::ustring ui_info = @@ -183,7 +185,7 @@ Dock_History::create_action_tree() action_tree->append_column(*column); } /*{ - Gtk::TreeView::Column* column = Gtk::manage( new Gtk::TreeView::Column("Canvas") ); + Gtk::TreeView::Column* column = Gtk::manage( new Gtk::TreeView::Column(_("Canvas")) ); Gtk::CellRendererText *text_cr=Gtk::manage(new Gtk::CellRendererText()); text_cr->property_foreground()=Glib::ustring("#7f7f7f"); @@ -199,19 +201,19 @@ Dock_History::create_action_tree() Gtk::CellRendererText* cell_renderer_jump=Gtk::manage(new Gtk::CellRendererText()); column->pack_start(*cell_renderer_jump,true); - cell_renderer_jump->property_text()="(JMP)"; + cell_renderer_jump->property_text()=_("(JMP)"); cell_renderer_jump->property_foreground()="#003a7f"; column->set_resizable(); column->set_clickable(); - column->set_sort_column_id(COLUMNID_JUMP); + column->set_sort_column(COLUMNID_JUMP); action_tree->append_column(*column); //column->clicked(); } { - Gtk::TreeView::Column* column = Gtk::manage( new Gtk::TreeView::Column("Action") ); + Gtk::TreeView::Column* column = Gtk::manage( new Gtk::TreeView::Column(_("Action")) ); Gtk::CellRendererText *text_cr=Gtk::manage(new Gtk::CellRendererText()); text_cr->property_foreground()=Glib::ustring("#7f7f7f"); @@ -226,6 +228,9 @@ Dock_History::create_action_tree() action_tree->append_column(*column); } + action_tree->set_enable_search(true); + action_tree->set_search_column(history_tree_model.name); + action_tree->set_search_equal_func(sigc::ptr_fun(&studio::HistoryTreeStore::search_func)); action_tree->set_rules_hint(); // action_tree->signal_row_activated().connect(sigc::mem_fun(*this,&Dock_History::on_row_activate));