Browse Source

Hide tooltips when selectiondialogs are shown

merge-requests/365/head
Ole Christian Eidheim 10 years ago
parent
commit
3ecac6d4cc
  1. 1
      src/project.cc
  2. 2
      src/source.h
  3. 1
      src/source_clang.cc
  4. 1
      src/source_spellcheck.cc
  5. 1
      src/source_spellcheck.h
  6. 2
      src/window.cc

1
src/project.cc

@ -404,6 +404,7 @@ void Project::Clang::debug_backtrace() {
} }
} }
}; };
view->hide_tooltips();
view->selection_dialog->show(); view->selection_dialog->show();
} }
} }

2
src/source.h

@ -89,7 +89,7 @@ namespace Source {
void place_cursor_at_line_offset(int line, int offset); void place_cursor_at_line_offset(int line, int offset);
void place_cursor_at_line_index(int line, int index); void place_cursor_at_line_index(int line, int index);
void hide_tooltips(); void hide_tooltips() override;
void hide_dialogs() override; void hide_dialogs() override;
std::function<void(View* view, const std::string &status_text)> on_update_status; std::function<void(View* view, const std::string &status_text)> on_update_status;

1
src/source_clang.cc

@ -743,6 +743,7 @@ void Source::ClangViewAutocomplete::autocomplete() {
autocomplete_state=AutocompleteState::IDLE; autocomplete_state=AutocompleteState::IDLE;
if (!autocomplete_dialog_rows.empty()) { if (!autocomplete_dialog_rows.empty()) {
get_buffer()->begin_user_action(); get_buffer()->begin_user_action();
hide_tooltips();
autocomplete_dialog->show(); autocomplete_dialog->show();
} }
else else

1
src/source_spellcheck.cc

@ -147,6 +147,7 @@ Source::SpellCheckView::SpellCheckView() : Gsv::View() {
get_buffer()->insert(get_buffer()->get_insert()->get_iter(), selected); get_buffer()->insert(get_buffer()->get_insert()->get_iter(), selected);
get_buffer()->end_user_action(); get_buffer()->end_user_action();
}; };
hide_tooltips();
spellcheck_suggestions_dialog->show(); spellcheck_suggestions_dialog->show();
} }
return false; return false;

1
src/source_spellcheck.h

@ -12,6 +12,7 @@ namespace Source {
virtual void configure(); virtual void configure();
virtual void hide_tooltips() {}
virtual void hide_dialogs(); virtual void hide_dialogs();
void spellcheck(); void spellcheck();

2
src/window.cc

@ -533,6 +533,7 @@ void Window::set_menu_actions() {
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);
view->hide_tooltips(); view->hide_tooltips();
}; };
view->hide_tooltips();
view->selection_dialog->show(); view->selection_dialog->show();
} }
} }
@ -556,6 +557,7 @@ void Window::set_menu_actions() {
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);
view->hide_tooltips(); view->hide_tooltips();
}; };
view->hide_tooltips();
view->selection_dialog->show(); view->selection_dialog->show();
} }
} }

Loading…
Cancel
Save