Skip to content

Commit

Permalink
Merge pull request conformal#55 from twstrike/wrap-all-over
Browse files Browse the repository at this point in the history
Use wrapObject all over
  • Loading branch information
andre-hub committed Dec 16, 2015
2 parents 7929189 + 74a9a47 commit 2a6d2e8
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 108 deletions.
4 changes: 2 additions & 2 deletions gtk/accel.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (v *AccelGroup) native() *C.GtkAccelGroup {

func marshalAccelGroup(p uintptr) (interface{}, error) {
c := C.g_value_get_object((*C.GValue)(unsafe.Pointer(p)))
obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))}
obj := wrapObject(unsafe.Pointer(c))
return wrapAccelGroup(obj), nil
}

Expand Down Expand Up @@ -213,7 +213,7 @@ func (v *AccelMap) native() *C.GtkAccelMap {

func marshalAccelMap(p uintptr) (interface{}, error) {
c := C.g_value_get_object((*C.GValue)(unsafe.Pointer(p)))
obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))}
obj := wrapObject(unsafe.Pointer(c))
return wrapAccelMap(obj), nil
}

Expand Down
Loading

0 comments on commit 2a6d2e8

Please sign in to comment.