Browse Source

No longer shows tooltip right after going to a usage.

merge-requests/365/head
eidheim 10 years ago
parent
commit
30a9a226fb
  1. 2
      src/source.h
  2. 2
      src/window.cc

2
src/source.h

@ -86,6 +86,7 @@ namespace Source {
std::function<void()> apply_fix_its; std::function<void()> apply_fix_its;
std::unique_ptr<SelectionDialog> selection_dialog; std::unique_ptr<SelectionDialog> selection_dialog;
sigc::connection delayed_tooltips_connection;
std::function<void(View* view, const std::string &status)> on_update_status; std::function<void(View* view, const std::string &status)> on_update_status;
std::function<void(View* view, const std::string &info)> on_update_info; std::function<void(View* view, const std::string &info)> on_update_info;
@ -108,7 +109,6 @@ namespace Source {
virtual void show_type_tooltips(const Gdk::Rectangle &rectangle) {} virtual void show_type_tooltips(const Gdk::Rectangle &rectangle) {}
gdouble on_motion_last_x; gdouble on_motion_last_x;
gdouble on_motion_last_y; gdouble on_motion_last_y;
sigc::connection delayed_tooltips_connection;
void set_tooltip_events(); void set_tooltip_events();
std::string get_line(const Gtk::TextIter &iter); std::string get_line(const Gtk::TextIter &iter);

2
src/window.cc

@ -468,7 +468,7 @@ void Window::set_menu_actions() {
g_main_context_iteration(NULL, false); g_main_context_iteration(NULL, false);
if(notebook.get_current_page()!=-1) if(notebook.get_current_page()!=-1)
view->scroll_to(view->get_buffer()->get_insert(), 0.0, 1.0, 0.5); view->scroll_to(view->get_buffer()->get_insert(), 0.0, 1.0, 0.5);
//delayed_tooltips_connection.disconnect(); view->delayed_tooltips_connection.disconnect();
}; };
current_view->selection_dialog->show(); current_view->selection_dialog->show();
} }

Loading…
Cancel
Save