Skip to content

Commit

Permalink
Merge pull request #914 from gotk3/revert-913-paned-patch
Browse files Browse the repository at this point in the history
Revert "Fix Paned.GetHandleWindow(): should return gdk.Window, not gtk.Window"
  • Loading branch information
andre-hub committed Feb 2, 2024
2 parents cdc7059 + b541cdb commit 4b98879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtk/gtk.go
Original file line number Diff line number Diff line change
Expand Up @@ -7291,12 +7291,12 @@ func (v *Paned) GetChild2() (IWidget, error) {
}

// GetHandleWindow() is a wrapper around gtk_paned_get_handle_window().
func (v *Paned) GetHandleWindow() (*gdk.Window, error) {
func (v *Paned) GetHandleWindow() (*Window, error) {
c := C.gtk_paned_get_handle_window(v.native())
if c == nil {
return nil, nilPtrErr
}
return &gdk.Window{glib.Take(unsafe.Pointer(c))}, nil
return wrapWindow(glib.Take(unsafe.Pointer(c))), nil
}

// GetPosition() is a wrapper around gtk_paned_get_position().
Expand Down

0 comments on commit 4b98879

Please sign in to comment.