~ubuntu-branches/ubuntu/utopic/ruby-gir-ffi/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/ffi-gobject/object_class.rb

  • Committer: Package Import Robot
  • Author(s): TANIGUCHI Takaki
  • Date: 2014-06-22 16:13:36 UTC
  • mfrom: (10.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140622161336-zo88bzrlqw71cpyy
Tags: 0.7.4-1
* Imported Upstream version 0.7.4
* Bump Standards-Version to 3.9.5 (with no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
module GObject
 
2
  load_class :ObjectClass
 
3
 
 
4
  # Overrides for GObjectClass, a struct containing GObject's class data
 
5
  class ObjectClass
 
6
    def set_property= callback
 
7
      @struct[:set_property] = GObject::ObjectSetPropertyFunc.from callback
 
8
    end
 
9
 
 
10
    def get_property= callback
 
11
      @struct[:get_property] = GObject::ObjectGetPropertyFunc.from callback
 
12
    end
 
13
  end
 
14
end