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();
}
}

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_index(int line, int index);
void hide_tooltips();
void hide_tooltips() override;
void hide_dialogs() override;
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;
if (!autocomplete_dialog_rows.empty()) {
get_buffer()->begin_user_action();
hide_tooltips();
autocomplete_dialog->show();
}
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()->end_user_action();
};
hide_tooltips();
spellcheck_suggestions_dialog->show();
}
return false;

1
src/source_spellcheck.h

@ -12,6 +12,7 @@ namespace Source {
virtual void configure();
virtual void hide_tooltips() {}
virtual void hide_dialogs();
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->hide_tooltips();
};
view->hide_tooltips();
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->hide_tooltips();
};
view->hide_tooltips();
view->selection_dialog->show();
}
}

Loading…
Cancel
Save