diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-10-01 13:08:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-10-03 00:08:53 +0200 |
commit | 8abc00614b746ce751838f9e33f62664ed515542 (patch) | |
tree | d9f90d815cdef5d14eff2bc020672379c5315deb | |
parent | use more SwPosition::SetContent (diff) | |
download | core-8abc00614b746ce751838f9e33f62664ed515542.tar.gz core-8abc00614b746ce751838f9e33f62664ed515542.zip |
use G_MAXINT to create an "invalid" path to use to unset cursor
Change-Id: I475a64ac3977bad716ce6f94a88ff02af37a932c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140847
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index ae5937dfa2ef..f0ba23618dcb 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -15188,7 +15188,7 @@ public: gtk_tree_view_scroll_to_cell(m_pTreeView, path, nullptr, false, 0, 0); } else - path = gtk_tree_path_new_from_string("0:1:0"); + path = gtk_tree_path_new_from_indices(G_MAXINT, -1); gtk_tree_view_set_cursor(m_pTreeView, path, nullptr, false); gtk_tree_path_free(path); enable_notify_events(); @@ -21152,7 +21152,7 @@ private: GtkTreePath* path; if (pos == -1) { - path = gtk_tree_path_new_from_string("0:1:0"); + path = gtk_tree_path_new_from_indices(G_MAXINT, -1); gtk_tree_selection_unselect_all(gtk_tree_view_get_selection(m_pTreeView)); if (m_pCellView) gtk_cell_view_set_displayed_row(m_pCellView, nullptr); |