/vte/ext/vte/rbvte-terminalaccessible.c

https://github.com/geoffyoungs/ruby-gnome2 · C · 43 lines · 17 code · 7 blank · 19 comment · 0 complexity · 720e961f50e3479a766988de318b2129 MD5 · raw file

  1. /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
  2. /*
  3. * Copyright (C) 2006-2011 Ruby-GNOME2 Project Team
  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
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but 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,
  18. * MA 02110-1301 USA
  19. */
  20. #include "rbvte.h"
  21. #define RG_TARGET_NAMESPACE cTerminalAccessible
  22. static VALUE
  23. rg_initialize(VALUE self, VALUE terminal)
  24. {
  25. G_INITIALIZE(self, vte_terminal_accessible_new(RVAL2TERM(terminal)));
  26. return Qnil;
  27. }
  28. void
  29. Init_vte_access(VALUE mVte)
  30. {
  31. VALUE RG_TARGET_NAMESPACE;
  32. RG_TARGET_NAMESPACE = G_DEF_CLASS(VTE_TYPE_TERMINAL_ACCESSIBLE,
  33. "TerminalAccessible", mVte);
  34. RG_DEF_METHOD(initialize, 1);
  35. G_DEF_SETTERS(RG_TARGET_NAMESPACE);
  36. }