Browse Source

some minor

merge-requests/365/head
tedjk 11 years ago
parent
commit
8284464c53
  1. 4
      juci/api.cc
  2. 3
      juci/keybindings.cc

4
juci/api.cc

@ -205,13 +205,13 @@ Glib::RefPtr<Gtk::TextBuffer> libjuci::BufferFromNotebook() {
// int i = 0; // int i = 0;
// while (!PluginApi::notebook_->source_vec_.at(i)->view().has_focus()) { // while (!PluginApi::notebook_->source_vec_.at(i)->view().has_focus()) {
// i++; // i++;
//while(!PluginApi::notebook_->CurrentTextView().has_focus()) { // while(!PluginApi::notebook_->CurrentTextView().has_focus()) {
// i++; // i++;
// } // }
return Glib::RefPtr<Gtk::TextBuffer>(PluginApi::notebook_ return Glib::RefPtr<Gtk::TextBuffer>(PluginApi::notebook_
// ->source_vec_.at(i) // ->source_vec_.at(i)
// ->view().get_buffer()); // ->view().get_buffer());
->CurrentTextView().get_buffer()); ->CurrentTextView().get_buffer());
} }
Gtk::TextIter libjuci::IterFromNotebook() { Gtk::TextIter libjuci::IterFromNotebook() {

3
juci/keybindings.cc

@ -50,8 +50,7 @@ Keybindings::Config::Config(Keybindings::Config &original) {
Keybindings::Config::Config() { Keybindings::Config::Config() {
menu_xml_ = ""; menu_xml_ = "";
std::unordered_map<std::string, std::string> key_map(); }
}
void Keybindings::Config::AppendXml(std::string &child) { void Keybindings::Config::AppendXml(std::string &child) {
menu_xml_ += child; menu_xml_ += child;

Loading…
Cancel
Save