/src/wrappers/gtk/library/gtk_tree_path_list.e
Specman e | 47 lines | 32 code | 9 blank | 6 comment | 2 complexity | 3422621614e7fac6ab7d314aeb0556de MD5 | raw file
1indexing 2 copyright: "[ 3 Copyright (C) 2008 Paolo Redaelli 4 5 This library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public License 7 as published by the Free Software Foundation; either version 2.1 of 8 the License, or (at your option) any later version. 9 10 This library is distributed in the hope that it will be useful, but 11 WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with this library; if not, write to the Free Software 17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 02110-1301 USA 19 ]" 20 21class GTK_TREE_PATH_LIST 22 -- A list of GTK_TREE_PATH. An instance of this class and its contained 23 -- GTK_TREE_PATH are mostly certainly a temporary, short-lived, transient 24 -- objects used in callback agents of a GTK_TREE_MODEL. Therefore as a 25 -- temporary solution we willingfully don't handle correctly wrapper 26 -- uniqueness. 27 28 -- TODO: properly implement TRANSIENT 29inherit G_LIST[GTK_TREE_PATH] redefine dispose end 30 31insert GTK_TREE_MODEL_EXTERNALS undefine fill_tagged_out_memory end 32 33creation make, from_external_pointer 34 35feature -- Disposing 36 dispose is 37 do 38 g_list_foreach(handle, $gtk_tree_path_free, default_pointer) 39 g_list_free(handle) 40 handle:=default_pointer 41 end 42 43 wrapper (a_pointer: POINTER): GTK_TREE_PATH is 44 do 45 create Result.from_external_pointer(a_pointer) 46 end 47end -- class GTK_TREE_PATH_LIST