@@ -589,9 +589,6 @@ type Objector interface {
589589 NotifyProperty (string , func ()) SignalHandle
590590 ObjectProperty (string ) interface {}
591591 SetObjectProperty (string , interface {})
592- ObjectData (string ) interface {}
593- SetObjectData (string , interface {})
594- StealObjectData (name string ) interface {}
595592 FreezeNotify ()
596593 ThawNotify ()
597594 StopEmission (string )
@@ -871,41 +868,6 @@ func (v *Object) NotifyProperty(property string, f func()) SignalHandle {
871868 )
872869}
873870
874- // Gets a named field from the objects table of associations
875- func (v * Object ) ObjectData (name string ) interface {} {
876- cstr := C .CString (name )
877- defer C .free (unsafe .Pointer (cstr ))
878-
879- ptr := C .g_object_get_data (v .native (), (* C .gchar )(cstr ))
880- runtime .KeepAlive (v )
881-
882- return gbox .Get (uintptr (ptr ))
883- }
884-
885- // Each object carries around a table of associations from strings to pointers. This function lets you set an association.
886- func (v * Object ) SetObjectData (name string , value interface {}) {
887- cstr := C .CString (name )
888- defer C .free (unsafe .Pointer (cstr ))
889-
890- ptr := C .gpointer (gbox .Assign (value ))
891-
892- C .g_object_set_data (v .native (), (* C .gchar )(cstr ), ptr )
893- runtime .KeepAlive (v )
894- }
895-
896- // Remove a specified datum from the object’s data associations
897- func (v * Object ) StealObjectData (name string ) interface {} {
898- cstr := C .CString (name )
899- defer C .free (unsafe .Pointer (cstr ))
900-
901- ptr := C .g_object_steal_data (v .native (), (* C .gchar )(cstr ))
902- defer gbox .Delete (uintptr (ptr ))
903-
904- runtime .KeepAlive (v )
905-
906- return gbox .Get (uintptr (ptr ))
907- }
908-
909871// FreezeNotify increases the freeze count on object. If the freeze count is
910872// non-zero, the emission of “notify” signals on object is stopped. The signals
911873// are queued until the freeze count is decreased to zero. Duplicate
0 commit comments