Changeset 536

Show
Ignore:
Timestamp:
07/14/08 17:49:36 (2 months ago)
Author:
Mike Wey
Message:

Fix getPathAtPos

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/gtk/TreeView.d

    r530 r536  
    220220     *  TRUE if a row exists at that coordinate. 
    221221     */ 
    222     int getPathAtPos(gint x, gint y, inout TreePath path, inout TreeViewColumn column, out gint cellX, out gint cellY) 
    223     { 
    224         GtkTreePath* p = path.getTreePathStruct(); 
    225         GtkTreeViewColumn* c = column.getTreeViewColumnStruct(); 
    226          
    227         int result = gtk_tree_view_get_path_at_pos(gtkTreeView, x, y, &p, &c, &cellX, &cellY) 
     222    bool getPathAtPos(gint x, gint y, inout TreePath path, inout TreeViewColumn column, out gint cellX, out gint cellY) 
     223    { 
     224        GtkTreePath* p = (path is null) ? null : path.getTreePathStruct();  
     225        GtkTreeViewColumn* c = (column is null) ? null : column.getTreeViewColumnStruct(); 
     226         
     227        bool result = gtk_tree_view_get_path_at_pos(gtkTreeView, x, y, &p, &c, &cellX, &cellY) 
    228228        == 0 ? false : true; 
    229229         
  • trunk/wrap/APILookupGtk.txt

    r531 r536  
    29802980    int getPathAtPos(gint x, gint y, inout TreePath path, inout TreeViewColumn column, out gint cellX, out gint cellY) 
    29812981    { 
    2982         GtkTreePath* p = path.getTreePathStruct(); 
    2983         GtkTreeViewColumn* c = column.getTreeViewColumnStruct(); 
     2982        GtkTreePath* p = (path is null) ? null : path.getTreePathStruct();  
     2983        GtkTreeViewColumn* c = (column is null) ? null : column.getTreeViewColumnStruct(); 
    29842984 
    29852985        int result = gtk_tree_view_get_path_at_pos(gtkTreeView, x, y, &p, &c, &cellX, &cellY)