]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/dataview.h
Add wxDataViewCtrl::GTKPathToItem() function and use it.
[wxWidgets.git] / include / wx / gtk / dataview.h
index e01b0ece10785da37009885f6e9c5eb9da389630..b8064ad50dc3548e54ffcc94bf20ee501a988fa7 100644 (file)
@@ -14,6 +14,8 @@
 
 class WXDLLIMPEXP_FWD_ADV wxDataViewCtrlInternal;
 
+struct _GtkTreePath;
+
 // ---------------------------------------------------------
 // wxDataViewColumn
 // ---------------------------------------------------------
@@ -171,6 +173,10 @@ public:
     GtkWidget *GtkGetTreeView() { return m_treeview; }
     wxDataViewCtrlInternal* GtkGetInternal() { return m_internal; }
 
+    // Convert GTK path to our item. Returned item may be invalid if get_iter()
+    // failed.
+    wxDataViewItem GTKPathToItem(struct _GtkTreePath *path) const;
+
     virtual void OnInternalIdle();
 
 protected: