X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdock_history.cpp;h=4277f16c10302d0ec4c9da7a2f321c1d2f63ab68;hb=207785229d58cdebc3012076596fdc255dcf9879;hp=73658d9b23e15a44690cb6c0a3c9e1f6be0c5101;hpb=fa0d98d6982bcc2fc503cf7c0f4c05df30a5c370;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/dock_history.cpp b/synfig-studio/trunk/src/gtkmm/dock_history.cpp index 73658d9..4277f16 100644 --- a/synfig-studio/trunk/src/gtkmm/dock_history.cpp +++ b/synfig-studio/trunk/src/gtkmm/dock_history.cpp @@ -6,7 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2007 Chris Moore +** Copyright (c) 2007, 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -201,13 +201,13 @@ 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(); @@ -228,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));