Skip to content

Commit

Permalink
Merge pull request #913 from cubiest/paned-patch
Browse files Browse the repository at this point in the history
Fix Paned.GetHandleWindow(): should return gdk.Window, not gtk.Window
  • Loading branch information
andre-hub committed Feb 2, 2024
2 parents 2fd4e95 + 24e5886 commit cdc7059
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() (*Window, error) {
func (v *Paned) GetHandleWindow() (*gdk.Window, error) {
c := C.gtk_paned_get_handle_window(v.native())
if c == nil {
return nil, nilPtrErr
}
return wrapWindow(glib.Take(unsafe.Pointer(c))), nil
return &gdk.Window{glib.Take(unsafe.Pointer(c))}, nil
}

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

0 comments on commit cdc7059

Please sign in to comment.