diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-04 12:24:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-04 22:10:54 +0200 |
commit | 2cab4acbe2aaaee6e5b9afeb68f3e555ecff2ec7 (patch) | |
tree | ca04beb6908221e95811e2acb26a626d7febf92b /vcl/unx/gtk3/gtk3gtkinst.cxx | |
parent | 5103c6a405e93bb05018ab7c89e7e9446c740aaa (diff) |
weld SwNumPositionTabPage
Change-Id: I12171eb00d5b8354456b629d58d20b22109e24f8
Reviewed-on: https://gerrit.libreoffice.org/53845
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk3/gtk3gtkinst.cxx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index d88b8a5b9e95..845e15ad15e4 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -3102,6 +3102,23 @@ public: enable_notify_events(); } + virtual void unselect(int pos) override + { + assert(gtk_tree_view_get_model(m_pTreeView) && "don't select when frozen"); + disable_notify_events(); + if (pos != -1) + { + GtkTreePath* path = gtk_tree_path_new_from_indices(pos, -1); + gtk_tree_selection_unselect_path(gtk_tree_view_get_selection(m_pTreeView), path); + gtk_tree_path_free(path); + } + else + { + gtk_tree_selection_select_all(gtk_tree_view_get_selection(m_pTreeView)); + } + enable_notify_events(); + } + virtual std::vector<int> get_selected_rows() const override { std::vector<int> aRows; |