Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

A few odd ends #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

A few odd ends #79

wants to merge 1 commit into from

Conversation

shish
Copy link

@shish shish commented Sep 6, 2014

Small parts from #59 which didn't fit anywhere else

@@ -863,6 +863,12 @@ func (v *AboutDialog) SetLicenseType(license License) {
C.gtk_about_dialog_set_license_type(v.native(), C.GtkLicense(license))
}

// SetLogo is a wrapper around gtk_about_dialog_set_logo().
func (v *AboutDialog) SetLogo(logo *gdk.Pixbuf) {
logoPtr := (*C.GdkDisplay)(unsafe.Pointer(logo.Native()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this being cast to a GdkDisplay instead of a GdkPixbuf? Same with SetIcon() below.

@shish
Copy link
Author

shish commented Sep 10, 2014

Rebased, deduplicated, and using GdkPixbuf for pixbufs instead of GdkDisplay

@@ -6217,6 +6223,11 @@ func (v *SpinButton) GetValue() float64 {
return float64(c)
}

// SetRange() is a wrapper around gtk_spin_button_set_range().
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This project is particular about comment formatting--you'll probably be asked to remove the parens after SetRange.

andre-hub added a commit to andre-hub/gotk3 that referenced this pull request Feb 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants