/src/wrappers/gtk/library/gtk_tree_path_list.e

http://github.com/tybor/Liberty · Specman e · 47 lines · 32 code · 9 blank · 6 comment · 2 complexity · 3422621614e7fac6ab7d314aeb0556de MD5 · raw file

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