Gen: re-run gen script
- commit
- a8113881eb9ab6eb6ed107d4d9236956cb985fa6
- author
- jwijenbergh · · 2024-01-14 13:28 UTC
- parent
- e4efc63
- signature
- GPG Unverified
1A2298F6C34F96E5The key is unknown
191 files · +777 -777
M v4/adw/adw-about-window.go +3 -3
| @@ -213,8 +213,8 @@ func AboutWindowNewFromInternalPtr(ptr uintptr) *AboutWindow { | |||
| 213 | 213 | var xNewAboutWindow func() uintptr | |
| 214 | 214 | ||
| 215 | 215 | // Creates a new `AdwAboutWindow`. | |
| 216 | - | func NewAboutWindow() *gtk.Widget { | |
| 217 | - | var cls *gtk.Widget | |
| 216 | + | func NewAboutWindow() *AboutWindow { | |
| 217 | + | var cls *AboutWindow | |
| 218 | 218 | ||
| 219 | 219 | cret := xNewAboutWindow() | |
| 220 | 220 | ||
| @@ -222,7 +222,7 @@ func NewAboutWindow() *gtk.Widget { | |||
| 222 | 222 | return nil | |
| 223 | 223 | } | |
| 224 | 224 | gobject.IncreaseRef(cret) | |
| 225 | - | cls = >k.Widget{} | |
| 225 | + | cls = &AboutWindow{} | |
| 226 | 226 | cls.Ptr = cret | |
| 227 | 227 | return cls | |
| 228 | 228 | } | |
M v4/adw/adw-action-row.go +3 -3
| @@ -70,8 +70,8 @@ func ActionRowNewFromInternalPtr(ptr uintptr) *ActionRow { | |||
| 70 | 70 | var xNewActionRow func() uintptr | |
| 71 | 71 | ||
| 72 | 72 | // Creates a new `AdwActionRow`. | |
| 73 | - | func NewActionRow() *gtk.Widget { | |
| 74 | - | var cls *gtk.Widget | |
| 73 | + | func NewActionRow() *ActionRow { | |
| 74 | + | var cls *ActionRow | |
| 75 | 75 | ||
| 76 | 76 | cret := xNewActionRow() | |
| 77 | 77 | ||
| @@ -79,7 +79,7 @@ func NewActionRow() *gtk.Widget { | |||
| 79 | 79 | return nil | |
| 80 | 80 | } | |
| 81 | 81 | gobject.IncreaseRef(cret) | |
| 82 | - | cls = >k.Widget{} | |
| 82 | + | cls = &ActionRow{} | |
| 83 | 83 | cls.Ptr = cret | |
| 84 | 84 | return cls | |
| 85 | 85 | } | |
M v4/adw/adw-animation-target.go +9 -9
| @@ -69,15 +69,15 @@ var xNewCallbackAnimationTarget func(uintptr, uintptr, uintptr) uintptr | |||
| 69 | 69 | ||
| 70 | 70 | // Creates a new `AdwAnimationTarget` that calls the given @callback during | |
| 71 | 71 | // the animation. | |
| 72 | - | func NewCallbackAnimationTarget(CallbackVar AnimationTargetFunc, UserDataVar uintptr, DestroyVar glib.DestroyNotify) *AnimationTarget { | |
| 73 | - | var cls *AnimationTarget | |
| 72 | + | func NewCallbackAnimationTarget(CallbackVar AnimationTargetFunc, UserDataVar uintptr, DestroyVar glib.DestroyNotify) *CallbackAnimationTarget { | |
| 73 | + | var cls *CallbackAnimationTarget | |
| 74 | 74 | ||
| 75 | 75 | cret := xNewCallbackAnimationTarget(purego.NewCallback(CallbackVar), UserDataVar, purego.NewCallback(DestroyVar)) | |
| 76 | 76 | ||
| 77 | 77 | if cret == 0 { | |
| 78 | 78 | return nil | |
| 79 | 79 | } | |
| 80 | - | cls = &AnimationTarget{} | |
| 80 | + | cls = &CallbackAnimationTarget{} | |
| 81 | 81 | cls.Ptr = cret | |
| 82 | 82 | return cls | |
| 83 | 83 | } | |
| @@ -106,15 +106,15 @@ var xNewPropertyAnimationTarget func(uintptr, string) uintptr | |||
| 106 | 106 | ||
| 107 | 107 | // Creates a new `AdwPropertyAnimationTarget` for the @property_name property on | |
| 108 | 108 | // @object. | |
| 109 | - | func NewPropertyAnimationTarget(ObjectVar *gobject.Object, PropertyNameVar string) *AnimationTarget { | |
| 110 | - | var cls *AnimationTarget | |
| 109 | + | func NewPropertyAnimationTarget(ObjectVar *gobject.Object, PropertyNameVar string) *PropertyAnimationTarget { | |
| 110 | + | var cls *PropertyAnimationTarget | |
| 111 | 111 | ||
| 112 | 112 | cret := xNewPropertyAnimationTarget(ObjectVar.GoPointer(), PropertyNameVar) | |
| 113 | 113 | ||
| 114 | 114 | if cret == 0 { | |
| 115 | 115 | return nil | |
| 116 | 116 | } | |
| 117 | - | cls = &AnimationTarget{} | |
| 117 | + | cls = &PropertyAnimationTarget{} | |
| 118 | 118 | cls.Ptr = cret | |
| 119 | 119 | return cls | |
| 120 | 120 | } | |
| @@ -123,15 +123,15 @@ var xNewForPspecPropertyAnimationTarget func(uintptr, uintptr) uintptr | |||
| 123 | 123 | ||
| 124 | 124 | // Creates a new `AdwPropertyAnimationTarget` for the @pspec property on | |
| 125 | 125 | // @object. | |
| 126 | - | func NewForPspecPropertyAnimationTarget(ObjectVar *gobject.Object, PspecVar *gobject.ParamSpec) *AnimationTarget { | |
| 127 | - | var cls *AnimationTarget | |
| 126 | + | func NewForPspecPropertyAnimationTarget(ObjectVar *gobject.Object, PspecVar *gobject.ParamSpec) *PropertyAnimationTarget { | |
| 127 | + | var cls *PropertyAnimationTarget | |
| 128 | 128 | ||
| 129 | 129 | cret := xNewForPspecPropertyAnimationTarget(ObjectVar.GoPointer(), PspecVar.GoPointer()) | |
| 130 | 130 | ||
| 131 | 131 | if cret == 0 { | |
| 132 | 132 | return nil | |
| 133 | 133 | } | |
| 134 | - | cls = &AnimationTarget{} | |
| 134 | + | cls = &PropertyAnimationTarget{} | |
| 135 | 135 | cls.Ptr = cret | |
| 136 | 136 | return cls | |
| 137 | 137 | } | |
M v4/adw/adw-application-window.go +3 -3
| @@ -53,8 +53,8 @@ func ApplicationWindowNewFromInternalPtr(ptr uintptr) *ApplicationWindow { | |||
| 53 | 53 | var xNewApplicationWindow func(uintptr) uintptr | |
| 54 | 54 | ||
| 55 | 55 | // Creates a new `AdwApplicationWindow` for @app. | |
| 56 | - | func NewApplicationWindow(AppVar *gtk.Application) *gtk.Widget { | |
| 57 | - | var cls *gtk.Widget | |
| 56 | + | func NewApplicationWindow(AppVar *gtk.Application) *ApplicationWindow { | |
| 57 | + | var cls *ApplicationWindow | |
| 58 | 58 | ||
| 59 | 59 | cret := xNewApplicationWindow(AppVar.GoPointer()) | |
| 60 | 60 | ||
| @@ -62,7 +62,7 @@ func NewApplicationWindow(AppVar *gtk.Application) *gtk.Widget { | |||
| 62 | 62 | return nil | |
| 63 | 63 | } | |
| 64 | 64 | gobject.IncreaseRef(cret) | |
| 65 | - | cls = >k.Widget{} | |
| 65 | + | cls = &ApplicationWindow{} | |
| 66 | 66 | cls.Ptr = cret | |
| 67 | 67 | return cls | |
| 68 | 68 | } | |
M v4/adw/adw-avatar.go +3 -3
| @@ -57,8 +57,8 @@ func AvatarNewFromInternalPtr(ptr uintptr) *Avatar { | |||
| 57 | 57 | var xNewAvatar func(int, string, bool) uintptr | |
| 58 | 58 | ||
| 59 | 59 | // Creates a new `AdwAvatar`. | |
| 60 | - | func NewAvatar(SizeVar int, TextVar string, ShowInitialsVar bool) *gtk.Widget { | |
| 61 | - | var cls *gtk.Widget | |
| 60 | + | func NewAvatar(SizeVar int, TextVar string, ShowInitialsVar bool) *Avatar { | |
| 61 | + | var cls *Avatar | |
| 62 | 62 | ||
| 63 | 63 | cret := xNewAvatar(SizeVar, TextVar, ShowInitialsVar) | |
| 64 | 64 | ||
| @@ -66,7 +66,7 @@ func NewAvatar(SizeVar int, TextVar string, ShowInitialsVar bool) *gtk.Widget { | |||
| 66 | 66 | return nil | |
| 67 | 67 | } | |
| 68 | 68 | gobject.IncreaseRef(cret) | |
| 69 | - | cls = >k.Widget{} | |
| 69 | + | cls = &Avatar{} | |
| 70 | 70 | cls.Ptr = cret | |
| 71 | 71 | return cls | |
| 72 | 72 | } | |
M v4/adw/adw-banner.go +3 -3
| @@ -56,8 +56,8 @@ func BannerNewFromInternalPtr(ptr uintptr) *Banner { | |||
| 56 | 56 | var xNewBanner func(string) uintptr | |
| 57 | 57 | ||
| 58 | 58 | // Creates a new `AdwBanner`. | |
| 59 | - | func NewBanner(TitleVar string) *gtk.Widget { | |
| 60 | - | var cls *gtk.Widget | |
| 59 | + | func NewBanner(TitleVar string) *Banner { | |
| 60 | + | var cls *Banner | |
| 61 | 61 | ||
| 62 | 62 | cret := xNewBanner(TitleVar) | |
| 63 | 63 | ||
| @@ -65,7 +65,7 @@ func NewBanner(TitleVar string) *gtk.Widget { | |||
| 65 | 65 | return nil | |
| 66 | 66 | } | |
| 67 | 67 | gobject.IncreaseRef(cret) | |
| 68 | - | cls = >k.Widget{} | |
| 68 | + | cls = &Banner{} | |
| 69 | 69 | cls.Ptr = cret | |
| 70 | 70 | return cls | |
| 71 | 71 | } | |
M v4/adw/adw-bin.go +3 -3
| @@ -45,8 +45,8 @@ func BinNewFromInternalPtr(ptr uintptr) *Bin { | |||
| 45 | 45 | var xNewBin func() uintptr | |
| 46 | 46 | ||
| 47 | 47 | // Creates a new `AdwBin`. | |
| 48 | - | func NewBin() *gtk.Widget { | |
| 49 | - | var cls *gtk.Widget | |
| 48 | + | func NewBin() *Bin { | |
| 49 | + | var cls *Bin | |
| 50 | 50 | ||
| 51 | 51 | cret := xNewBin() | |
| 52 | 52 | ||
| @@ -54,7 +54,7 @@ func NewBin() *gtk.Widget { | |||
| 54 | 54 | return nil | |
| 55 | 55 | } | |
| 56 | 56 | gobject.IncreaseRef(cret) | |
| 57 | - | cls = >k.Widget{} | |
| 57 | + | cls = &Bin{} | |
| 58 | 58 | cls.Ptr = cret | |
| 59 | 59 | return cls | |
| 60 | 60 | } | |
M v4/adw/adw-button-content.go +3 -3
| @@ -81,8 +81,8 @@ func ButtonContentNewFromInternalPtr(ptr uintptr) *ButtonContent { | |||
| 81 | 81 | var xNewButtonContent func() uintptr | |
| 82 | 82 | ||
| 83 | 83 | // Creates a new `AdwButtonContent`. | |
| 84 | - | func NewButtonContent() *gtk.Widget { | |
| 85 | - | var cls *gtk.Widget | |
| 84 | + | func NewButtonContent() *ButtonContent { | |
| 85 | + | var cls *ButtonContent | |
| 86 | 86 | ||
| 87 | 87 | cret := xNewButtonContent() | |
| 88 | 88 | ||
| @@ -90,7 +90,7 @@ func NewButtonContent() *gtk.Widget { | |||
| 90 | 90 | return nil | |
| 91 | 91 | } | |
| 92 | 92 | gobject.IncreaseRef(cret) | |
| 93 | - | cls = >k.Widget{} | |
| 93 | + | cls = &ButtonContent{} | |
| 94 | 94 | cls.Ptr = cret | |
| 95 | 95 | return cls | |
| 96 | 96 | } | |
M v4/adw/adw-carousel-indicator-dots.go +3 -3
| @@ -51,8 +51,8 @@ func CarouselIndicatorDotsNewFromInternalPtr(ptr uintptr) *CarouselIndicatorDots | |||
| 51 | 51 | var xNewCarouselIndicatorDots func() uintptr | |
| 52 | 52 | ||
| 53 | 53 | // Creates a new `AdwCarouselIndicatorDots`. | |
| 54 | - | func NewCarouselIndicatorDots() *gtk.Widget { | |
| 55 | - | var cls *gtk.Widget | |
| 54 | + | func NewCarouselIndicatorDots() *CarouselIndicatorDots { | |
| 55 | + | var cls *CarouselIndicatorDots | |
| 56 | 56 | ||
| 57 | 57 | cret := xNewCarouselIndicatorDots() | |
| 58 | 58 | ||
| @@ -60,7 +60,7 @@ func NewCarouselIndicatorDots() *gtk.Widget { | |||
| 60 | 60 | return nil | |
| 61 | 61 | } | |
| 62 | 62 | gobject.IncreaseRef(cret) | |
| 63 | - | cls = >k.Widget{} | |
| 63 | + | cls = &CarouselIndicatorDots{} | |
| 64 | 64 | cls.Ptr = cret | |
| 65 | 65 | return cls | |
| 66 | 66 | } | |
M v4/adw/adw-carousel-indicator-lines.go +3 -3
| @@ -50,8 +50,8 @@ func CarouselIndicatorLinesNewFromInternalPtr(ptr uintptr) *CarouselIndicatorLin | |||
| 50 | 50 | var xNewCarouselIndicatorLines func() uintptr | |
| 51 | 51 | ||
| 52 | 52 | // Creates a new `AdwCarouselIndicatorLines`. | |
| 53 | - | func NewCarouselIndicatorLines() *gtk.Widget { | |
| 54 | - | var cls *gtk.Widget | |
| 53 | + | func NewCarouselIndicatorLines() *CarouselIndicatorLines { | |
| 54 | + | var cls *CarouselIndicatorLines | |
| 55 | 55 | ||
| 56 | 56 | cret := xNewCarouselIndicatorLines() | |
| 57 | 57 | ||
| @@ -59,7 +59,7 @@ func NewCarouselIndicatorLines() *gtk.Widget { | |||
| 59 | 59 | return nil | |
| 60 | 60 | } | |
| 61 | 61 | gobject.IncreaseRef(cret) | |
| 62 | - | cls = >k.Widget{} | |
| 62 | + | cls = &CarouselIndicatorLines{} | |
| 63 | 63 | cls.Ptr = cret | |
| 64 | 64 | return cls | |
| 65 | 65 | } | |
M v4/adw/adw-carousel.go +3 -3
| @@ -50,8 +50,8 @@ func CarouselNewFromInternalPtr(ptr uintptr) *Carousel { | |||
| 50 | 50 | var xNewCarousel func() uintptr | |
| 51 | 51 | ||
| 52 | 52 | // Creates a new `AdwCarousel`. | |
| 53 | - | func NewCarousel() *gtk.Widget { | |
| 54 | - | var cls *gtk.Widget | |
| 53 | + | func NewCarousel() *Carousel { | |
| 54 | + | var cls *Carousel | |
| 55 | 55 | ||
| 56 | 56 | cret := xNewCarousel() | |
| 57 | 57 | ||
| @@ -59,7 +59,7 @@ func NewCarousel() *gtk.Widget { | |||
| 59 | 59 | return nil | |
| 60 | 60 | } | |
| 61 | 61 | gobject.IncreaseRef(cret) | |
| 62 | - | cls = >k.Widget{} | |
| 62 | + | cls = &Carousel{} | |
| 63 | 63 | cls.Ptr = cret | |
| 64 | 64 | return cls | |
| 65 | 65 | } | |
M v4/adw/adw-clamp-layout.go +3 -3
| @@ -56,15 +56,15 @@ func ClampLayoutNewFromInternalPtr(ptr uintptr) *ClampLayout { | |||
| 56 | 56 | var xNewClampLayout func() uintptr | |
| 57 | 57 | ||
| 58 | 58 | // Creates a new `AdwClampLayout`. | |
| 59 | - | func NewClampLayout() *gtk.LayoutManager { | |
| 60 | - | var cls *gtk.LayoutManager | |
| 59 | + | func NewClampLayout() *ClampLayout { | |
| 60 | + | var cls *ClampLayout | |
| 61 | 61 | ||
| 62 | 62 | cret := xNewClampLayout() | |
| 63 | 63 | ||
| 64 | 64 | if cret == 0 { | |
| 65 | 65 | return nil | |
| 66 | 66 | } | |
| 67 | - | cls = >k.LayoutManager{} | |
| 67 | + | cls = &ClampLayout{} | |
| 68 | 68 | cls.Ptr = cret | |
| 69 | 69 | return cls | |
| 70 | 70 | } | |
M v4/adw/adw-clamp-scrollable.go +3 -3
| @@ -38,8 +38,8 @@ func ClampScrollableNewFromInternalPtr(ptr uintptr) *ClampScrollable { | |||
| 38 | 38 | var xNewClampScrollable func() uintptr | |
| 39 | 39 | ||
| 40 | 40 | // Creates a new `AdwClampScrollable`. | |
| 41 | - | func NewClampScrollable() *gtk.Widget { | |
| 42 | - | var cls *gtk.Widget | |
| 41 | + | func NewClampScrollable() *ClampScrollable { | |
| 42 | + | var cls *ClampScrollable | |
| 43 | 43 | ||
| 44 | 44 | cret := xNewClampScrollable() | |
| 45 | 45 | ||
| @@ -47,7 +47,7 @@ func NewClampScrollable() *gtk.Widget { | |||
| 47 | 47 | return nil | |
| 48 | 48 | } | |
| 49 | 49 | gobject.IncreaseRef(cret) | |
| 50 | - | cls = >k.Widget{} | |
| 50 | + | cls = &ClampScrollable{} | |
| 51 | 51 | cls.Ptr = cret | |
| 52 | 52 | return cls | |
| 53 | 53 | } | |
M v4/adw/adw-clamp.go +3 -3
| @@ -61,8 +61,8 @@ func ClampNewFromInternalPtr(ptr uintptr) *Clamp { | |||
| 61 | 61 | var xNewClamp func() uintptr | |
| 62 | 62 | ||
| 63 | 63 | // Creates a new `AdwClamp`. | |
| 64 | - | func NewClamp() *gtk.Widget { | |
| 65 | - | var cls *gtk.Widget | |
| 64 | + | func NewClamp() *Clamp { | |
| 65 | + | var cls *Clamp | |
| 66 | 66 | ||
| 67 | 67 | cret := xNewClamp() | |
| 68 | 68 | ||
| @@ -70,7 +70,7 @@ func NewClamp() *gtk.Widget { | |||
| 70 | 70 | return nil | |
| 71 | 71 | } | |
| 72 | 72 | gobject.IncreaseRef(cret) | |
| 73 | - | cls = >k.Widget{} | |
| 73 | + | cls = &Clamp{} | |
| 74 | 74 | cls.Ptr = cret | |
| 75 | 75 | return cls | |
| 76 | 76 | } | |
M v4/adw/adw-combo-row.go +3 -3
| @@ -86,8 +86,8 @@ func ComboRowNewFromInternalPtr(ptr uintptr) *ComboRow { | |||
| 86 | 86 | var xNewComboRow func() uintptr | |
| 87 | 87 | ||
| 88 | 88 | // Creates a new `AdwComboRow`. | |
| 89 | - | func NewComboRow() *gtk.Widget { | |
| 90 | - | var cls *gtk.Widget | |
| 89 | + | func NewComboRow() *ComboRow { | |
| 90 | + | var cls *ComboRow | |
| 91 | 91 | ||
| 92 | 92 | cret := xNewComboRow() | |
| 93 | 93 | ||
| @@ -95,7 +95,7 @@ func NewComboRow() *gtk.Widget { | |||
| 95 | 95 | return nil | |
| 96 | 96 | } | |
| 97 | 97 | gobject.IncreaseRef(cret) | |
| 98 | - | cls = >k.Widget{} | |
| 98 | + | cls = &ComboRow{} | |
| 99 | 99 | cls.Ptr = cret | |
| 100 | 100 | return cls | |
| 101 | 101 | } | |
M v4/adw/adw-entry-row.go +3 -3
| @@ -69,8 +69,8 @@ func EntryRowNewFromInternalPtr(ptr uintptr) *EntryRow { | |||
| 69 | 69 | var xNewEntryRow func() uintptr | |
| 70 | 70 | ||
| 71 | 71 | // Creates a new `AdwEntryRow`. | |
| 72 | - | func NewEntryRow() *gtk.Widget { | |
| 73 | - | var cls *gtk.Widget | |
| 72 | + | func NewEntryRow() *EntryRow { | |
| 73 | + | var cls *EntryRow | |
| 74 | 74 | ||
| 75 | 75 | cret := xNewEntryRow() | |
| 76 | 76 | ||
| @@ -78,7 +78,7 @@ func NewEntryRow() *gtk.Widget { | |||
| 78 | 78 | return nil | |
| 79 | 79 | } | |
| 80 | 80 | gobject.IncreaseRef(cret) | |
| 81 | - | cls = >k.Widget{} | |
| 81 | + | cls = &EntryRow{} | |
| 82 | 82 | cls.Ptr = cret | |
| 83 | 83 | return cls | |
| 84 | 84 | } | |
M v4/adw/adw-expander-row.go +3 -3
| @@ -64,8 +64,8 @@ func ExpanderRowNewFromInternalPtr(ptr uintptr) *ExpanderRow { | |||
| 64 | 64 | var xNewExpanderRow func() uintptr | |
| 65 | 65 | ||
| 66 | 66 | // Creates a new `AdwExpanderRow`. | |
| 67 | - | func NewExpanderRow() *gtk.Widget { | |
| 68 | - | var cls *gtk.Widget | |
| 67 | + | func NewExpanderRow() *ExpanderRow { | |
| 68 | + | var cls *ExpanderRow | |
| 69 | 69 | ||
| 70 | 70 | cret := xNewExpanderRow() | |
| 71 | 71 | ||
| @@ -73,7 +73,7 @@ func NewExpanderRow() *gtk.Widget { | |||
| 73 | 73 | return nil | |
| 74 | 74 | } | |
| 75 | 75 | gobject.IncreaseRef(cret) | |
| 76 | - | cls = >k.Widget{} | |
| 76 | + | cls = &ExpanderRow{} | |
| 77 | 77 | cls.Ptr = cret | |
| 78 | 78 | return cls | |
| 79 | 79 | } | |
M v4/adw/adw-flap.go +3 -3
| @@ -131,8 +131,8 @@ func FlapNewFromInternalPtr(ptr uintptr) *Flap { | |||
| 131 | 131 | var xNewFlap func() uintptr | |
| 132 | 132 | ||
| 133 | 133 | // Creates a new `AdwFlap`. | |
| 134 | - | func NewFlap() *gtk.Widget { | |
| 135 | - | var cls *gtk.Widget | |
| 134 | + | func NewFlap() *Flap { | |
| 135 | + | var cls *Flap | |
| 136 | 136 | ||
| 137 | 137 | cret := xNewFlap() | |
| 138 | 138 | ||
| @@ -140,7 +140,7 @@ func NewFlap() *gtk.Widget { | |||
| 140 | 140 | return nil | |
| 141 | 141 | } | |
| 142 | 142 | gobject.IncreaseRef(cret) | |
| 143 | - | cls = >k.Widget{} | |
| 143 | + | cls = &Flap{} | |
| 144 | 144 | cls.Ptr = cret | |
| 145 | 145 | return cls | |
| 146 | 146 | } | |
M v4/adw/adw-header-bar.go +3 -3
| @@ -134,8 +134,8 @@ func HeaderBarNewFromInternalPtr(ptr uintptr) *HeaderBar { | |||
| 134 | 134 | var xNewHeaderBar func() uintptr | |
| 135 | 135 | ||
| 136 | 136 | // Creates a new `AdwHeaderBar`. | |
| 137 | - | func NewHeaderBar() *gtk.Widget { | |
| 138 | - | var cls *gtk.Widget | |
| 137 | + | func NewHeaderBar() *HeaderBar { | |
| 138 | + | var cls *HeaderBar | |
| 139 | 139 | ||
| 140 | 140 | cret := xNewHeaderBar() | |
| 141 | 141 | ||
| @@ -143,7 +143,7 @@ func NewHeaderBar() *gtk.Widget { | |||
| 143 | 143 | return nil | |
| 144 | 144 | } | |
| 145 | 145 | gobject.IncreaseRef(cret) | |
| 146 | - | cls = >k.Widget{} | |
| 146 | + | cls = &HeaderBar{} | |
| 147 | 147 | cls.Ptr = cret | |
| 148 | 148 | return cls | |
| 149 | 149 | } | |
M v4/adw/adw-leaflet.go +3 -3
| @@ -90,8 +90,8 @@ func LeafletNewFromInternalPtr(ptr uintptr) *Leaflet { | |||
| 90 | 90 | var xNewLeaflet func() uintptr | |
| 91 | 91 | ||
| 92 | 92 | // Creates a new `AdwLeaflet`. | |
| 93 | - | func NewLeaflet() *gtk.Widget { | |
| 94 | - | var cls *gtk.Widget | |
| 93 | + | func NewLeaflet() *Leaflet { | |
| 94 | + | var cls *Leaflet | |
| 95 | 95 | ||
| 96 | 96 | cret := xNewLeaflet() | |
| 97 | 97 | ||
| @@ -99,7 +99,7 @@ func NewLeaflet() *gtk.Widget { | |||
| 99 | 99 | return nil | |
| 100 | 100 | } | |
| 101 | 101 | gobject.IncreaseRef(cret) | |
| 102 | - | cls = >k.Widget{} | |
| 102 | + | cls = &Leaflet{} | |
| 103 | 103 | cls.Ptr = cret | |
| 104 | 104 | return cls | |
| 105 | 105 | } | |
M v4/adw/adw-message-dialog.go +3 -3
| @@ -209,8 +209,8 @@ var xNewMessageDialog func(uintptr, string, string) uintptr | |||
| 209 | 209 | // filename); | |
| 210 | 210 | // | |
| 211 | 211 | // ``` | |
| 212 | - | func NewMessageDialog(ParentVar *gtk.Window, HeadingVar string, BodyVar string) *gtk.Widget { | |
| 213 | - | var cls *gtk.Widget | |
| 212 | + | func NewMessageDialog(ParentVar *gtk.Window, HeadingVar string, BodyVar string) *MessageDialog { | |
| 213 | + | var cls *MessageDialog | |
| 214 | 214 | ||
| 215 | 215 | cret := xNewMessageDialog(ParentVar.GoPointer(), HeadingVar, BodyVar) | |
| 216 | 216 | ||
| @@ -218,7 +218,7 @@ func NewMessageDialog(ParentVar *gtk.Window, HeadingVar string, BodyVar string) | |||
| 218 | 218 | return nil | |
| 219 | 219 | } | |
| 220 | 220 | gobject.IncreaseRef(cret) | |
| 221 | - | cls = >k.Widget{} | |
| 221 | + | cls = &MessageDialog{} | |
| 222 | 222 | cls.Ptr = cret | |
| 223 | 223 | return cls | |
| 224 | 224 | } | |
M v4/adw/adw-password-entry-row.go +3 -3
| @@ -53,8 +53,8 @@ func PasswordEntryRowNewFromInternalPtr(ptr uintptr) *PasswordEntryRow { | |||
| 53 | 53 | var xNewPasswordEntryRow func() uintptr | |
| 54 | 54 | ||
| 55 | 55 | // Creates a new `AdwPasswordEntryRow`. | |
| 56 | - | func NewPasswordEntryRow() *gtk.Widget { | |
| 57 | - | var cls *gtk.Widget | |
| 56 | + | func NewPasswordEntryRow() *PasswordEntryRow { | |
| 57 | + | var cls *PasswordEntryRow | |
| 58 | 58 | ||
| 59 | 59 | cret := xNewPasswordEntryRow() | |
| 60 | 60 | ||
| @@ -62,7 +62,7 @@ func NewPasswordEntryRow() *gtk.Widget { | |||
| 62 | 62 | return nil | |
| 63 | 63 | } | |
| 64 | 64 | gobject.IncreaseRef(cret) | |
| 65 | - | cls = >k.Widget{} | |
| 65 | + | cls = &PasswordEntryRow{} | |
| 66 | 66 | cls.Ptr = cret | |
| 67 | 67 | return cls | |
| 68 | 68 | } | |
M v4/adw/adw-preferences-group.go +3 -3
| @@ -66,8 +66,8 @@ func PreferencesGroupNewFromInternalPtr(ptr uintptr) *PreferencesGroup { | |||
| 66 | 66 | var xNewPreferencesGroup func() uintptr | |
| 67 | 67 | ||
| 68 | 68 | // Creates a new `AdwPreferencesGroup`. | |
| 69 | - | func NewPreferencesGroup() *gtk.Widget { | |
| 70 | - | var cls *gtk.Widget | |
| 69 | + | func NewPreferencesGroup() *PreferencesGroup { | |
| 70 | + | var cls *PreferencesGroup | |
| 71 | 71 | ||
| 72 | 72 | cret := xNewPreferencesGroup() | |
| 73 | 73 | ||
| @@ -75,7 +75,7 @@ func NewPreferencesGroup() *gtk.Widget { | |||
| 75 | 75 | return nil | |
| 76 | 76 | } | |
| 77 | 77 | gobject.IncreaseRef(cret) | |
| 78 | - | cls = >k.Widget{} | |
| 78 | + | cls = &PreferencesGroup{} | |
| 79 | 79 | cls.Ptr = cret | |
| 80 | 80 | return cls | |
| 81 | 81 | } | |
M v4/adw/adw-preferences-page.go +3 -3
| @@ -52,8 +52,8 @@ func PreferencesPageNewFromInternalPtr(ptr uintptr) *PreferencesPage { | |||
| 52 | 52 | var xNewPreferencesPage func() uintptr | |
| 53 | 53 | ||
| 54 | 54 | // Creates a new `AdwPreferencesPage`. | |
| 55 | - | func NewPreferencesPage() *gtk.Widget { | |
| 56 | - | var cls *gtk.Widget | |
| 55 | + | func NewPreferencesPage() *PreferencesPage { | |
| 56 | + | var cls *PreferencesPage | |
| 57 | 57 | ||
| 58 | 58 | cret := xNewPreferencesPage() | |
| 59 | 59 | ||
| @@ -61,7 +61,7 @@ func NewPreferencesPage() *gtk.Widget { | |||
| 61 | 61 | return nil | |
| 62 | 62 | } | |
| 63 | 63 | gobject.IncreaseRef(cret) | |
| 64 | - | cls = >k.Widget{} | |
| 64 | + | cls = &PreferencesPage{} | |
| 65 | 65 | cls.Ptr = cret | |
| 66 | 66 | return cls | |
| 67 | 67 | } | |
M v4/adw/adw-preferences-row.go +3 -3
| @@ -43,8 +43,8 @@ func PreferencesRowNewFromInternalPtr(ptr uintptr) *PreferencesRow { | |||
| 43 | 43 | var xNewPreferencesRow func() uintptr | |
| 44 | 44 | ||
| 45 | 45 | // Creates a new `AdwPreferencesRow`. | |
| 46 | - | func NewPreferencesRow() *gtk.Widget { | |
| 47 | - | var cls *gtk.Widget | |
| 46 | + | func NewPreferencesRow() *PreferencesRow { | |
| 47 | + | var cls *PreferencesRow | |
| 48 | 48 | ||
| 49 | 49 | cret := xNewPreferencesRow() | |
| 50 | 50 | ||
| @@ -52,7 +52,7 @@ func NewPreferencesRow() *gtk.Widget { | |||
| 52 | 52 | return nil | |
| 53 | 53 | } | |
| 54 | 54 | gobject.IncreaseRef(cret) | |
| 55 | - | cls = >k.Widget{} | |
| 55 | + | cls = &PreferencesRow{} | |
| 56 | 56 | cls.Ptr = cret | |
| 57 | 57 | return cls | |
| 58 | 58 | } | |
M v4/adw/adw-preferences-window.go +3 -3
| @@ -51,8 +51,8 @@ func PreferencesWindowNewFromInternalPtr(ptr uintptr) *PreferencesWindow { | |||
| 51 | 51 | var xNewPreferencesWindow func() uintptr | |
| 52 | 52 | ||
| 53 | 53 | // Creates a new `AdwPreferencesWindow`. | |
| 54 | - | func NewPreferencesWindow() *gtk.Widget { | |
| 55 | - | var cls *gtk.Widget | |
| 54 | + | func NewPreferencesWindow() *PreferencesWindow { | |
| 55 | + | var cls *PreferencesWindow | |
| 56 | 56 | ||
| 57 | 57 | cret := xNewPreferencesWindow() | |
| 58 | 58 | ||
| @@ -60,7 +60,7 @@ func NewPreferencesWindow() *gtk.Widget { | |||
| 60 | 60 | return nil | |
| 61 | 61 | } | |
| 62 | 62 | gobject.IncreaseRef(cret) | |
| 63 | - | cls = >k.Widget{} | |
| 63 | + | cls = &PreferencesWindow{} | |
| 64 | 64 | cls.Ptr = cret | |
| 65 | 65 | return cls | |
| 66 | 66 | } | |
M v4/adw/adw-split-button.go +3 -3
| @@ -73,8 +73,8 @@ func SplitButtonNewFromInternalPtr(ptr uintptr) *SplitButton { | |||
| 73 | 73 | var xNewSplitButton func() uintptr | |
| 74 | 74 | ||
| 75 | 75 | // Creates a new `AdwSplitButton`. | |
| 76 | - | func NewSplitButton() *gtk.Widget { | |
| 77 | - | var cls *gtk.Widget | |
| 76 | + | func NewSplitButton() *SplitButton { | |
| 77 | + | var cls *SplitButton | |
| 78 | 78 | ||
| 79 | 79 | cret := xNewSplitButton() | |
| 80 | 80 | ||
| @@ -82,7 +82,7 @@ func NewSplitButton() *gtk.Widget { | |||
| 82 | 82 | return nil | |
| 83 | 83 | } | |
| 84 | 84 | gobject.IncreaseRef(cret) | |
| 85 | - | cls = >k.Widget{} | |
| 85 | + | cls = &SplitButton{} | |
| 86 | 86 | cls.Ptr = cret | |
| 87 | 87 | return cls | |
| 88 | 88 | } | |
M v4/adw/adw-spring-animation.go +3 -3
| @@ -64,8 +64,8 @@ var xNewSpringAnimation func(uintptr, float64, float64, *SpringParams, uintptr) | |||
| 64 | 64 | // | |
| 65 | 65 | // The animation will animate @target from @from to @to with the dynamics of a | |
| 66 | 66 | // spring described by @spring_params. | |
| 67 | - | func NewSpringAnimation(WidgetVar *gtk.Widget, FromVar float64, ToVar float64, SpringParamsVar *SpringParams, TargetVar *AnimationTarget) *Animation { | |
| 68 | - | var cls *Animation | |
| 67 | + | func NewSpringAnimation(WidgetVar *gtk.Widget, FromVar float64, ToVar float64, SpringParamsVar *SpringParams, TargetVar *AnimationTarget) *SpringAnimation { | |
| 68 | + | var cls *SpringAnimation | |
| 69 | 69 | ||
| 70 | 70 | cret := xNewSpringAnimation(WidgetVar.GoPointer(), FromVar, ToVar, SpringParamsVar, TargetVar.GoPointer()) | |
| 71 | 71 | ||
| @@ -73,7 +73,7 @@ func NewSpringAnimation(WidgetVar *gtk.Widget, FromVar float64, ToVar float64, S | |||
| 73 | 73 | return nil | |
| 74 | 74 | } | |
| 75 | 75 | gobject.IncreaseRef(cret) | |
| 76 | - | cls = &Animation{} | |
| 76 | + | cls = &SpringAnimation{} | |
| 77 | 77 | cls.Ptr = cret | |
| 78 | 78 | return cls | |
| 79 | 79 | } | |
M v4/adw/adw-squeezer.go +3 -3
| @@ -76,8 +76,8 @@ func SqueezerNewFromInternalPtr(ptr uintptr) *Squeezer { | |||
| 76 | 76 | var xNewSqueezer func() uintptr | |
| 77 | 77 | ||
| 78 | 78 | // Creates a new `AdwSqueezer`. | |
| 79 | - | func NewSqueezer() *gtk.Widget { | |
| 80 | - | var cls *gtk.Widget | |
| 79 | + | func NewSqueezer() *Squeezer { | |
| 80 | + | var cls *Squeezer | |
| 81 | 81 | ||
| 82 | 82 | cret := xNewSqueezer() | |
| 83 | 83 | ||
| @@ -85,7 +85,7 @@ func NewSqueezer() *gtk.Widget { | |||
| 85 | 85 | return nil | |
| 86 | 86 | } | |
| 87 | 87 | gobject.IncreaseRef(cret) | |
| 88 | - | cls = >k.Widget{} | |
| 88 | + | cls = &Squeezer{} | |
| 89 | 89 | cls.Ptr = cret | |
| 90 | 90 | return cls | |
| 91 | 91 | } | |
M v4/adw/adw-status-page.go +3 -3
| @@ -51,8 +51,8 @@ func StatusPageNewFromInternalPtr(ptr uintptr) *StatusPage { | |||
| 51 | 51 | var xNewStatusPage func() uintptr | |
| 52 | 52 | ||
| 53 | 53 | // Creates a new `AdwStatusPage`. | |
| 54 | - | func NewStatusPage() *gtk.Widget { | |
| 55 | - | var cls *gtk.Widget | |
| 54 | + | func NewStatusPage() *StatusPage { | |
| 55 | + | var cls *StatusPage | |
| 56 | 56 | ||
| 57 | 57 | cret := xNewStatusPage() | |
| 58 | 58 | ||
| @@ -60,7 +60,7 @@ func NewStatusPage() *gtk.Widget { | |||
| 60 | 60 | return nil | |
| 61 | 61 | } | |
| 62 | 62 | gobject.IncreaseRef(cret) | |
| 63 | - | cls = >k.Widget{} | |
| 63 | + | cls = &StatusPage{} | |
| 64 | 64 | cls.Ptr = cret | |
| 65 | 65 | return cls | |
| 66 | 66 | } | |
M v4/adw/adw-tab-button.go +3 -3
| @@ -64,8 +64,8 @@ func TabButtonNewFromInternalPtr(ptr uintptr) *TabButton { | |||
| 64 | 64 | var xNewTabButton func() uintptr | |
| 65 | 65 | ||
| 66 | 66 | // Creates a new `AdwTabButton`. | |
| 67 | - | func NewTabButton() *gtk.Widget { | |
| 68 | - | var cls *gtk.Widget | |
| 67 | + | func NewTabButton() *TabButton { | |
| 68 | + | var cls *TabButton | |
| 69 | 69 | ||
| 70 | 70 | cret := xNewTabButton() | |
| 71 | 71 | ||
| @@ -73,7 +73,7 @@ func NewTabButton() *gtk.Widget { | |||
| 73 | 73 | return nil | |
| 74 | 74 | } | |
| 75 | 75 | gobject.IncreaseRef(cret) | |
| 76 | - | cls = >k.Widget{} | |
| 76 | + | cls = &TabButton{} | |
| 77 | 77 | cls.Ptr = cret | |
| 78 | 78 | return cls | |
| 79 | 79 | } | |
M v4/adw/adw-tab-overview.go +3 -3
| @@ -91,8 +91,8 @@ func TabOverviewNewFromInternalPtr(ptr uintptr) *TabOverview { | |||
| 91 | 91 | var xNewTabOverview func() uintptr | |
| 92 | 92 | ||
| 93 | 93 | // Creates a new `AdwTabOverview`. | |
| 94 | - | func NewTabOverview() *gtk.Widget { | |
| 95 | - | var cls *gtk.Widget | |
| 94 | + | func NewTabOverview() *TabOverview { | |
| 95 | + | var cls *TabOverview | |
| 96 | 96 | ||
| 97 | 97 | cret := xNewTabOverview() | |
| 98 | 98 | ||
| @@ -100,7 +100,7 @@ func NewTabOverview() *gtk.Widget { | |||
| 100 | 100 | return nil | |
| 101 | 101 | } | |
| 102 | 102 | gobject.IncreaseRef(cret) | |
| 103 | - | cls = >k.Widget{} | |
| 103 | + | cls = &TabOverview{} | |
| 104 | 104 | cls.Ptr = cret | |
| 105 | 105 | return cls | |
| 106 | 106 | } | |
M v4/adw/adw-timed-animation.go +3 -3
| @@ -47,8 +47,8 @@ var xNewTimedAnimation func(uintptr, float64, float64, uint, uintptr) uintptr | |||
| 47 | 47 | ||
| 48 | 48 | // Creates a new `AdwTimedAnimation` on @widget to animate @target from @from | |
| 49 | 49 | // to @to. | |
| 50 | - | func NewTimedAnimation(WidgetVar *gtk.Widget, FromVar float64, ToVar float64, DurationVar uint, TargetVar *AnimationTarget) *Animation { | |
| 51 | - | var cls *Animation | |
| 50 | + | func NewTimedAnimation(WidgetVar *gtk.Widget, FromVar float64, ToVar float64, DurationVar uint, TargetVar *AnimationTarget) *TimedAnimation { | |
| 51 | + | var cls *TimedAnimation | |
| 52 | 52 | ||
| 53 | 53 | cret := xNewTimedAnimation(WidgetVar.GoPointer(), FromVar, ToVar, DurationVar, TargetVar.GoPointer()) | |
| 54 | 54 | ||
| @@ -56,7 +56,7 @@ func NewTimedAnimation(WidgetVar *gtk.Widget, FromVar float64, ToVar float64, Du | |||
| 56 | 56 | return nil | |
| 57 | 57 | } | |
| 58 | 58 | gobject.IncreaseRef(cret) | |
| 59 | - | cls = &Animation{} | |
| 59 | + | cls = &TimedAnimation{} | |
| 60 | 60 | cls.Ptr = cret | |
| 61 | 61 | return cls | |
| 62 | 62 | } | |
M v4/adw/adw-toast-overlay.go +3 -3
| @@ -74,8 +74,8 @@ func ToastOverlayNewFromInternalPtr(ptr uintptr) *ToastOverlay { | |||
| 74 | 74 | var xNewToastOverlay func() uintptr | |
| 75 | 75 | ||
| 76 | 76 | // Creates a new `AdwToastOverlay`. | |
| 77 | - | func NewToastOverlay() *gtk.Widget { | |
| 78 | - | var cls *gtk.Widget | |
| 77 | + | func NewToastOverlay() *ToastOverlay { | |
| 78 | + | var cls *ToastOverlay | |
| 79 | 79 | ||
| 80 | 80 | cret := xNewToastOverlay() | |
| 81 | 81 | ||
| @@ -83,7 +83,7 @@ func NewToastOverlay() *gtk.Widget { | |||
| 83 | 83 | return nil | |
| 84 | 84 | } | |
| 85 | 85 | gobject.IncreaseRef(cret) | |
| 86 | - | cls = >k.Widget{} | |
| 86 | + | cls = &ToastOverlay{} | |
| 87 | 87 | cls.Ptr = cret | |
| 88 | 88 | return cls | |
| 89 | 89 | } | |
M v4/adw/adw-view-stack.go +3 -3
| @@ -95,8 +95,8 @@ func ViewStackNewFromInternalPtr(ptr uintptr) *ViewStack { | |||
| 95 | 95 | var xNewViewStack func() uintptr | |
| 96 | 96 | ||
| 97 | 97 | // Creates a new `AdwViewStack`. | |
| 98 | - | func NewViewStack() *gtk.Widget { | |
| 99 | - | var cls *gtk.Widget | |
| 98 | + | func NewViewStack() *ViewStack { | |
| 99 | + | var cls *ViewStack | |
| 100 | 100 | ||
| 101 | 101 | cret := xNewViewStack() | |
| 102 | 102 | ||
| @@ -104,7 +104,7 @@ func NewViewStack() *gtk.Widget { | |||
| 104 | 104 | return nil | |
| 105 | 105 | } | |
| 106 | 106 | gobject.IncreaseRef(cret) | |
| 107 | - | cls = >k.Widget{} | |
| 107 | + | cls = &ViewStack{} | |
| 108 | 108 | cls.Ptr = cret | |
| 109 | 109 | return cls | |
| 110 | 110 | } | |
M v4/adw/adw-view-switcher-bar.go +3 -3
| @@ -89,8 +89,8 @@ func ViewSwitcherBarNewFromInternalPtr(ptr uintptr) *ViewSwitcherBar { | |||
| 89 | 89 | var xNewViewSwitcherBar func() uintptr | |
| 90 | 90 | ||
| 91 | 91 | // Creates a new `AdwViewSwitcherBar`. | |
| 92 | - | func NewViewSwitcherBar() *gtk.Widget { | |
| 93 | - | var cls *gtk.Widget | |
| 92 | + | func NewViewSwitcherBar() *ViewSwitcherBar { | |
| 93 | + | var cls *ViewSwitcherBar | |
| 94 | 94 | ||
| 95 | 95 | cret := xNewViewSwitcherBar() | |
| 96 | 96 | ||
| @@ -98,7 +98,7 @@ func NewViewSwitcherBar() *gtk.Widget { | |||
| 98 | 98 | return nil | |
| 99 | 99 | } | |
| 100 | 100 | gobject.IncreaseRef(cret) | |
| 101 | - | cls = >k.Widget{} | |
| 101 | + | cls = &ViewSwitcherBar{} | |
| 102 | 102 | cls.Ptr = cret | |
| 103 | 103 | return cls | |
| 104 | 104 | } | |
M v4/adw/adw-view-switcher-title.go +3 -3
| @@ -95,8 +95,8 @@ func ViewSwitcherTitleNewFromInternalPtr(ptr uintptr) *ViewSwitcherTitle { | |||
| 95 | 95 | var xNewViewSwitcherTitle func() uintptr | |
| 96 | 96 | ||
| 97 | 97 | // Creates a new `AdwViewSwitcherTitle`. | |
| 98 | - | func NewViewSwitcherTitle() *gtk.Widget { | |
| 99 | - | var cls *gtk.Widget | |
| 98 | + | func NewViewSwitcherTitle() *ViewSwitcherTitle { | |
| 99 | + | var cls *ViewSwitcherTitle | |
| 100 | 100 | ||
| 101 | 101 | cret := xNewViewSwitcherTitle() | |
| 102 | 102 | ||
| @@ -104,7 +104,7 @@ func NewViewSwitcherTitle() *gtk.Widget { | |||
| 104 | 104 | return nil | |
| 105 | 105 | } | |
| 106 | 106 | gobject.IncreaseRef(cret) | |
| 107 | - | cls = >k.Widget{} | |
| 107 | + | cls = &ViewSwitcherTitle{} | |
| 108 | 108 | cls.Ptr = cret | |
| 109 | 109 | return cls | |
| 110 | 110 | } | |
M v4/adw/adw-view-switcher.go +3 -3
| @@ -71,8 +71,8 @@ func ViewSwitcherNewFromInternalPtr(ptr uintptr) *ViewSwitcher { | |||
| 71 | 71 | var xNewViewSwitcher func() uintptr | |
| 72 | 72 | ||
| 73 | 73 | // Creates a new `AdwViewSwitcher`. | |
| 74 | - | func NewViewSwitcher() *gtk.Widget { | |
| 75 | - | var cls *gtk.Widget | |
| 74 | + | func NewViewSwitcher() *ViewSwitcher { | |
| 75 | + | var cls *ViewSwitcher | |
| 76 | 76 | ||
| 77 | 77 | cret := xNewViewSwitcher() | |
| 78 | 78 | ||
| @@ -80,7 +80,7 @@ func NewViewSwitcher() *gtk.Widget { | |||
| 80 | 80 | return nil | |
| 81 | 81 | } | |
| 82 | 82 | gobject.IncreaseRef(cret) | |
| 83 | - | cls = >k.Widget{} | |
| 83 | + | cls = &ViewSwitcher{} | |
| 84 | 84 | cls.Ptr = cret | |
| 85 | 85 | return cls | |
| 86 | 86 | } | |
M v4/adw/adw-window-title.go +3 -3
| @@ -46,8 +46,8 @@ func WindowTitleNewFromInternalPtr(ptr uintptr) *WindowTitle { | |||
| 46 | 46 | var xNewWindowTitle func(string, string) uintptr | |
| 47 | 47 | ||
| 48 | 48 | // Creates a new `AdwWindowTitle`. | |
| 49 | - | func NewWindowTitle(TitleVar string, SubtitleVar string) *gtk.Widget { | |
| 50 | - | var cls *gtk.Widget | |
| 49 | + | func NewWindowTitle(TitleVar string, SubtitleVar string) *WindowTitle { | |
| 50 | + | var cls *WindowTitle | |
| 51 | 51 | ||
| 52 | 52 | cret := xNewWindowTitle(TitleVar, SubtitleVar) | |
| 53 | 53 | ||
| @@ -55,7 +55,7 @@ func NewWindowTitle(TitleVar string, SubtitleVar string) *gtk.Widget { | |||
| 55 | 55 | return nil | |
| 56 | 56 | } | |
| 57 | 57 | gobject.IncreaseRef(cret) | |
| 58 | - | cls = >k.Widget{} | |
| 58 | + | cls = &WindowTitle{} | |
| 59 | 59 | cls.Ptr = cret | |
| 60 | 60 | return cls | |
| 61 | 61 | } | |
M v4/adw/adw-window.go +3 -3
| @@ -68,8 +68,8 @@ func WindowNewFromInternalPtr(ptr uintptr) *Window { | |||
| 68 | 68 | var xNewWindow func() uintptr | |
| 69 | 69 | ||
| 70 | 70 | // Creates a new `AdwWindow`. | |
| 71 | - | func NewWindow() *gtk.Widget { | |
| 72 | - | var cls *gtk.Widget | |
| 71 | + | func NewWindow() *Window { | |
| 72 | + | var cls *Window | |
| 73 | 73 | ||
| 74 | 74 | cret := xNewWindow() | |
| 75 | 75 | ||
| @@ -77,7 +77,7 @@ func NewWindow() *gtk.Widget { | |||
| 77 | 77 | return nil | |
| 78 | 78 | } | |
| 79 | 79 | gobject.IncreaseRef(cret) | |
| 80 | - | cls = >k.Widget{} | |
| 80 | + | cls = &Window{} | |
| 81 | 81 | cls.Ptr = cret | |
| 82 | 82 | return cls | |
| 83 | 83 | } | |
M v4/gdkpixbuf/main.go +3 -3
| @@ -27,15 +27,15 @@ func PixbufNonAnimNewFromInternalPtr(ptr uintptr) *PixbufNonAnim { | |||
| 27 | 27 | ||
| 28 | 28 | var xNewPixbufNonAnim func(uintptr) uintptr | |
| 29 | 29 | ||
| 30 | - | func NewPixbufNonAnim(PixbufVar *Pixbuf) *PixbufAnimation { | |
| 31 | - | var cls *PixbufAnimation | |
| 30 | + | func NewPixbufNonAnim(PixbufVar *Pixbuf) *PixbufNonAnim { | |
| 31 | + | var cls *PixbufNonAnim | |
| 32 | 32 | ||
| 33 | 33 | cret := xNewPixbufNonAnim(PixbufVar.GoPointer()) | |
| 34 | 34 | ||
| 35 | 35 | if cret == 0 { | |
| 36 | 36 | return nil | |
| 37 | 37 | } | |
| 38 | - | cls = &PixbufAnimation{} | |
| 38 | + | cls = &PixbufNonAnim{} | |
| 39 | 39 | cls.Ptr = cret | |
| 40 | 40 | return cls | |
| 41 | 41 | } | |
M v4/gio/gbufferedinputstream.go +6 -6
| @@ -52,15 +52,15 @@ var xNewBufferedInputStream func(uintptr) uintptr | |||
| 52 | 52 | ||
| 53 | 53 | // Creates a new #GInputStream from the given @base_stream, with | |
| 54 | 54 | // a buffer set to the default size (4 kilobytes). | |
| 55 | - | func NewBufferedInputStream(BaseStreamVar *InputStream) *InputStream { | |
| 56 | - | var cls *InputStream | |
| 55 | + | func NewBufferedInputStream(BaseStreamVar *InputStream) *BufferedInputStream { | |
| 56 | + | var cls *BufferedInputStream | |
| 57 | 57 | ||
| 58 | 58 | cret := xNewBufferedInputStream(BaseStreamVar.GoPointer()) | |
| 59 | 59 | ||
| 60 | 60 | if cret == 0 { | |
| 61 | 61 | return nil | |
| 62 | 62 | } | |
| 63 | - | cls = &InputStream{} | |
| 63 | + | cls = &BufferedInputStream{} | |
| 64 | 64 | cls.Ptr = cret | |
| 65 | 65 | return cls | |
| 66 | 66 | } | |
| @@ -69,15 +69,15 @@ var xNewSizedBufferedInputStream func(uintptr, uint) uintptr | |||
| 69 | 69 | ||
| 70 | 70 | // Creates a new #GBufferedInputStream from the given @base_stream, | |
| 71 | 71 | // with a buffer set to @size. | |
| 72 | - | func NewSizedBufferedInputStream(BaseStreamVar *InputStream, SizeVar uint) *InputStream { | |
| 73 | - | var cls *InputStream | |
| 72 | + | func NewSizedBufferedInputStream(BaseStreamVar *InputStream, SizeVar uint) *BufferedInputStream { | |
| 73 | + | var cls *BufferedInputStream | |
| 74 | 74 | ||
| 75 | 75 | cret := xNewSizedBufferedInputStream(BaseStreamVar.GoPointer(), SizeVar) | |
| 76 | 76 | ||
| 77 | 77 | if cret == 0 { | |
| 78 | 78 | return nil | |
| 79 | 79 | } | |
| 80 | - | cls = &InputStream{} | |
| 80 | + | cls = &BufferedInputStream{} | |
| 81 | 81 | cls.Ptr = cret | |
| 82 | 82 | return cls | |
| 83 | 83 | } | |
M v4/gio/gbufferedoutputstream.go +6 -6
| @@ -51,15 +51,15 @@ func BufferedOutputStreamNewFromInternalPtr(ptr uintptr) *BufferedOutputStream { | |||
| 51 | 51 | var xNewBufferedOutputStream func(uintptr) uintptr | |
| 52 | 52 | ||
| 53 | 53 | // Creates a new buffered output stream for a base stream. | |
| 54 | - | func NewBufferedOutputStream(BaseStreamVar *OutputStream) *OutputStream { | |
| 55 | - | var cls *OutputStream | |
| 54 | + | func NewBufferedOutputStream(BaseStreamVar *OutputStream) *BufferedOutputStream { | |
| 55 | + | var cls *BufferedOutputStream | |
| 56 | 56 | ||
| 57 | 57 | cret := xNewBufferedOutputStream(BaseStreamVar.GoPointer()) | |
| 58 | 58 | ||
| 59 | 59 | if cret == 0 { | |
| 60 | 60 | return nil | |
| 61 | 61 | } | |
| 62 | - | cls = &OutputStream{} | |
| 62 | + | cls = &BufferedOutputStream{} | |
| 63 | 63 | cls.Ptr = cret | |
| 64 | 64 | return cls | |
| 65 | 65 | } | |
| @@ -67,15 +67,15 @@ func NewBufferedOutputStream(BaseStreamVar *OutputStream) *OutputStream { | |||
| 67 | 67 | var xNewSizedBufferedOutputStream func(uintptr, uint) uintptr | |
| 68 | 68 | ||
| 69 | 69 | // Creates a new buffered output stream with a given buffer size. | |
| 70 | - | func NewSizedBufferedOutputStream(BaseStreamVar *OutputStream, SizeVar uint) *OutputStream { | |
| 71 | - | var cls *OutputStream | |
| 70 | + | func NewSizedBufferedOutputStream(BaseStreamVar *OutputStream, SizeVar uint) *BufferedOutputStream { | |
| 71 | + | var cls *BufferedOutputStream | |
| 72 | 72 | ||
| 73 | 73 | cret := xNewSizedBufferedOutputStream(BaseStreamVar.GoPointer(), SizeVar) | |
| 74 | 74 | ||
| 75 | 75 | if cret == 0 { | |
| 76 | 76 | return nil | |
| 77 | 77 | } | |
| 78 | - | cls = &OutputStream{} | |
| 78 | + | cls = &BufferedOutputStream{} | |
| 79 | 79 | cls.Ptr = cret | |
| 80 | 80 | return cls | |
| 81 | 81 | } | |
M v4/gio/gconverterinputstream.go +3 -3
| @@ -43,15 +43,15 @@ func ConverterInputStreamNewFromInternalPtr(ptr uintptr) *ConverterInputStream { | |||
| 43 | 43 | var xNewConverterInputStream func(uintptr, uintptr) uintptr | |
| 44 | 44 | ||
| 45 | 45 | // Creates a new converter input stream for the @base_stream. | |
| 46 | - | func NewConverterInputStream(BaseStreamVar *InputStream, ConverterVar Converter) *InputStream { | |
| 47 | - | var cls *InputStream | |
| 46 | + | func NewConverterInputStream(BaseStreamVar *InputStream, ConverterVar Converter) *ConverterInputStream { | |
| 47 | + | var cls *ConverterInputStream | |
| 48 | 48 | ||
| 49 | 49 | cret := xNewConverterInputStream(BaseStreamVar.GoPointer(), ConverterVar.GoPointer()) | |
| 50 | 50 | ||
| 51 | 51 | if cret == 0 { | |
| 52 | 52 | return nil | |
| 53 | 53 | } | |
| 54 | - | cls = &InputStream{} | |
| 54 | + | cls = &ConverterInputStream{} | |
| 55 | 55 | cls.Ptr = cret | |
| 56 | 56 | return cls | |
| 57 | 57 | } | |
M v4/gio/gconverteroutputstream.go +3 -3
| @@ -43,15 +43,15 @@ func ConverterOutputStreamNewFromInternalPtr(ptr uintptr) *ConverterOutputStream | |||
| 43 | 43 | var xNewConverterOutputStream func(uintptr, uintptr) uintptr | |
| 44 | 44 | ||
| 45 | 45 | // Creates a new converter output stream for the @base_stream. | |
| 46 | - | func NewConverterOutputStream(BaseStreamVar *OutputStream, ConverterVar Converter) *OutputStream { | |
| 47 | - | var cls *OutputStream | |
| 46 | + | func NewConverterOutputStream(BaseStreamVar *OutputStream, ConverterVar Converter) *ConverterOutputStream { | |
| 47 | + | var cls *ConverterOutputStream | |
| 48 | 48 | ||
| 49 | 49 | cret := xNewConverterOutputStream(BaseStreamVar.GoPointer(), ConverterVar.GoPointer()) | |
| 50 | 50 | ||
| 51 | 51 | if cret == 0 { | |
| 52 | 52 | return nil | |
| 53 | 53 | } | |
| 54 | - | cls = &OutputStream{} | |
| 54 | + | cls = &ConverterOutputStream{} | |
| 55 | 55 | cls.Ptr = cret | |
| 56 | 56 | return cls | |
| 57 | 57 | } | |
M v4/gio/ginetsocketaddress.go +6 -6
| @@ -39,15 +39,15 @@ func InetSocketAddressNewFromInternalPtr(ptr uintptr) *InetSocketAddress { | |||
| 39 | 39 | var xNewInetSocketAddress func(uintptr, uint16) uintptr | |
| 40 | 40 | ||
| 41 | 41 | // Creates a new #GInetSocketAddress for @address and @port. | |
| 42 | - | func NewInetSocketAddress(AddressVar *InetAddress, PortVar uint16) *SocketAddress { | |
| 43 | - | var cls *SocketAddress | |
| 42 | + | func NewInetSocketAddress(AddressVar *InetAddress, PortVar uint16) *InetSocketAddress { | |
| 43 | + | var cls *InetSocketAddress | |
| 44 | 44 | ||
| 45 | 45 | cret := xNewInetSocketAddress(AddressVar.GoPointer(), PortVar) | |
| 46 | 46 | ||
| 47 | 47 | if cret == 0 { | |
| 48 | 48 | return nil | |
| 49 | 49 | } | |
| 50 | - | cls = &SocketAddress{} | |
| 50 | + | cls = &InetSocketAddress{} | |
| 51 | 51 | cls.Ptr = cret | |
| 52 | 52 | return cls | |
| 53 | 53 | } | |
| @@ -58,15 +58,15 @@ var xNewFromStringInetSocketAddress func(string, uint) uintptr | |||
| 58 | 58 | // | |
| 59 | 59 | // If @address is an IPv6 address, it can also contain a scope ID | |
| 60 | 60 | // (separated from the address by a `%`). | |
| 61 | - | func NewFromStringInetSocketAddress(AddressVar string, PortVar uint) *SocketAddress { | |
| 62 | - | var cls *SocketAddress | |
| 61 | + | func NewFromStringInetSocketAddress(AddressVar string, PortVar uint) *InetSocketAddress { | |
| 62 | + | var cls *InetSocketAddress | |
| 63 | 63 | ||
| 64 | 64 | cret := xNewFromStringInetSocketAddress(AddressVar, PortVar) | |
| 65 | 65 | ||
| 66 | 66 | if cret == 0 { | |
| 67 | 67 | return nil | |
| 68 | 68 | } | |
| 69 | - | cls = &SocketAddress{} | |
| 69 | + | cls = &InetSocketAddress{} | |
| 70 | 70 | cls.Ptr = cret | |
| 71 | 71 | return cls | |
| 72 | 72 | } | |
M v4/gio/gio-2.0.go +6 -6
| @@ -4721,15 +4721,15 @@ var xNewSimpleIOStream func(uintptr, uintptr) uintptr | |||
| 4721 | 4721 | ||
| 4722 | 4722 | // Creates a new #GSimpleIOStream wrapping @input_stream and @output_stream. | |
| 4723 | 4723 | // See also #GIOStream. | |
| 4724 | - | func NewSimpleIOStream(InputStreamVar *InputStream, OutputStreamVar *OutputStream) *IOStream { | |
| 4725 | - | var cls *IOStream | |
| 4724 | + | func NewSimpleIOStream(InputStreamVar *InputStream, OutputStreamVar *OutputStream) *SimpleIOStream { | |
| 4725 | + | var cls *SimpleIOStream | |
| 4726 | 4726 | ||
| 4727 | 4727 | cret := xNewSimpleIOStream(InputStreamVar.GoPointer(), OutputStreamVar.GoPointer()) | |
| 4728 | 4728 | ||
| 4729 | 4729 | if cret == 0 { | |
| 4730 | 4730 | return nil | |
| 4731 | 4731 | } | |
| 4732 | - | cls = &IOStream{} | |
| 4732 | + | cls = &SimpleIOStream{} | |
| 4733 | 4733 | cls.Ptr = cret | |
| 4734 | 4734 | return cls | |
| 4735 | 4735 | } | |
| @@ -4761,15 +4761,15 @@ var xNewSimplePermission func(bool) uintptr | |||
| 4761 | 4761 | ||
| 4762 | 4762 | // Creates a new #GPermission instance that represents an action that is | |
| 4763 | 4763 | // either always or never allowed. | |
| 4764 | - | func NewSimplePermission(AllowedVar bool) *Permission { | |
| 4765 | - | var cls *Permission | |
| 4764 | + | func NewSimplePermission(AllowedVar bool) *SimplePermission { | |
| 4765 | + | var cls *SimplePermission | |
| 4766 | 4766 | ||
| 4767 | 4767 | cret := xNewSimplePermission(AllowedVar) | |
| 4768 | 4768 | ||
| 4769 | 4769 | if cret == 0 { | |
| 4770 | 4770 | return nil | |
| 4771 | 4771 | } | |
| 4772 | - | cls = &Permission{} | |
| 4772 | + | cls = &SimplePermission{} | |
| 4773 | 4773 | cls.Ptr = cret | |
| 4774 | 4774 | return cls | |
| 4775 | 4775 | } | |
M v4/gio/gmemoryinputstream.go +9 -9
| @@ -42,15 +42,15 @@ func MemoryInputStreamNewFromInternalPtr(ptr uintptr) *MemoryInputStream { | |||
| 42 | 42 | var xNewMemoryInputStream func() uintptr | |
| 43 | 43 | ||
| 44 | 44 | // Creates a new empty #GMemoryInputStream. | |
| 45 | - | func NewMemoryInputStream() *InputStream { | |
| 46 | - | var cls *InputStream | |
| 45 | + | func NewMemoryInputStream() *MemoryInputStream { | |
| 46 | + | var cls *MemoryInputStream | |
| 47 | 47 | ||
| 48 | 48 | cret := xNewMemoryInputStream() | |
| 49 | 49 | ||
| 50 | 50 | if cret == 0 { | |
| 51 | 51 | return nil | |
| 52 | 52 | } | |
| 53 | - | cls = &InputStream{} | |
| 53 | + | cls = &MemoryInputStream{} | |
| 54 | 54 | cls.Ptr = cret | |
| 55 | 55 | return cls | |
| 56 | 56 | } | |
| @@ -58,15 +58,15 @@ func NewMemoryInputStream() *InputStream { | |||
| 58 | 58 | var xNewFromBytesMemoryInputStream func(*glib.Bytes) uintptr | |
| 59 | 59 | ||
| 60 | 60 | // Creates a new #GMemoryInputStream with data from the given @bytes. | |
| 61 | - | func NewFromBytesMemoryInputStream(BytesVar *glib.Bytes) *InputStream { | |
| 62 | - | var cls *InputStream | |
| 61 | + | func NewFromBytesMemoryInputStream(BytesVar *glib.Bytes) *MemoryInputStream { | |
| 62 | + | var cls *MemoryInputStream | |
| 63 | 63 | ||
| 64 | 64 | cret := xNewFromBytesMemoryInputStream(BytesVar) | |
| 65 | 65 | ||
| 66 | 66 | if cret == 0 { | |
| 67 | 67 | return nil | |
| 68 | 68 | } | |
| 69 | - | cls = &InputStream{} | |
| 69 | + | cls = &MemoryInputStream{} | |
| 70 | 70 | cls.Ptr = cret | |
| 71 | 71 | return cls | |
| 72 | 72 | } | |
| @@ -74,15 +74,15 @@ func NewFromBytesMemoryInputStream(BytesVar *glib.Bytes) *InputStream { | |||
| 74 | 74 | var xNewFromDataMemoryInputStream func(uintptr, int, uintptr) uintptr | |
| 75 | 75 | ||
| 76 | 76 | // Creates a new #GMemoryInputStream with data in memory of a given size. | |
| 77 | - | func NewFromDataMemoryInputStream(DataVar uintptr, LenVar int, DestroyVar glib.DestroyNotify) *InputStream { | |
| 78 | - | var cls *InputStream | |
| 77 | + | func NewFromDataMemoryInputStream(DataVar uintptr, LenVar int, DestroyVar glib.DestroyNotify) *MemoryInputStream { | |
| 78 | + | var cls *MemoryInputStream | |
| 79 | 79 | ||
| 80 | 80 | cret := xNewFromDataMemoryInputStream(DataVar, LenVar, purego.NewCallback(DestroyVar)) | |
| 81 | 81 | ||
| 82 | 82 | if cret == 0 { | |
| 83 | 83 | return nil | |
| 84 | 84 | } | |
| 85 | - | cls = &InputStream{} | |
| 85 | + | cls = &MemoryInputStream{} | |
| 86 | 86 | cls.Ptr = cret | |
| 87 | 87 | return cls | |
| 88 | 88 | } | |
M v4/gio/gmemoryoutputstream.go +6 -6
| @@ -88,15 +88,15 @@ var xNewMemoryOutputStream func(uintptr, uint, uintptr, uintptr) uintptr | |||
| 88 | 88 | // data = malloc (200); | |
| 89 | 89 | // stream3 = g_memory_output_stream_new (data, 200, NULL, free); | |
| 90 | 90 | // ]| | |
| 91 | - | func NewMemoryOutputStream(DataVar uintptr, SizeVar uint, ReallocFunctionVar ReallocFunc, DestroyFunctionVar glib.DestroyNotify) *OutputStream { | |
| 92 | - | var cls *OutputStream | |
| 91 | + | func NewMemoryOutputStream(DataVar uintptr, SizeVar uint, ReallocFunctionVar ReallocFunc, DestroyFunctionVar glib.DestroyNotify) *MemoryOutputStream { | |
| 92 | + | var cls *MemoryOutputStream | |
| 93 | 93 | ||
| 94 | 94 | cret := xNewMemoryOutputStream(DataVar, SizeVar, purego.NewCallback(ReallocFunctionVar), purego.NewCallback(DestroyFunctionVar)) | |
| 95 | 95 | ||
| 96 | 96 | if cret == 0 { | |
| 97 | 97 | return nil | |
| 98 | 98 | } | |
| 99 | - | cls = &OutputStream{} | |
| 99 | + | cls = &MemoryOutputStream{} | |
| 100 | 100 | cls.Ptr = cret | |
| 101 | 101 | return cls | |
| 102 | 102 | } | |
| @@ -105,15 +105,15 @@ var xNewResizableMemoryOutputStream func() uintptr | |||
| 105 | 105 | ||
| 106 | 106 | // Creates a new #GMemoryOutputStream, using g_realloc() and g_free() | |
| 107 | 107 | // for memory allocation. | |
| 108 | - | func NewResizableMemoryOutputStream() *OutputStream { | |
| 109 | - | var cls *OutputStream | |
| 108 | + | func NewResizableMemoryOutputStream() *MemoryOutputStream { | |
| 109 | + | var cls *MemoryOutputStream | |
| 110 | 110 | ||
| 111 | 111 | cret := xNewResizableMemoryOutputStream() | |
| 112 | 112 | ||
| 113 | 113 | if cret == 0 { | |
| 114 | 114 | return nil | |
| 115 | 115 | } | |
| 116 | - | cls = &OutputStream{} | |
| 116 | + | cls = &MemoryOutputStream{} | |
| 117 | 117 | cls.Ptr = cret | |
| 118 | 118 | return cls | |
| 119 | 119 | } | |
M v4/gio/gnativesocketaddress.go +3 -3
| @@ -37,15 +37,15 @@ func NativeSocketAddressNewFromInternalPtr(ptr uintptr) *NativeSocketAddress { | |||
| 37 | 37 | var xNewNativeSocketAddress func(uintptr, uint) uintptr | |
| 38 | 38 | ||
| 39 | 39 | // Creates a new #GNativeSocketAddress for @native and @len. | |
| 40 | - | func NewNativeSocketAddress(NativeVar uintptr, LenVar uint) *SocketAddress { | |
| 41 | - | var cls *SocketAddress | |
| 40 | + | func NewNativeSocketAddress(NativeVar uintptr, LenVar uint) *NativeSocketAddress { | |
| 41 | + | var cls *NativeSocketAddress | |
| 42 | 42 | ||
| 43 | 43 | cret := xNewNativeSocketAddress(NativeVar, LenVar) | |
| 44 | 44 | ||
| 45 | 45 | if cret == 0 { | |
| 46 | 46 | return nil | |
| 47 | 47 | } | |
| 48 | - | cls = &SocketAddress{} | |
| 48 | + | cls = &NativeSocketAddress{} | |
| 49 | 49 | cls.Ptr = cret | |
| 50 | 50 | return cls | |
| 51 | 51 | } | |
M v4/gio/gproxyaddress.go +3 -3
| @@ -43,15 +43,15 @@ var xNewProxyAddress func(uintptr, uint16, string, string, uint16, string, strin | |||
| 43 | 43 | // (Note that this method doesn't set the #GProxyAddress:uri or | |
| 44 | 44 | // #GProxyAddress:destination-protocol fields; use g_object_new() | |
| 45 | 45 | // directly if you want to set those.) | |
| 46 | - | func NewProxyAddress(InetaddrVar *InetAddress, PortVar uint16, ProtocolVar string, DestHostnameVar string, DestPortVar uint16, UsernameVar string, PasswordVar string) *SocketAddress { | |
| 47 | - | var cls *SocketAddress | |
| 46 | + | func NewProxyAddress(InetaddrVar *InetAddress, PortVar uint16, ProtocolVar string, DestHostnameVar string, DestPortVar uint16, UsernameVar string, PasswordVar string) *ProxyAddress { | |
| 47 | + | var cls *ProxyAddress | |
| 48 | 48 | ||
| 49 | 49 | cret := xNewProxyAddress(InetaddrVar.GoPointer(), PortVar, ProtocolVar, DestHostnameVar, DestPortVar, UsernameVar, PasswordVar) | |
| 50 | 50 | ||
| 51 | 51 | if cret == 0 { | |
| 52 | 52 | return nil | |
| 53 | 53 | } | |
| 54 | - | cls = &SocketAddress{} | |
| 54 | + | cls = &ProxyAddress{} | |
| 55 | 55 | cls.Ptr = cret | |
| 56 | 56 | return cls | |
| 57 | 57 | } | |
M v4/gio/gtcpwrapperconnection.go +3 -3
| @@ -42,15 +42,15 @@ func TcpWrapperConnectionNewFromInternalPtr(ptr uintptr) *TcpWrapperConnection { | |||
| 42 | 42 | var xNewTcpWrapperConnection func(uintptr, uintptr) uintptr | |
| 43 | 43 | ||
| 44 | 44 | // Wraps @base_io_stream and @socket together as a #GSocketConnection. | |
| 45 | - | func NewTcpWrapperConnection(BaseIoStreamVar *IOStream, SocketVar *Socket) *SocketConnection { | |
| 46 | - | var cls *SocketConnection | |
| 45 | + | func NewTcpWrapperConnection(BaseIoStreamVar *IOStream, SocketVar *Socket) *TcpWrapperConnection { | |
| 46 | + | var cls *TcpWrapperConnection | |
| 47 | 47 | ||
| 48 | 48 | cret := xNewTcpWrapperConnection(BaseIoStreamVar.GoPointer(), SocketVar.GoPointer()) | |
| 49 | 49 | ||
| 50 | 50 | if cret == 0 { | |
| 51 | 51 | return nil | |
| 52 | 52 | } | |
| 53 | - | cls = &SocketConnection{} | |
| 53 | + | cls = &TcpWrapperConnection{} | |
| 54 | 54 | cls.Ptr = cret | |
| 55 | 55 | return cls | |
| 56 | 56 | } | |
M v4/gio/gthreadedsocketservice.go +3 -3
| @@ -53,15 +53,15 @@ var xNewThreadedSocketService func(int) uintptr | |||
| 53 | 53 | ||
| 54 | 54 | // Creates a new #GThreadedSocketService with no listeners. Listeners | |
| 55 | 55 | // must be added with one of the #GSocketListener "add" methods. | |
| 56 | - | func NewThreadedSocketService(MaxThreadsVar int) *SocketService { | |
| 57 | - | var cls *SocketService | |
| 56 | + | func NewThreadedSocketService(MaxThreadsVar int) *ThreadedSocketService { | |
| 57 | + | var cls *ThreadedSocketService | |
| 58 | 58 | ||
| 59 | 59 | cret := xNewThreadedSocketService(MaxThreadsVar) | |
| 60 | 60 | ||
| 61 | 61 | if cret == 0 { | |
| 62 | 62 | return nil | |
| 63 | 63 | } | |
| 64 | - | cls = &SocketService{} | |
| 64 | + | cls = &ThreadedSocketService{} | |
| 65 | 65 | cls.Ptr = cret | |
| 66 | 66 | return cls | |
| 67 | 67 | } | |
M v4/gio/gunixcredentialsmessage.go +6 -6
| @@ -57,15 +57,15 @@ func UnixCredentialsMessageNewFromInternalPtr(ptr uintptr) *UnixCredentialsMessa | |||
| 57 | 57 | var xNewUnixCredentialsMessage func() uintptr | |
| 58 | 58 | ||
| 59 | 59 | // Creates a new #GUnixCredentialsMessage with credentials matching the current processes. | |
| 60 | - | func NewUnixCredentialsMessage() *SocketControlMessage { | |
| 61 | - | var cls *SocketControlMessage | |
| 60 | + | func NewUnixCredentialsMessage() *UnixCredentialsMessage { | |
| 61 | + | var cls *UnixCredentialsMessage | |
| 62 | 62 | ||
| 63 | 63 | cret := xNewUnixCredentialsMessage() | |
| 64 | 64 | ||
| 65 | 65 | if cret == 0 { | |
| 66 | 66 | return nil | |
| 67 | 67 | } | |
| 68 | - | cls = &SocketControlMessage{} | |
| 68 | + | cls = &UnixCredentialsMessage{} | |
| 69 | 69 | cls.Ptr = cret | |
| 70 | 70 | return cls | |
| 71 | 71 | } | |
| @@ -73,15 +73,15 @@ func NewUnixCredentialsMessage() *SocketControlMessage { | |||
| 73 | 73 | var xNewWithCredentialsUnixCredentialsMessage func(uintptr) uintptr | |
| 74 | 74 | ||
| 75 | 75 | // Creates a new #GUnixCredentialsMessage holding @credentials. | |
| 76 | - | func NewWithCredentialsUnixCredentialsMessage(CredentialsVar *Credentials) *SocketControlMessage { | |
| 77 | - | var cls *SocketControlMessage | |
| 76 | + | func NewWithCredentialsUnixCredentialsMessage(CredentialsVar *Credentials) *UnixCredentialsMessage { | |
| 77 | + | var cls *UnixCredentialsMessage | |
| 78 | 78 | ||
| 79 | 79 | cret := xNewWithCredentialsUnixCredentialsMessage(CredentialsVar.GoPointer()) | |
| 80 | 80 | ||
| 81 | 81 | if cret == 0 { | |
| 82 | 82 | return nil | |
| 83 | 83 | } | |
| 84 | - | cls = &SocketControlMessage{} | |
| 84 | + | cls = &UnixCredentialsMessage{} | |
| 85 | 85 | cls.Ptr = cret | |
| 86 | 86 | return cls | |
| 87 | 87 | } | |
M v4/gio/gunixfdmessage.go +6 -6
| @@ -52,15 +52,15 @@ var xNewUnixFDMessage func() uintptr | |||
| 52 | 52 | ||
| 53 | 53 | // Creates a new #GUnixFDMessage containing an empty file descriptor | |
| 54 | 54 | // list. | |
| 55 | - | func NewUnixFDMessage() *SocketControlMessage { | |
| 56 | - | var cls *SocketControlMessage | |
| 55 | + | func NewUnixFDMessage() *UnixFDMessage { | |
| 56 | + | var cls *UnixFDMessage | |
| 57 | 57 | ||
| 58 | 58 | cret := xNewUnixFDMessage() | |
| 59 | 59 | ||
| 60 | 60 | if cret == 0 { | |
| 61 | 61 | return nil | |
| 62 | 62 | } | |
| 63 | - | cls = &SocketControlMessage{} | |
| 63 | + | cls = &UnixFDMessage{} | |
| 64 | 64 | cls.Ptr = cret | |
| 65 | 65 | return cls | |
| 66 | 66 | } | |
| @@ -68,15 +68,15 @@ func NewUnixFDMessage() *SocketControlMessage { | |||
| 68 | 68 | var xNewWithFdListUnixFDMessage func(uintptr) uintptr | |
| 69 | 69 | ||
| 70 | 70 | // Creates a new #GUnixFDMessage containing @list. | |
| 71 | - | func NewWithFdListUnixFDMessage(FdListVar *UnixFDList) *SocketControlMessage { | |
| 72 | - | var cls *SocketControlMessage | |
| 71 | + | func NewWithFdListUnixFDMessage(FdListVar *UnixFDList) *UnixFDMessage { | |
| 72 | + | var cls *UnixFDMessage | |
| 73 | 73 | ||
| 74 | 74 | cret := xNewWithFdListUnixFDMessage(FdListVar.GoPointer()) | |
| 75 | 75 | ||
| 76 | 76 | if cret == 0 { | |
| 77 | 77 | return nil | |
| 78 | 78 | } | |
| 79 | - | cls = &SocketControlMessage{} | |
| 79 | + | cls = &UnixFDMessage{} | |
| 80 | 80 | cls.Ptr = cret | |
| 81 | 81 | return cls | |
| 82 | 82 | } | |
M v4/gio/gunixinputstream.go +3 -3
| @@ -49,15 +49,15 @@ var xNewUnixInputStream func(int, bool) uintptr | |||
| 49 | 49 | // | |
| 50 | 50 | // If @close_fd is %TRUE, the file descriptor will be closed | |
| 51 | 51 | // when the stream is closed. | |
| 52 | - | func NewUnixInputStream(FdVar int, CloseFdVar bool) *InputStream { | |
| 53 | - | var cls *InputStream | |
| 52 | + | func NewUnixInputStream(FdVar int, CloseFdVar bool) *UnixInputStream { | |
| 53 | + | var cls *UnixInputStream | |
| 54 | 54 | ||
| 55 | 55 | cret := xNewUnixInputStream(FdVar, CloseFdVar) | |
| 56 | 56 | ||
| 57 | 57 | if cret == 0 { | |
| 58 | 58 | return nil | |
| 59 | 59 | } | |
| 60 | - | cls = &InputStream{} | |
| 60 | + | cls = &UnixInputStream{} | |
| 61 | 61 | cls.Ptr = cret | |
| 62 | 62 | return cls | |
| 63 | 63 | } | |
M v4/gio/gunixoutputstream.go +3 -3
| @@ -49,15 +49,15 @@ var xNewUnixOutputStream func(int, bool) uintptr | |||
| 49 | 49 | // | |
| 50 | 50 | // If @close_fd, is %TRUE, the file descriptor will be closed when | |
| 51 | 51 | // the output stream is destroyed. | |
| 52 | - | func NewUnixOutputStream(FdVar int, CloseFdVar bool) *OutputStream { | |
| 53 | - | var cls *OutputStream | |
| 52 | + | func NewUnixOutputStream(FdVar int, CloseFdVar bool) *UnixOutputStream { | |
| 53 | + | var cls *UnixOutputStream | |
| 54 | 54 | ||
| 55 | 55 | cret := xNewUnixOutputStream(FdVar, CloseFdVar) | |
| 56 | 56 | ||
| 57 | 57 | if cret == 0 { | |
| 58 | 58 | return nil | |
| 59 | 59 | } | |
| 60 | - | cls = &OutputStream{} | |
| 60 | + | cls = &UnixOutputStream{} | |
| 61 | 61 | cls.Ptr = cret | |
| 62 | 62 | return cls | |
| 63 | 63 | } | |
M v4/gio/gunixsocketaddress.go +9 -9
| @@ -57,15 +57,15 @@ var xNewUnixSocketAddress func(string) uintptr | |||
| 57 | 57 | // | |
| 58 | 58 | // To create abstract socket addresses, on systems that support that, | |
| 59 | 59 | // use g_unix_socket_address_new_abstract(). | |
| 60 | - | func NewUnixSocketAddress(PathVar string) *SocketAddress { | |
| 61 | - | var cls *SocketAddress | |
| 60 | + | func NewUnixSocketAddress(PathVar string) *UnixSocketAddress { | |
| 61 | + | var cls *UnixSocketAddress | |
| 62 | 62 | ||
| 63 | 63 | cret := xNewUnixSocketAddress(PathVar) | |
| 64 | 64 | ||
| 65 | 65 | if cret == 0 { | |
| 66 | 66 | return nil | |
| 67 | 67 | } | |
| 68 | - | cls = &SocketAddress{} | |
| 68 | + | cls = &UnixSocketAddress{} | |
| 69 | 69 | cls.Ptr = cret | |
| 70 | 70 | return cls | |
| 71 | 71 | } | |
| @@ -74,15 +74,15 @@ var xNewAbstractUnixSocketAddress func(uintptr, int) uintptr | |||
| 74 | 74 | ||
| 75 | 75 | // Creates a new %G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED | |
| 76 | 76 | // #GUnixSocketAddress for @path. | |
| 77 | - | func NewAbstractUnixSocketAddress(PathVar uintptr, PathLenVar int) *SocketAddress { | |
| 78 | - | var cls *SocketAddress | |
| 77 | + | func NewAbstractUnixSocketAddress(PathVar uintptr, PathLenVar int) *UnixSocketAddress { | |
| 78 | + | var cls *UnixSocketAddress | |
| 79 | 79 | ||
| 80 | 80 | cret := xNewAbstractUnixSocketAddress(PathVar, PathLenVar) | |
| 81 | 81 | ||
| 82 | 82 | if cret == 0 { | |
| 83 | 83 | return nil | |
| 84 | 84 | } | |
| 85 | - | cls = &SocketAddress{} | |
| 85 | + | cls = &UnixSocketAddress{} | |
| 86 | 86 | cls.Ptr = cret | |
| 87 | 87 | return cls | |
| 88 | 88 | } | |
| @@ -120,15 +120,15 @@ var xNewWithTypeUnixSocketAddress func(uintptr, int, UnixSocketAddressType) uint | |||
| 120 | 120 | // when connecting to a server created by another process, you must | |
| 121 | 121 | // use the appropriate type corresponding to how that process created | |
| 122 | 122 | // its listening socket. | |
| 123 | - | func NewWithTypeUnixSocketAddress(PathVar uintptr, PathLenVar int, TypeVar UnixSocketAddressType) *SocketAddress { | |
| 124 | - | var cls *SocketAddress | |
| 123 | + | func NewWithTypeUnixSocketAddress(PathVar uintptr, PathLenVar int, TypeVar UnixSocketAddressType) *UnixSocketAddress { | |
| 124 | + | var cls *UnixSocketAddress | |
| 125 | 125 | ||
| 126 | 126 | cret := xNewWithTypeUnixSocketAddress(PathVar, PathLenVar, TypeVar) | |
| 127 | 127 | ||
| 128 | 128 | if cret == 0 { | |
| 129 | 129 | return nil | |
| 130 | 130 | } | |
| 131 | - | cls = &SocketAddress{} | |
| 131 | + | cls = &UnixSocketAddress{} | |
| 132 | 132 | cls.Ptr = cret | |
| 133 | 133 | return cls | |
| 134 | 134 | } | |
M v4/gsk/gskbroadwayrenderer.go +3 -3
| @@ -35,15 +35,15 @@ var xNewBroadwayRenderer func() uintptr | |||
| 35 | 35 | // | |
| 36 | 36 | // This function is only available when GTK was compiled with Broadway | |
| 37 | 37 | // support. | |
| 38 | - | func NewBroadwayRenderer() *Renderer { | |
| 39 | - | var cls *Renderer | |
| 38 | + | func NewBroadwayRenderer() *BroadwayRenderer { | |
| 39 | + | var cls *BroadwayRenderer | |
| 40 | 40 | ||
| 41 | 41 | cret := xNewBroadwayRenderer() | |
| 42 | 42 | ||
| 43 | 43 | if cret == 0 { | |
| 44 | 44 | return nil | |
| 45 | 45 | } | |
| 46 | - | cls = &Renderer{} | |
| 46 | + | cls = &BroadwayRenderer{} | |
| 47 | 47 | cls.Ptr = cret | |
| 48 | 48 | return cls | |
| 49 | 49 | } | |
M v4/gsk/gskcairorenderer.go +3 -3
| @@ -39,15 +39,15 @@ var xNewCairoRenderer func() uintptr | |||
| 39 | 39 | // The Cairo renderer is incomplete. It cannot render 3D transformed | |
| 40 | 40 | // content and will instead render an error marker. Its usage should be | |
| 41 | 41 | // avoided. | |
| 42 | - | func NewCairoRenderer() *Renderer { | |
| 43 | - | var cls *Renderer | |
| 42 | + | func NewCairoRenderer() *CairoRenderer { | |
| 43 | + | var cls *CairoRenderer | |
| 44 | 44 | ||
| 45 | 45 | cret := xNewCairoRenderer() | |
| 46 | 46 | ||
| 47 | 47 | if cret == 0 { | |
| 48 | 48 | return nil | |
| 49 | 49 | } | |
| 50 | - | cls = &Renderer{} | |
| 50 | + | cls = &CairoRenderer{} | |
| 51 | 51 | cls.Ptr = cret | |
| 52 | 52 | return cls | |
| 53 | 53 | } | |
M v4/gsk/gskglrenderer.go +3 -3
| @@ -28,15 +28,15 @@ func GLRendererNewFromInternalPtr(ptr uintptr) *GLRenderer { | |||
| 28 | 28 | var xNewGLRenderer func() uintptr | |
| 29 | 29 | ||
| 30 | 30 | // Creates a new `GskRenderer` using the new OpenGL renderer. | |
| 31 | - | func NewGLRenderer() *Renderer { | |
| 32 | - | var cls *Renderer | |
| 31 | + | func NewGLRenderer() *GLRenderer { | |
| 32 | + | var cls *GLRenderer | |
| 33 | 33 | ||
| 34 | 34 | cret := xNewGLRenderer() | |
| 35 | 35 | ||
| 36 | 36 | if cret == 0 { | |
| 37 | 37 | return nil | |
| 38 | 38 | } | |
| 39 | - | cls = &Renderer{} | |
| 39 | + | cls = &GLRenderer{} | |
| 40 | 40 | cls.Ptr = cret | |
| 41 | 41 | return cls | |
| 42 | 42 | } | |
M v4/gsk/main.go +3 -3
| @@ -28,15 +28,15 @@ func NglRendererNewFromInternalPtr(ptr uintptr) *NglRenderer { | |||
| 28 | 28 | var xNewNglRenderer func() uintptr | |
| 29 | 29 | ||
| 30 | 30 | // Same as gsk_gl_renderer_new(). | |
| 31 | - | func NewNglRenderer() *Renderer { | |
| 32 | - | var cls *Renderer | |
| 31 | + | func NewNglRenderer() *NglRenderer { | |
| 32 | + | var cls *NglRenderer | |
| 33 | 33 | ||
| 34 | 34 | cret := xNewNglRenderer() | |
| 35 | 35 | ||
| 36 | 36 | if cret == 0 { | |
| 37 | 37 | return nil | |
| 38 | 38 | } | |
| 39 | - | cls = &Renderer{} | |
| 39 | + | cls = &NglRenderer{} | |
| 40 | 40 | cls.Ptr = cret | |
| 41 | 41 | return cls | |
| 42 | 42 | } | |
M v4/gtk/gtkaboutdialog.go +3 -3
| @@ -129,8 +129,8 @@ func AboutDialogNewFromInternalPtr(ptr uintptr) *AboutDialog { | |||
| 129 | 129 | var xNewAboutDialog func() uintptr | |
| 130 | 130 | ||
| 131 | 131 | // Creates a new `GtkAboutDialog`. | |
| 132 | - | func NewAboutDialog() *Widget { | |
| 133 | - | var cls *Widget | |
| 132 | + | func NewAboutDialog() *AboutDialog { | |
| 133 | + | var cls *AboutDialog | |
| 134 | 134 | ||
| 135 | 135 | cret := xNewAboutDialog() | |
| 136 | 136 | ||
| @@ -138,7 +138,7 @@ func NewAboutDialog() *Widget { | |||
| 138 | 138 | return nil | |
| 139 | 139 | } | |
| 140 | 140 | gobject.IncreaseRef(cret) | |
| 141 | - | cls = &Widget{} | |
| 141 | + | cls = &AboutDialog{} | |
| 142 | 142 | cls.Ptr = cret | |
| 143 | 143 | return cls | |
| 144 | 144 | } | |
M v4/gtk/gtkactionbar.go +3 -3
| @@ -60,8 +60,8 @@ func ActionBarNewFromInternalPtr(ptr uintptr) *ActionBar { | |||
| 60 | 60 | var xNewActionBar func() uintptr | |
| 61 | 61 | ||
| 62 | 62 | // Creates a new `GtkActionBar` widget. | |
| 63 | - | func NewActionBar() *Widget { | |
| 64 | - | var cls *Widget | |
| 63 | + | func NewActionBar() *ActionBar { | |
| 64 | + | var cls *ActionBar | |
| 65 | 65 | ||
| 66 | 66 | cret := xNewActionBar() | |
| 67 | 67 | ||
| @@ -69,7 +69,7 @@ func NewActionBar() *Widget { | |||
| 69 | 69 | return nil | |
| 70 | 70 | } | |
| 71 | 71 | gobject.IncreaseRef(cret) | |
| 72 | - | cls = &Widget{} | |
| 72 | + | cls = &ActionBar{} | |
| 73 | 73 | cls.Ptr = cret | |
| 74 | 74 | return cls | |
| 75 | 75 | } | |
M v4/gtk/gtkappchooserbutton.go +3 -3
| @@ -49,8 +49,8 @@ var xNewAppChooserButton func(string) uintptr | |||
| 49 | 49 | ||
| 50 | 50 | // Creates a new `GtkAppChooserButton` for applications | |
| 51 | 51 | // that can handle content of the given type. | |
| 52 | - | func NewAppChooserButton(ContentTypeVar string) *Widget { | |
| 53 | - | var cls *Widget | |
| 52 | + | func NewAppChooserButton(ContentTypeVar string) *AppChooserButton { | |
| 53 | + | var cls *AppChooserButton | |
| 54 | 54 | ||
| 55 | 55 | cret := xNewAppChooserButton(ContentTypeVar) | |
| 56 | 56 | ||
| @@ -58,7 +58,7 @@ func NewAppChooserButton(ContentTypeVar string) *Widget { | |||
| 58 | 58 | return nil | |
| 59 | 59 | } | |
| 60 | 60 | gobject.IncreaseRef(cret) | |
| 61 | - | cls = &Widget{} | |
| 61 | + | cls = &AppChooserButton{} | |
| 62 | 62 | cls.Ptr = cret | |
| 63 | 63 | return cls | |
| 64 | 64 | } | |
M v4/gtk/gtkappchooserdialog.go +6 -6
| @@ -37,8 +37,8 @@ var xNewAppChooserDialog func(uintptr, DialogFlags, uintptr) uintptr | |||
| 37 | 37 | // Creates a new `GtkAppChooserDialog` for the provided `GFile`. | |
| 38 | 38 | // | |
| 39 | 39 | // The dialog will show applications that can open the file. | |
| 40 | - | func NewAppChooserDialog(ParentVar *Window, FlagsVar DialogFlags, FileVar gio.File) *Widget { | |
| 41 | - | var cls *Widget | |
| 40 | + | func NewAppChooserDialog(ParentVar *Window, FlagsVar DialogFlags, FileVar gio.File) *AppChooserDialog { | |
| 41 | + | var cls *AppChooserDialog | |
| 42 | 42 | ||
| 43 | 43 | cret := xNewAppChooserDialog(ParentVar.GoPointer(), FlagsVar, FileVar.GoPointer()) | |
| 44 | 44 | ||
| @@ -46,7 +46,7 @@ func NewAppChooserDialog(ParentVar *Window, FlagsVar DialogFlags, FileVar gio.Fi | |||
| 46 | 46 | return nil | |
| 47 | 47 | } | |
| 48 | 48 | gobject.IncreaseRef(cret) | |
| 49 | - | cls = &Widget{} | |
| 49 | + | cls = &AppChooserDialog{} | |
| 50 | 50 | cls.Ptr = cret | |
| 51 | 51 | return cls | |
| 52 | 52 | } | |
| @@ -56,8 +56,8 @@ var xNewForContentTypeAppChooserDialog func(uintptr, DialogFlags, string) uintpt | |||
| 56 | 56 | // Creates a new `GtkAppChooserDialog` for the provided content type. | |
| 57 | 57 | // | |
| 58 | 58 | // The dialog will show applications that can open the content type. | |
| 59 | - | func NewForContentTypeAppChooserDialog(ParentVar *Window, FlagsVar DialogFlags, ContentTypeVar string) *Widget { | |
| 60 | - | var cls *Widget | |
| 59 | + | func NewForContentTypeAppChooserDialog(ParentVar *Window, FlagsVar DialogFlags, ContentTypeVar string) *AppChooserDialog { | |
| 60 | + | var cls *AppChooserDialog | |
| 61 | 61 | ||
| 62 | 62 | cret := xNewForContentTypeAppChooserDialog(ParentVar.GoPointer(), FlagsVar, ContentTypeVar) | |
| 63 | 63 | ||
| @@ -65,7 +65,7 @@ func NewForContentTypeAppChooserDialog(ParentVar *Window, FlagsVar DialogFlags, | |||
| 65 | 65 | return nil | |
| 66 | 66 | } | |
| 67 | 67 | gobject.IncreaseRef(cret) | |
| 68 | - | cls = &Widget{} | |
| 68 | + | cls = &AppChooserDialog{} | |
| 69 | 69 | cls.Ptr = cret | |
| 70 | 70 | return cls | |
| 71 | 71 | } | |
M v4/gtk/gtkappchooserwidget.go +3 -3
| @@ -45,8 +45,8 @@ var xNewAppChooserWidget func(string) uintptr | |||
| 45 | 45 | ||
| 46 | 46 | // Creates a new `GtkAppChooserWidget` for applications | |
| 47 | 47 | // that can handle content of the given type. | |
| 48 | - | func NewAppChooserWidget(ContentTypeVar string) *Widget { | |
| 49 | - | var cls *Widget | |
| 48 | + | func NewAppChooserWidget(ContentTypeVar string) *AppChooserWidget { | |
| 49 | + | var cls *AppChooserWidget | |
| 50 | 50 | ||
| 51 | 51 | cret := xNewAppChooserWidget(ContentTypeVar) | |
| 52 | 52 | ||
| @@ -54,7 +54,7 @@ func NewAppChooserWidget(ContentTypeVar string) *Widget { | |||
| 54 | 54 | return nil | |
| 55 | 55 | } | |
| 56 | 56 | gobject.IncreaseRef(cret) | |
| 57 | - | cls = &Widget{} | |
| 57 | + | cls = &AppChooserWidget{} | |
| 58 | 58 | cls.Ptr = cret | |
| 59 | 59 | return cls | |
| 60 | 60 | } | |
M v4/gtk/gtkapplicationwindow.go +3 -3
| @@ -108,8 +108,8 @@ func ApplicationWindowNewFromInternalPtr(ptr uintptr) *ApplicationWindow { | |||
| 108 | 108 | var xNewApplicationWindow func(uintptr) uintptr | |
| 109 | 109 | ||
| 110 | 110 | // Creates a new `GtkApplicationWindow`. | |
| 111 | - | func NewApplicationWindow(ApplicationVar *Application) *Widget { | |
| 112 | - | var cls *Widget | |
| 111 | + | func NewApplicationWindow(ApplicationVar *Application) *ApplicationWindow { | |
| 112 | + | var cls *ApplicationWindow | |
| 113 | 113 | ||
| 114 | 114 | cret := xNewApplicationWindow(ApplicationVar.GoPointer()) | |
| 115 | 115 | ||
| @@ -117,7 +117,7 @@ func NewApplicationWindow(ApplicationVar *Application) *Widget { | |||
| 117 | 117 | return nil | |
| 118 | 118 | } | |
| 119 | 119 | gobject.IncreaseRef(cret) | |
| 120 | - | cls = &Widget{} | |
| 120 | + | cls = &ApplicationWindow{} | |
| 121 | 121 | cls.Ptr = cret | |
| 122 | 122 | return cls | |
| 123 | 123 | } | |
M v4/gtk/gtkaspectframe.go +3 -3
| @@ -28,8 +28,8 @@ func AspectFrameNewFromInternalPtr(ptr uintptr) *AspectFrame { | |||
| 28 | 28 | var xNewAspectFrame func(float32, float32, float32, bool) uintptr | |
| 29 | 29 | ||
| 30 | 30 | // Create a new `GtkAspectFrame`. | |
| 31 | - | func NewAspectFrame(XalignVar float32, YalignVar float32, RatioVar float32, ObeyChildVar bool) *Widget { | |
| 32 | - | var cls *Widget | |
| 31 | + | func NewAspectFrame(XalignVar float32, YalignVar float32, RatioVar float32, ObeyChildVar bool) *AspectFrame { | |
| 32 | + | var cls *AspectFrame | |
| 33 | 33 | ||
| 34 | 34 | cret := xNewAspectFrame(XalignVar, YalignVar, RatioVar, ObeyChildVar) | |
| 35 | 35 | ||
| @@ -37,7 +37,7 @@ func NewAspectFrame(XalignVar float32, YalignVar float32, RatioVar float32, Obey | |||
| 37 | 37 | return nil | |
| 38 | 38 | } | |
| 39 | 39 | gobject.IncreaseRef(cret) | |
| 40 | - | cls = &Widget{} | |
| 40 | + | cls = &AspectFrame{} | |
| 41 | 41 | cls.Ptr = cret | |
| 42 | 42 | return cls | |
| 43 | 43 | } | |
M v4/gtk/gtkassistant.go +3 -3
| @@ -105,8 +105,8 @@ func AssistantNewFromInternalPtr(ptr uintptr) *Assistant { | |||
| 105 | 105 | var xNewAssistant func() uintptr | |
| 106 | 106 | ||
| 107 | 107 | // Creates a new `GtkAssistant`. | |
| 108 | - | func NewAssistant() *Widget { | |
| 109 | - | var cls *Widget | |
| 108 | + | func NewAssistant() *Assistant { | |
| 109 | + | var cls *Assistant | |
| 110 | 110 | ||
| 111 | 111 | cret := xNewAssistant() | |
| 112 | 112 | ||
| @@ -114,7 +114,7 @@ func NewAssistant() *Widget { | |||
| 114 | 114 | return nil | |
| 115 | 115 | } | |
| 116 | 116 | gobject.IncreaseRef(cret) | |
| 117 | - | cls = &Widget{} | |
| 117 | + | cls = &Assistant{} | |
| 118 | 118 | cls.Ptr = cret | |
| 119 | 119 | return cls | |
| 120 | 120 | } | |
M v4/gtk/gtkbinlayout.go +3 -3
| @@ -36,15 +36,15 @@ func BinLayoutNewFromInternalPtr(ptr uintptr) *BinLayout { | |||
| 36 | 36 | var xNewBinLayout func() uintptr | |
| 37 | 37 | ||
| 38 | 38 | // Creates a new `GtkBinLayout` instance. | |
| 39 | - | func NewBinLayout() *LayoutManager { | |
| 40 | - | var cls *LayoutManager | |
| 39 | + | func NewBinLayout() *BinLayout { | |
| 40 | + | var cls *BinLayout | |
| 41 | 41 | ||
| 42 | 42 | cret := xNewBinLayout() | |
| 43 | 43 | ||
| 44 | 44 | if cret == 0 { | |
| 45 | 45 | return nil | |
| 46 | 46 | } | |
| 47 | - | cls = &LayoutManager{} | |
| 47 | + | cls = &BinLayout{} | |
| 48 | 48 | cls.Ptr = cret | |
| 49 | 49 | return cls | |
| 50 | 50 | } | |
M v4/gtk/gtkbox.go +3 -3
| @@ -64,8 +64,8 @@ func BoxNewFromInternalPtr(ptr uintptr) *Box { | |||
| 64 | 64 | var xNewBox func(Orientation, int) uintptr | |
| 65 | 65 | ||
| 66 | 66 | // Creates a new `GtkBox`. | |
| 67 | - | func NewBox(OrientationVar Orientation, SpacingVar int) *Widget { | |
| 68 | - | var cls *Widget | |
| 67 | + | func NewBox(OrientationVar Orientation, SpacingVar int) *Box { | |
| 68 | + | var cls *Box | |
| 69 | 69 | ||
| 70 | 70 | cret := xNewBox(OrientationVar, SpacingVar) | |
| 71 | 71 | ||
| @@ -73,7 +73,7 @@ func NewBox(OrientationVar Orientation, SpacingVar int) *Widget { | |||
| 73 | 73 | return nil | |
| 74 | 74 | } | |
| 75 | 75 | gobject.IncreaseRef(cret) | |
| 76 | - | cls = &Widget{} | |
| 76 | + | cls = &Box{} | |
| 77 | 77 | cls.Ptr = cret | |
| 78 | 78 | return cls | |
| 79 | 79 | } | |
M v4/gtk/gtkboxlayout.go +3 -3
| @@ -43,15 +43,15 @@ func BoxLayoutNewFromInternalPtr(ptr uintptr) *BoxLayout { | |||
| 43 | 43 | var xNewBoxLayout func(Orientation) uintptr | |
| 44 | 44 | ||
| 45 | 45 | // Creates a new `GtkBoxLayout`. | |
| 46 | - | func NewBoxLayout(OrientationVar Orientation) *LayoutManager { | |
| 47 | - | var cls *LayoutManager | |
| 46 | + | func NewBoxLayout(OrientationVar Orientation) *BoxLayout { | |
| 47 | + | var cls *BoxLayout | |
| 48 | 48 | ||
| 49 | 49 | cret := xNewBoxLayout(OrientationVar) | |
| 50 | 50 | ||
| 51 | 51 | if cret == 0 { | |
| 52 | 52 | return nil | |
| 53 | 53 | } | |
| 54 | - | cls = &LayoutManager{} | |
| 54 | + | cls = &BoxLayout{} | |
| 55 | 55 | cls.Ptr = cret | |
| 56 | 56 | return cls | |
| 57 | 57 | } | |
M v4/gtk/gtkbuilderlistitemfactory.go +6 -6
| @@ -56,15 +56,15 @@ var xNewFromBytesBuilderListItemFactory func(uintptr, *glib.Bytes) uintptr | |||
| 56 | 56 | ||
| 57 | 57 | // Creates a new `GtkBuilderListItemFactory` that instantiates widgets | |
| 58 | 58 | // using @bytes as the data to pass to `GtkBuilder`. | |
| 59 | - | func NewFromBytesBuilderListItemFactory(ScopeVar BuilderScope, BytesVar *glib.Bytes) *ListItemFactory { | |
| 60 | - | var cls *ListItemFactory | |
| 59 | + | func NewFromBytesBuilderListItemFactory(ScopeVar BuilderScope, BytesVar *glib.Bytes) *BuilderListItemFactory { | |
| 60 | + | var cls *BuilderListItemFactory | |
| 61 | 61 | ||
| 62 | 62 | cret := xNewFromBytesBuilderListItemFactory(ScopeVar.GoPointer(), BytesVar) | |
| 63 | 63 | ||
| 64 | 64 | if cret == 0 { | |
| 65 | 65 | return nil | |
| 66 | 66 | } | |
| 67 | - | cls = &ListItemFactory{} | |
| 67 | + | cls = &BuilderListItemFactory{} | |
| 68 | 68 | cls.Ptr = cret | |
| 69 | 69 | return cls | |
| 70 | 70 | } | |
| @@ -73,15 +73,15 @@ var xNewFromResourceBuilderListItemFactory func(uintptr, string) uintptr | |||
| 73 | 73 | ||
| 74 | 74 | // Creates a new `GtkBuilderListItemFactory` that instantiates widgets | |
| 75 | 75 | // using data read from the given @resource_path to pass to `GtkBuilder`. | |
| 76 | - | func NewFromResourceBuilderListItemFactory(ScopeVar BuilderScope, ResourcePathVar string) *ListItemFactory { | |
| 77 | - | var cls *ListItemFactory | |
| 76 | + | func NewFromResourceBuilderListItemFactory(ScopeVar BuilderScope, ResourcePathVar string) *BuilderListItemFactory { | |
| 77 | + | var cls *BuilderListItemFactory | |
| 78 | 78 | ||
| 79 | 79 | cret := xNewFromResourceBuilderListItemFactory(ScopeVar.GoPointer(), ResourcePathVar) | |
| 80 | 80 | ||
| 81 | 81 | if cret == 0 { | |
| 82 | 82 | return nil | |
| 83 | 83 | } | |
| 84 | - | cls = &ListItemFactory{} | |
| 84 | + | cls = &BuilderListItemFactory{} | |
| 85 | 85 | cls.Ptr = cret | |
| 86 | 86 | return cls | |
| 87 | 87 | } | |
M v4/gtk/gtkbutton.go +12 -12
| @@ -72,8 +72,8 @@ var xNewButton func() uintptr | |||
| 72 | 72 | // Creates a new `GtkButton` widget. | |
| 73 | 73 | // | |
| 74 | 74 | // To add a child widget to the button, use [method@Gtk.Button.set_child]. | |
| 75 | - | func NewButton() *Widget { | |
| 76 | - | var cls *Widget | |
| 75 | + | func NewButton() *Button { | |
| 76 | + | var cls *Button | |
| 77 | 77 | ||
| 78 | 78 | cret := xNewButton() | |
| 79 | 79 | ||
| @@ -81,7 +81,7 @@ func NewButton() *Widget { | |||
| 81 | 81 | return nil | |
| 82 | 82 | } | |
| 83 | 83 | gobject.IncreaseRef(cret) | |
| 84 | - | cls = &Widget{} | |
| 84 | + | cls = &Button{} | |
| 85 | 85 | cls.Ptr = cret | |
| 86 | 86 | return cls | |
| 87 | 87 | } | |
| @@ -93,8 +93,8 @@ var xNewFromIconNameButton func(string) uintptr | |||
| 93 | 93 | // If the icon name isn’t known, a “broken image” icon will be | |
| 94 | 94 | // displayed instead. If the current icon theme is changed, the icon | |
| 95 | 95 | // will be updated appropriately. | |
| 96 | - | func NewFromIconNameButton(IconNameVar string) *Widget { | |
| 97 | - | var cls *Widget | |
| 96 | + | func NewFromIconNameButton(IconNameVar string) *Button { | |
| 97 | + | var cls *Button | |
| 98 | 98 | ||
| 99 | 99 | cret := xNewFromIconNameButton(IconNameVar) | |
| 100 | 100 | ||
| @@ -102,7 +102,7 @@ func NewFromIconNameButton(IconNameVar string) *Widget { | |||
| 102 | 102 | return nil | |
| 103 | 103 | } | |
| 104 | 104 | gobject.IncreaseRef(cret) | |
| 105 | - | cls = &Widget{} | |
| 105 | + | cls = &Button{} | |
| 106 | 106 | cls.Ptr = cret | |
| 107 | 107 | return cls | |
| 108 | 108 | } | |
| @@ -110,8 +110,8 @@ func NewFromIconNameButton(IconNameVar string) *Widget { | |||
| 110 | 110 | var xNewWithLabelButton func(string) uintptr | |
| 111 | 111 | ||
| 112 | 112 | // Creates a `GtkButton` widget with a `GtkLabel` child. | |
| 113 | - | func NewWithLabelButton(LabelVar string) *Widget { | |
| 114 | - | var cls *Widget | |
| 113 | + | func NewWithLabelButton(LabelVar string) *Button { | |
| 114 | + | var cls *Button | |
| 115 | 115 | ||
| 116 | 116 | cret := xNewWithLabelButton(LabelVar) | |
| 117 | 117 | ||
| @@ -119,7 +119,7 @@ func NewWithLabelButton(LabelVar string) *Widget { | |||
| 119 | 119 | return nil | |
| 120 | 120 | } | |
| 121 | 121 | gobject.IncreaseRef(cret) | |
| 122 | - | cls = &Widget{} | |
| 122 | + | cls = &Button{} | |
| 123 | 123 | cls.Ptr = cret | |
| 124 | 124 | return cls | |
| 125 | 125 | } | |
| @@ -132,8 +132,8 @@ var xNewWithMnemonicButton func(string) uintptr | |||
| 132 | 132 | // If you need a literal underscore character in a label, use “__” (two | |
| 133 | 133 | // underscores). The first underlined character represents a keyboard | |
| 134 | 134 | // accelerator called a mnemonic. Pressing Alt and that key activates the button. | |
| 135 | - | func NewWithMnemonicButton(LabelVar string) *Widget { | |
| 136 | - | var cls *Widget | |
| 135 | + | func NewWithMnemonicButton(LabelVar string) *Button { | |
| 136 | + | var cls *Button | |
| 137 | 137 | ||
| 138 | 138 | cret := xNewWithMnemonicButton(LabelVar) | |
| 139 | 139 | ||
| @@ -141,7 +141,7 @@ func NewWithMnemonicButton(LabelVar string) *Widget { | |||
| 141 | 141 | return nil | |
| 142 | 142 | } | |
| 143 | 143 | gobject.IncreaseRef(cret) | |
| 144 | - | cls = &Widget{} | |
| 144 | + | cls = &Button{} | |
| 145 | 145 | cls.Ptr = cret | |
| 146 | 146 | return cls | |
| 147 | 147 | } | |
M v4/gtk/gtkcalendar.go +3 -3
| @@ -72,8 +72,8 @@ func CalendarNewFromInternalPtr(ptr uintptr) *Calendar { | |||
| 72 | 72 | var xNewCalendar func() uintptr | |
| 73 | 73 | ||
| 74 | 74 | // Creates a new calendar, with the current date being selected. | |
| 75 | - | func NewCalendar() *Widget { | |
| 76 | - | var cls *Widget | |
| 75 | + | func NewCalendar() *Calendar { | |
| 76 | + | var cls *Calendar | |
| 77 | 77 | ||
| 78 | 78 | cret := xNewCalendar() | |
| 79 | 79 | ||
| @@ -81,7 +81,7 @@ func NewCalendar() *Widget { | |||
| 81 | 81 | return nil | |
| 82 | 82 | } | |
| 83 | 83 | gobject.IncreaseRef(cret) | |
| 84 | - | cls = &Widget{} | |
| 84 | + | cls = &Calendar{} | |
| 85 | 85 | cls.Ptr = cret | |
| 86 | 86 | return cls | |
| 87 | 87 | } | |
M v4/gtk/gtkcellareabox.go +3 -3
| @@ -40,8 +40,8 @@ func CellAreaBoxNewFromInternalPtr(ptr uintptr) *CellAreaBox { | |||
| 40 | 40 | var xNewCellAreaBox func() uintptr | |
| 41 | 41 | ||
| 42 | 42 | // Creates a new `GtkCellAreaBox`. | |
| 43 | - | func NewCellAreaBox() *CellArea { | |
| 44 | - | var cls *CellArea | |
| 43 | + | func NewCellAreaBox() *CellAreaBox { | |
| 44 | + | var cls *CellAreaBox | |
| 45 | 45 | ||
| 46 | 46 | cret := xNewCellAreaBox() | |
| 47 | 47 | ||
| @@ -49,7 +49,7 @@ func NewCellAreaBox() *CellArea { | |||
| 49 | 49 | return nil | |
| 50 | 50 | } | |
| 51 | 51 | gobject.IncreaseRef(cret) | |
| 52 | - | cls = &CellArea{} | |
| 52 | + | cls = &CellAreaBox{} | |
| 53 | 53 | cls.Ptr = cret | |
| 54 | 54 | return cls | |
| 55 | 55 | } | |
M v4/gtk/gtkcellrendereraccel.go +3 -3
| @@ -37,8 +37,8 @@ func CellRendererAccelNewFromInternalPtr(ptr uintptr) *CellRendererAccel { | |||
| 37 | 37 | var xNewCellRendererAccel func() uintptr | |
| 38 | 38 | ||
| 39 | 39 | // Creates a new `GtkCellRendererAccel`. | |
| 40 | - | func NewCellRendererAccel() *CellRenderer { | |
| 41 | - | var cls *CellRenderer | |
| 40 | + | func NewCellRendererAccel() *CellRendererAccel { | |
| 41 | + | var cls *CellRendererAccel | |
| 42 | 42 | ||
| 43 | 43 | cret := xNewCellRendererAccel() | |
| 44 | 44 | ||
| @@ -46,7 +46,7 @@ func NewCellRendererAccel() *CellRenderer { | |||
| 46 | 46 | return nil | |
| 47 | 47 | } | |
| 48 | 48 | gobject.IncreaseRef(cret) | |
| 49 | - | cls = &CellRenderer{} | |
| 49 | + | cls = &CellRendererAccel{} | |
| 50 | 50 | cls.Ptr = cret | |
| 51 | 51 | return cls | |
| 52 | 52 | } | |
M v4/gtk/gtkcellrenderercombo.go +3 -3
| @@ -38,8 +38,8 @@ var xNewCellRendererCombo func() uintptr | |||
| 38 | 38 | // in a `GtkTreeModel`. For example, you can bind the “text” property | |
| 39 | 39 | // on the cell renderer to a string value in the model, thus rendering | |
| 40 | 40 | // a different string in each row of the `GtkTreeView`. | |
| 41 | - | func NewCellRendererCombo() *CellRenderer { | |
| 42 | - | var cls *CellRenderer | |
| 41 | + | func NewCellRendererCombo() *CellRendererCombo { | |
| 42 | + | var cls *CellRendererCombo | |
| 43 | 43 | ||
| 44 | 44 | cret := xNewCellRendererCombo() | |
| 45 | 45 | ||
| @@ -47,7 +47,7 @@ func NewCellRendererCombo() *CellRenderer { | |||
| 47 | 47 | return nil | |
| 48 | 48 | } | |
| 49 | 49 | gobject.IncreaseRef(cret) | |
| 50 | - | cls = &CellRenderer{} | |
| 50 | + | cls = &CellRendererCombo{} | |
| 51 | 51 | cls.Ptr = cret | |
| 52 | 52 | return cls | |
| 53 | 53 | } | |
M v4/gtk/gtkcellrendererpixbuf.go +3 -3
| @@ -40,8 +40,8 @@ var xNewCellRendererPixbuf func() uintptr | |||
| 40 | 40 | // can bind the “pixbuf” property on the cell renderer to a pixbuf value | |
| 41 | 41 | // in the model, thus rendering a different image in each row of the | |
| 42 | 42 | // `GtkTreeView`. | |
| 43 | - | func NewCellRendererPixbuf() *CellRenderer { | |
| 44 | - | var cls *CellRenderer | |
| 43 | + | func NewCellRendererPixbuf() *CellRendererPixbuf { | |
| 44 | + | var cls *CellRendererPixbuf | |
| 45 | 45 | ||
| 46 | 46 | cret := xNewCellRendererPixbuf() | |
| 47 | 47 | ||
| @@ -49,7 +49,7 @@ func NewCellRendererPixbuf() *CellRenderer { | |||
| 49 | 49 | return nil | |
| 50 | 50 | } | |
| 51 | 51 | gobject.IncreaseRef(cret) | |
| 52 | - | cls = &CellRenderer{} | |
| 52 | + | cls = &CellRendererPixbuf{} | |
| 53 | 53 | cls.Ptr = cret | |
| 54 | 54 | return cls | |
| 55 | 55 | } | |
M v4/gtk/gtkcellrendererprogress.go +3 -3
| @@ -24,8 +24,8 @@ func CellRendererProgressNewFromInternalPtr(ptr uintptr) *CellRendererProgress { | |||
| 24 | 24 | var xNewCellRendererProgress func() uintptr | |
| 25 | 25 | ||
| 26 | 26 | // Creates a new `GtkCellRendererProgress`. | |
| 27 | - | func NewCellRendererProgress() *CellRenderer { | |
| 28 | - | var cls *CellRenderer | |
| 27 | + | func NewCellRendererProgress() *CellRendererProgress { | |
| 28 | + | var cls *CellRendererProgress | |
| 29 | 29 | ||
| 30 | 30 | cret := xNewCellRendererProgress() | |
| 31 | 31 | ||
| @@ -33,7 +33,7 @@ func NewCellRendererProgress() *CellRenderer { | |||
| 33 | 33 | return nil | |
| 34 | 34 | } | |
| 35 | 35 | gobject.IncreaseRef(cret) | |
| 36 | - | cls = &CellRenderer{} | |
| 36 | + | cls = &CellRendererProgress{} | |
| 37 | 37 | cls.Ptr = cret | |
| 38 | 38 | return cls | |
| 39 | 39 | } | |
M v4/gtk/gtkcellrendererspin.go +3 -3
| @@ -35,8 +35,8 @@ func CellRendererSpinNewFromInternalPtr(ptr uintptr) *CellRendererSpin { | |||
| 35 | 35 | var xNewCellRendererSpin func() uintptr | |
| 36 | 36 | ||
| 37 | 37 | // Creates a new `GtkCellRendererSpin`. | |
| 38 | - | func NewCellRendererSpin() *CellRenderer { | |
| 39 | - | var cls *CellRenderer | |
| 38 | + | func NewCellRendererSpin() *CellRendererSpin { | |
| 39 | + | var cls *CellRendererSpin | |
| 40 | 40 | ||
| 41 | 41 | cret := xNewCellRendererSpin() | |
| 42 | 42 | ||
| @@ -44,7 +44,7 @@ func NewCellRendererSpin() *CellRenderer { | |||
| 44 | 44 | return nil | |
| 45 | 45 | } | |
| 46 | 46 | gobject.IncreaseRef(cret) | |
| 47 | - | cls = &CellRenderer{} | |
| 47 | + | cls = &CellRendererSpin{} | |
| 48 | 48 | cls.Ptr = cret | |
| 49 | 49 | return cls | |
| 50 | 50 | } | |
M v4/gtk/gtkcellrendererspinner.go +3 -3
| @@ -33,8 +33,8 @@ var xNewCellRendererSpinner func() uintptr | |||
| 33 | 33 | ||
| 34 | 34 | // Returns a new cell renderer which will show a spinner to indicate | |
| 35 | 35 | // activity. | |
| 36 | - | func NewCellRendererSpinner() *CellRenderer { | |
| 37 | - | var cls *CellRenderer | |
| 36 | + | func NewCellRendererSpinner() *CellRendererSpinner { | |
| 37 | + | var cls *CellRendererSpinner | |
| 38 | 38 | ||
| 39 | 39 | cret := xNewCellRendererSpinner() | |
| 40 | 40 | ||
| @@ -42,7 +42,7 @@ func NewCellRendererSpinner() *CellRenderer { | |||
| 42 | 42 | return nil | |
| 43 | 43 | } | |
| 44 | 44 | gobject.IncreaseRef(cret) | |
| 45 | - | cls = &CellRenderer{} | |
| 45 | + | cls = &CellRendererSpinner{} | |
| 46 | 46 | cls.Ptr = cret | |
| 47 | 47 | return cls | |
| 48 | 48 | } | |
M v4/gtk/gtkcellrenderertext.go +3 -3
| @@ -46,8 +46,8 @@ var xNewCellRendererText func() uintptr | |||
| 46 | 46 | // you can bind the “text” property on the cell renderer to a string | |
| 47 | 47 | // value in the model, thus rendering a different string in each row | |
| 48 | 48 | // of the `GtkTreeView`. | |
| 49 | - | func NewCellRendererText() *CellRenderer { | |
| 50 | - | var cls *CellRenderer | |
| 49 | + | func NewCellRendererText() *CellRendererText { | |
| 50 | + | var cls *CellRendererText | |
| 51 | 51 | ||
| 52 | 52 | cret := xNewCellRendererText() | |
| 53 | 53 | ||
| @@ -55,7 +55,7 @@ func NewCellRendererText() *CellRenderer { | |||
| 55 | 55 | return nil | |
| 56 | 56 | } | |
| 57 | 57 | gobject.IncreaseRef(cret) | |
| 58 | - | cls = &CellRenderer{} | |
| 58 | + | cls = &CellRendererText{} | |
| 59 | 59 | cls.Ptr = cret | |
| 60 | 60 | return cls | |
| 61 | 61 | } | |
M v4/gtk/gtkcellrenderertoggle.go +3 -3
| @@ -32,8 +32,8 @@ var xNewCellRendererToggle func() uintptr | |||
| 32 | 32 | // can bind the “active” property on the cell renderer to a boolean value | |
| 33 | 33 | // in the model, thus causing the check button to reflect the state of | |
| 34 | 34 | // the model. | |
| 35 | - | func NewCellRendererToggle() *CellRenderer { | |
| 36 | - | var cls *CellRenderer | |
| 35 | + | func NewCellRendererToggle() *CellRendererToggle { | |
| 36 | + | var cls *CellRendererToggle | |
| 37 | 37 | ||
| 38 | 38 | cret := xNewCellRendererToggle() | |
| 39 | 39 | ||
| @@ -41,7 +41,7 @@ func NewCellRendererToggle() *CellRenderer { | |||
| 41 | 41 | return nil | |
| 42 | 42 | } | |
| 43 | 43 | gobject.IncreaseRef(cret) | |
| 44 | - | cls = &CellRenderer{} | |
| 44 | + | cls = &CellRendererToggle{} | |
| 45 | 45 | cls.Ptr = cret | |
| 46 | 46 | return cls | |
| 47 | 47 | } | |
M v4/gtk/gtkcellview.go +15 -15
| @@ -41,8 +41,8 @@ func CellViewNewFromInternalPtr(ptr uintptr) *CellView { | |||
| 41 | 41 | var xNewCellView func() uintptr | |
| 42 | 42 | ||
| 43 | 43 | // Creates a new `GtkCellView` widget. | |
| 44 | - | func NewCellView() *Widget { | |
| 45 | - | var cls *Widget | |
| 44 | + | func NewCellView() *CellView { | |
| 45 | + | var cls *CellView | |
| 46 | 46 | ||
| 47 | 47 | cret := xNewCellView() | |
| 48 | 48 | ||
| @@ -50,7 +50,7 @@ func NewCellView() *Widget { | |||
| 50 | 50 | return nil | |
| 51 | 51 | } | |
| 52 | 52 | gobject.IncreaseRef(cret) | |
| 53 | - | cls = &Widget{} | |
| 53 | + | cls = &CellView{} | |
| 54 | 54 | cls.Ptr = cret | |
| 55 | 55 | return cls | |
| 56 | 56 | } | |
| @@ -64,8 +64,8 @@ var xNewWithContextCellView func(uintptr, uintptr) uintptr | |||
| 64 | 64 | // the underlying area synchronize the geometry for those cells, | |
| 65 | 65 | // in this way alignments with cellviews for other rows are | |
| 66 | 66 | // possible. | |
| 67 | - | func NewWithContextCellView(AreaVar *CellArea, ContextVar *CellAreaContext) *Widget { | |
| 68 | - | var cls *Widget | |
| 67 | + | func NewWithContextCellView(AreaVar *CellArea, ContextVar *CellAreaContext) *CellView { | |
| 68 | + | var cls *CellView | |
| 69 | 69 | ||
| 70 | 70 | cret := xNewWithContextCellView(AreaVar.GoPointer(), ContextVar.GoPointer()) | |
| 71 | 71 | ||
| @@ -73,7 +73,7 @@ func NewWithContextCellView(AreaVar *CellArea, ContextVar *CellAreaContext) *Wid | |||
| 73 | 73 | return nil | |
| 74 | 74 | } | |
| 75 | 75 | gobject.IncreaseRef(cret) | |
| 76 | - | cls = &Widget{} | |
| 76 | + | cls = &CellView{} | |
| 77 | 77 | cls.Ptr = cret | |
| 78 | 78 | return cls | |
| 79 | 79 | } | |
| @@ -83,8 +83,8 @@ var xNewWithMarkupCellView func(string) uintptr | |||
| 83 | 83 | // Creates a new `GtkCellView` widget, adds a `GtkCellRendererText` | |
| 84 | 84 | // to it, and makes it show @markup. The text can be marked up with | |
| 85 | 85 | // the [Pango text markup language](https://docs.gtk.org/Pango/pango_markup.html). | |
| 86 | - | func NewWithMarkupCellView(MarkupVar string) *Widget { | |
| 87 | - | var cls *Widget | |
| 86 | + | func NewWithMarkupCellView(MarkupVar string) *CellView { | |
| 87 | + | var cls *CellView | |
| 88 | 88 | ||
| 89 | 89 | cret := xNewWithMarkupCellView(MarkupVar) | |
| 90 | 90 | ||
| @@ -92,7 +92,7 @@ func NewWithMarkupCellView(MarkupVar string) *Widget { | |||
| 92 | 92 | return nil | |
| 93 | 93 | } | |
| 94 | 94 | gobject.IncreaseRef(cret) | |
| 95 | - | cls = &Widget{} | |
| 95 | + | cls = &CellView{} | |
| 96 | 96 | cls.Ptr = cret | |
| 97 | 97 | return cls | |
| 98 | 98 | } | |
| @@ -101,8 +101,8 @@ var xNewWithTextCellView func(string) uintptr | |||
| 101 | 101 | ||
| 102 | 102 | // Creates a new `GtkCellView` widget, adds a `GtkCellRendererText` | |
| 103 | 103 | // to it, and makes it show @text. | |
| 104 | - | func NewWithTextCellView(TextVar string) *Widget { | |
| 105 | - | var cls *Widget | |
| 104 | + | func NewWithTextCellView(TextVar string) *CellView { | |
| 105 | + | var cls *CellView | |
| 106 | 106 | ||
| 107 | 107 | cret := xNewWithTextCellView(TextVar) | |
| 108 | 108 | ||
| @@ -110,7 +110,7 @@ func NewWithTextCellView(TextVar string) *Widget { | |||
| 110 | 110 | return nil | |
| 111 | 111 | } | |
| 112 | 112 | gobject.IncreaseRef(cret) | |
| 113 | - | cls = &Widget{} | |
| 113 | + | cls = &CellView{} | |
| 114 | 114 | cls.Ptr = cret | |
| 115 | 115 | return cls | |
| 116 | 116 | } | |
| @@ -119,8 +119,8 @@ var xNewWithTextureCellView func(uintptr) uintptr | |||
| 119 | 119 | ||
| 120 | 120 | // Creates a new `GtkCellView` widget, adds a `GtkCellRendererPixbuf` | |
| 121 | 121 | // to it, and makes it show @texture. | |
| 122 | - | func NewWithTextureCellView(TextureVar *gdk.Texture) *Widget { | |
| 123 | - | var cls *Widget | |
| 122 | + | func NewWithTextureCellView(TextureVar *gdk.Texture) *CellView { | |
| 123 | + | var cls *CellView | |
| 124 | 124 | ||
| 125 | 125 | cret := xNewWithTextureCellView(TextureVar.GoPointer()) | |
| 126 | 126 | ||
| @@ -128,7 +128,7 @@ func NewWithTextureCellView(TextureVar *gdk.Texture) *Widget { | |||
| 128 | 128 | return nil | |
| 129 | 129 | } | |
| 130 | 130 | gobject.IncreaseRef(cret) | |
| 131 | - | cls = &Widget{} | |
| 131 | + | cls = &CellView{} | |
| 132 | 132 | cls.Ptr = cret | |
| 133 | 133 | return cls | |
| 134 | 134 | } | |
M v4/gtk/gtkcenterbox.go +3 -3
| @@ -61,8 +61,8 @@ func CenterBoxNewFromInternalPtr(ptr uintptr) *CenterBox { | |||
| 61 | 61 | var xNewCenterBox func() uintptr | |
| 62 | 62 | ||
| 63 | 63 | // Creates a new `GtkCenterBox`. | |
| 64 | - | func NewCenterBox() *Widget { | |
| 65 | - | var cls *Widget | |
| 64 | + | func NewCenterBox() *CenterBox { | |
| 65 | + | var cls *CenterBox | |
| 66 | 66 | ||
| 67 | 67 | cret := xNewCenterBox() | |
| 68 | 68 | ||
| @@ -70,7 +70,7 @@ func NewCenterBox() *Widget { | |||
| 70 | 70 | return nil | |
| 71 | 71 | } | |
| 72 | 72 | gobject.IncreaseRef(cret) | |
| 73 | - | cls = &Widget{} | |
| 73 | + | cls = &CenterBox{} | |
| 74 | 74 | cls.Ptr = cret | |
| 75 | 75 | return cls | |
| 76 | 76 | } | |
M v4/gtk/gtkcenterlayout.go +3 -3
| @@ -37,15 +37,15 @@ func CenterLayoutNewFromInternalPtr(ptr uintptr) *CenterLayout { | |||
| 37 | 37 | var xNewCenterLayout func() uintptr | |
| 38 | 38 | ||
| 39 | 39 | // Creates a new `GtkCenterLayout`. | |
| 40 | - | func NewCenterLayout() *LayoutManager { | |
| 41 | - | var cls *LayoutManager | |
| 40 | + | func NewCenterLayout() *CenterLayout { | |
| 41 | + | var cls *CenterLayout | |
| 42 | 42 | ||
| 43 | 43 | cret := xNewCenterLayout() | |
| 44 | 44 | ||
| 45 | 45 | if cret == 0 { | |
| 46 | 46 | return nil | |
| 47 | 47 | } | |
| 48 | - | cls = &LayoutManager{} | |
| 48 | + | cls = &CenterLayout{} | |
| 49 | 49 | cls.Ptr = cret | |
| 50 | 50 | return cls | |
| 51 | 51 | } | |
M v4/gtk/gtkcheckbutton.go +9 -9
| @@ -85,8 +85,8 @@ func CheckButtonNewFromInternalPtr(ptr uintptr) *CheckButton { | |||
| 85 | 85 | var xNewCheckButton func() uintptr | |
| 86 | 86 | ||
| 87 | 87 | // Creates a new `GtkCheckButton`. | |
| 88 | - | func NewCheckButton() *Widget { | |
| 89 | - | var cls *Widget | |
| 88 | + | func NewCheckButton() *CheckButton { | |
| 89 | + | var cls *CheckButton | |
| 90 | 90 | ||
| 91 | 91 | cret := xNewCheckButton() | |
| 92 | 92 | ||
| @@ -94,7 +94,7 @@ func NewCheckButton() *Widget { | |||
| 94 | 94 | return nil | |
| 95 | 95 | } | |
| 96 | 96 | gobject.IncreaseRef(cret) | |
| 97 | - | cls = &Widget{} | |
| 97 | + | cls = &CheckButton{} | |
| 98 | 98 | cls.Ptr = cret | |
| 99 | 99 | return cls | |
| 100 | 100 | } | |
| @@ -102,8 +102,8 @@ func NewCheckButton() *Widget { | |||
| 102 | 102 | var xNewWithLabelCheckButton func(string) uintptr | |
| 103 | 103 | ||
| 104 | 104 | // Creates a new `GtkCheckButton` with the given text. | |
| 105 | - | func NewWithLabelCheckButton(LabelVar string) *Widget { | |
| 106 | - | var cls *Widget | |
| 105 | + | func NewWithLabelCheckButton(LabelVar string) *CheckButton { | |
| 106 | + | var cls *CheckButton | |
| 107 | 107 | ||
| 108 | 108 | cret := xNewWithLabelCheckButton(LabelVar) | |
| 109 | 109 | ||
| @@ -111,7 +111,7 @@ func NewWithLabelCheckButton(LabelVar string) *Widget { | |||
| 111 | 111 | return nil | |
| 112 | 112 | } | |
| 113 | 113 | gobject.IncreaseRef(cret) | |
| 114 | - | cls = &Widget{} | |
| 114 | + | cls = &CheckButton{} | |
| 115 | 115 | cls.Ptr = cret | |
| 116 | 116 | return cls | |
| 117 | 117 | } | |
| @@ -119,8 +119,8 @@ func NewWithLabelCheckButton(LabelVar string) *Widget { | |||
| 119 | 119 | var xNewWithMnemonicCheckButton func(string) uintptr | |
| 120 | 120 | ||
| 121 | 121 | // Creates a new `GtkCheckButton` with the given text and a mnemonic. | |
| 122 | - | func NewWithMnemonicCheckButton(LabelVar string) *Widget { | |
| 123 | - | var cls *Widget | |
| 122 | + | func NewWithMnemonicCheckButton(LabelVar string) *CheckButton { | |
| 123 | + | var cls *CheckButton | |
| 124 | 124 | ||
| 125 | 125 | cret := xNewWithMnemonicCheckButton(LabelVar) | |
| 126 | 126 | ||
| @@ -128,7 +128,7 @@ func NewWithMnemonicCheckButton(LabelVar string) *Widget { | |||
| 128 | 128 | return nil | |
| 129 | 129 | } | |
| 130 | 130 | gobject.IncreaseRef(cret) | |
| 131 | - | cls = &Widget{} | |
| 131 | + | cls = &CheckButton{} | |
| 132 | 132 | cls.Ptr = cret | |
| 133 | 133 | return cls | |
| 134 | 134 | } | |
M v4/gtk/gtkcolorbutton.go +6 -6
| @@ -47,8 +47,8 @@ var xNewColorButton func() uintptr | |||
| 47 | 47 | // is clicked, a color chooser dialog will open, allowing the user | |
| 48 | 48 | // to select a color. The swatch will be updated to reflect the new | |
| 49 | 49 | // color when the user finishes. | |
| 50 | - | func NewColorButton() *Widget { | |
| 51 | - | var cls *Widget | |
| 50 | + | func NewColorButton() *ColorButton { | |
| 51 | + | var cls *ColorButton | |
| 52 | 52 | ||
| 53 | 53 | cret := xNewColorButton() | |
| 54 | 54 | ||
| @@ -56,7 +56,7 @@ func NewColorButton() *Widget { | |||
| 56 | 56 | return nil | |
| 57 | 57 | } | |
| 58 | 58 | gobject.IncreaseRef(cret) | |
| 59 | - | cls = &Widget{} | |
| 59 | + | cls = &ColorButton{} | |
| 60 | 60 | cls.Ptr = cret | |
| 61 | 61 | return cls | |
| 62 | 62 | } | |
| @@ -64,8 +64,8 @@ func NewColorButton() *Widget { | |||
| 64 | 64 | var xNewWithRgbaColorButton func(*gdk.RGBA) uintptr | |
| 65 | 65 | ||
| 66 | 66 | // Creates a new color button showing the given color. | |
| 67 | - | func NewWithRgbaColorButton(RgbaVar *gdk.RGBA) *Widget { | |
| 68 | - | var cls *Widget | |
| 67 | + | func NewWithRgbaColorButton(RgbaVar *gdk.RGBA) *ColorButton { | |
| 68 | + | var cls *ColorButton | |
| 69 | 69 | ||
| 70 | 70 | cret := xNewWithRgbaColorButton(RgbaVar) | |
| 71 | 71 | ||
| @@ -73,7 +73,7 @@ func NewWithRgbaColorButton(RgbaVar *gdk.RGBA) *Widget { | |||
| 73 | 73 | return nil | |
| 74 | 74 | } | |
| 75 | 75 | gobject.IncreaseRef(cret) | |
| 76 | - | cls = &Widget{} | |
| 76 | + | cls = &ColorButton{} | |
| 77 | 77 | cls.Ptr = cret | |
| 78 | 78 | return cls | |
| 79 | 79 | } | |
M v4/gtk/gtkcolorchooserdialog.go +3 -3
| @@ -34,8 +34,8 @@ func ColorChooserDialogNewFromInternalPtr(ptr uintptr) *ColorChooserDialog { | |||
| 34 | 34 | var xNewColorChooserDialog func(string, uintptr) uintptr | |
| 35 | 35 | ||
| 36 | 36 | // Creates a new `GtkColorChooserDialog`. | |
| 37 | - | func NewColorChooserDialog(TitleVar string, ParentVar *Window) *Widget { | |
| 38 | - | var cls *Widget | |
| 37 | + | func NewColorChooserDialog(TitleVar string, ParentVar *Window) *ColorChooserDialog { | |
| 38 | + | var cls *ColorChooserDialog | |
| 39 | 39 | ||
| 40 | 40 | cret := xNewColorChooserDialog(TitleVar, ParentVar.GoPointer()) | |
| 41 | 41 | ||
| @@ -43,7 +43,7 @@ func NewColorChooserDialog(TitleVar string, ParentVar *Window) *Widget { | |||
| 43 | 43 | return nil | |
| 44 | 44 | } | |
| 45 | 45 | gobject.IncreaseRef(cret) | |
| 46 | - | cls = &Widget{} | |
| 46 | + | cls = &ColorChooserDialog{} | |
| 47 | 47 | cls.Ptr = cret | |
| 48 | 48 | return cls | |
| 49 | 49 | } | |
M v4/gtk/gtkcolorchooserwidget.go +3 -3
| @@ -45,8 +45,8 @@ func ColorChooserWidgetNewFromInternalPtr(ptr uintptr) *ColorChooserWidget { | |||
| 45 | 45 | var xNewColorChooserWidget func() uintptr | |
| 46 | 46 | ||
| 47 | 47 | // Creates a new `GtkColorChooserWidget`. | |
| 48 | - | func NewColorChooserWidget() *Widget { | |
| 49 | - | var cls *Widget | |
| 48 | + | func NewColorChooserWidget() *ColorChooserWidget { | |
| 49 | + | var cls *ColorChooserWidget | |
| 50 | 50 | ||
| 51 | 51 | cret := xNewColorChooserWidget() | |
| 52 | 52 | ||
| @@ -54,7 +54,7 @@ func NewColorChooserWidget() *Widget { | |||
| 54 | 54 | return nil | |
| 55 | 55 | } | |
| 56 | 56 | gobject.IncreaseRef(cret) | |
| 57 | - | cls = &Widget{} | |
| 57 | + | cls = &ColorChooserWidget{} | |
| 58 | 58 | cls.Ptr = cret | |
| 59 | 59 | return cls | |
| 60 | 60 | } | |
M v4/gtk/gtkcolumnview.go +3 -3
| @@ -98,8 +98,8 @@ var xNewColumnView func(uintptr) uintptr | |||
| 98 | 98 | // | |
| 99 | 99 | // You most likely want to call [method@Gtk.ColumnView.append_column] | |
| 100 | 100 | // to add columns next. | |
| 101 | - | func NewColumnView(ModelVar SelectionModel) *Widget { | |
| 102 | - | var cls *Widget | |
| 101 | + | func NewColumnView(ModelVar SelectionModel) *ColumnView { | |
| 102 | + | var cls *ColumnView | |
| 103 | 103 | ||
| 104 | 104 | cret := xNewColumnView(ModelVar.GoPointer()) | |
| 105 | 105 | ||
| @@ -107,7 +107,7 @@ func NewColumnView(ModelVar SelectionModel) *Widget { | |||
| 107 | 107 | return nil | |
| 108 | 108 | } | |
| 109 | 109 | gobject.IncreaseRef(cret) | |
| 110 | - | cls = &Widget{} | |
| 110 | + | cls = &ColumnView{} | |
| 111 | 111 | cls.Ptr = cret | |
| 112 | 112 | return cls | |
| 113 | 113 | } | |
M v4/gtk/gtkcombobox.go +12 -12
| @@ -94,8 +94,8 @@ func ComboBoxNewFromInternalPtr(ptr uintptr) *ComboBox { | |||
| 94 | 94 | var xNewComboBox func() uintptr | |
| 95 | 95 | ||
| 96 | 96 | // Creates a new empty `GtkComboBox`. | |
| 97 | - | func NewComboBox() *Widget { | |
| 98 | - | var cls *Widget | |
| 97 | + | func NewComboBox() *ComboBox { | |
| 98 | + | var cls *ComboBox | |
| 99 | 99 | ||
| 100 | 100 | cret := xNewComboBox() | |
| 101 | 101 | ||
| @@ -103,7 +103,7 @@ func NewComboBox() *Widget { | |||
| 103 | 103 | return nil | |
| 104 | 104 | } | |
| 105 | 105 | gobject.IncreaseRef(cret) | |
| 106 | - | cls = &Widget{} | |
| 106 | + | cls = &ComboBox{} | |
| 107 | 107 | cls.Ptr = cret | |
| 108 | 108 | return cls | |
| 109 | 109 | } | |
| @@ -115,8 +115,8 @@ var xNewWithEntryComboBox func() uintptr | |||
| 115 | 115 | // In order to use a combo box with entry, you need to tell it | |
| 116 | 116 | // which column of the model contains the text for the entry | |
| 117 | 117 | // by calling [method@Gtk.ComboBox.set_entry_text_column]. | |
| 118 | - | func NewWithEntryComboBox() *Widget { | |
| 119 | - | var cls *Widget | |
| 118 | + | func NewWithEntryComboBox() *ComboBox { | |
| 119 | + | var cls *ComboBox | |
| 120 | 120 | ||
| 121 | 121 | cret := xNewWithEntryComboBox() | |
| 122 | 122 | ||
| @@ -124,7 +124,7 @@ func NewWithEntryComboBox() *Widget { | |||
| 124 | 124 | return nil | |
| 125 | 125 | } | |
| 126 | 126 | gobject.IncreaseRef(cret) | |
| 127 | - | cls = &Widget{} | |
| 127 | + | cls = &ComboBox{} | |
| 128 | 128 | cls.Ptr = cret | |
| 129 | 129 | return cls | |
| 130 | 130 | } | |
| @@ -132,8 +132,8 @@ func NewWithEntryComboBox() *Widget { | |||
| 132 | 132 | var xNewWithModelComboBox func(uintptr) uintptr | |
| 133 | 133 | ||
| 134 | 134 | // Creates a new `GtkComboBox` with a model. | |
| 135 | - | func NewWithModelComboBox(ModelVar TreeModel) *Widget { | |
| 136 | - | var cls *Widget | |
| 135 | + | func NewWithModelComboBox(ModelVar TreeModel) *ComboBox { | |
| 136 | + | var cls *ComboBox | |
| 137 | 137 | ||
| 138 | 138 | cret := xNewWithModelComboBox(ModelVar.GoPointer()) | |
| 139 | 139 | ||
| @@ -141,7 +141,7 @@ func NewWithModelComboBox(ModelVar TreeModel) *Widget { | |||
| 141 | 141 | return nil | |
| 142 | 142 | } | |
| 143 | 143 | gobject.IncreaseRef(cret) | |
| 144 | - | cls = &Widget{} | |
| 144 | + | cls = &ComboBox{} | |
| 145 | 145 | cls.Ptr = cret | |
| 146 | 146 | return cls | |
| 147 | 147 | } | |
| @@ -151,8 +151,8 @@ var xNewWithModelAndEntryComboBox func(uintptr) uintptr | |||
| 151 | 151 | // Creates a new empty `GtkComboBox` with an entry and a model. | |
| 152 | 152 | // | |
| 153 | 153 | // See also [ctor@Gtk.ComboBox.new_with_entry]. | |
| 154 | - | func NewWithModelAndEntryComboBox(ModelVar TreeModel) *Widget { | |
| 155 | - | var cls *Widget | |
| 154 | + | func NewWithModelAndEntryComboBox(ModelVar TreeModel) *ComboBox { | |
| 155 | + | var cls *ComboBox | |
| 156 | 156 | ||
| 157 | 157 | cret := xNewWithModelAndEntryComboBox(ModelVar.GoPointer()) | |
| 158 | 158 | ||
| @@ -160,7 +160,7 @@ func NewWithModelAndEntryComboBox(ModelVar TreeModel) *Widget { | |||
| 160 | 160 | return nil | |
| 161 | 161 | } | |
| 162 | 162 | gobject.IncreaseRef(cret) | |
| 163 | - | cls = &Widget{} | |
| 163 | + | cls = &ComboBox{} | |
| 164 | 164 | cls.Ptr = cret | |
| 165 | 165 | return cls | |
| 166 | 166 | } | |
M v4/gtk/gtkcomboboxtext.go +6 -6
| @@ -81,8 +81,8 @@ func ComboBoxTextNewFromInternalPtr(ptr uintptr) *ComboBoxText { | |||
| 81 | 81 | var xNewComboBoxText func() uintptr | |
| 82 | 82 | ||
| 83 | 83 | // Creates a new `GtkComboBoxText`. | |
| 84 | - | func NewComboBoxText() *Widget { | |
| 85 | - | var cls *Widget | |
| 84 | + | func NewComboBoxText() *ComboBoxText { | |
| 85 | + | var cls *ComboBoxText | |
| 86 | 86 | ||
| 87 | 87 | cret := xNewComboBoxText() | |
| 88 | 88 | ||
| @@ -90,7 +90,7 @@ func NewComboBoxText() *Widget { | |||
| 90 | 90 | return nil | |
| 91 | 91 | } | |
| 92 | 92 | gobject.IncreaseRef(cret) | |
| 93 | - | cls = &Widget{} | |
| 93 | + | cls = &ComboBoxText{} | |
| 94 | 94 | cls.Ptr = cret | |
| 95 | 95 | return cls | |
| 96 | 96 | } | |
| @@ -98,8 +98,8 @@ func NewComboBoxText() *Widget { | |||
| 98 | 98 | var xNewWithEntryComboBoxText func() uintptr | |
| 99 | 99 | ||
| 100 | 100 | // Creates a new `GtkComboBoxText` with an entry. | |
| 101 | - | func NewWithEntryComboBoxText() *Widget { | |
| 102 | - | var cls *Widget | |
| 101 | + | func NewWithEntryComboBoxText() *ComboBoxText { | |
| 102 | + | var cls *ComboBoxText | |
| 103 | 103 | ||
| 104 | 104 | cret := xNewWithEntryComboBoxText() | |
| 105 | 105 | ||
| @@ -107,7 +107,7 @@ func NewWithEntryComboBoxText() *Widget { | |||
| 107 | 107 | return nil | |
| 108 | 108 | } | |
| 109 | 109 | gobject.IncreaseRef(cret) | |
| 110 | - | cls = &Widget{} | |
| 110 | + | cls = &ComboBoxText{} | |
| 111 | 111 | cls.Ptr = cret | |
| 112 | 112 | return cls | |
| 113 | 113 | } | |
M v4/gtk/gtkconstraintlayout.go +3 -3
| @@ -216,15 +216,15 @@ func ConstraintLayoutNewFromInternalPtr(ptr uintptr) *ConstraintLayout { | |||
| 216 | 216 | var xNewConstraintLayout func() uintptr | |
| 217 | 217 | ||
| 218 | 218 | // Creates a new `GtkConstraintLayout` layout manager. | |
| 219 | - | func NewConstraintLayout() *LayoutManager { | |
| 220 | - | var cls *LayoutManager | |
| 219 | + | func NewConstraintLayout() *ConstraintLayout { | |
| 220 | + | var cls *ConstraintLayout | |
| 221 | 221 | ||
| 222 | 222 | cret := xNewConstraintLayout() | |
| 223 | 223 | ||
| 224 | 224 | if cret == 0 { | |
| 225 | 225 | return nil | |
| 226 | 226 | } | |
| 227 | - | cls = &LayoutManager{} | |
| 227 | + | cls = &ConstraintLayout{} | |
| 228 | 228 | cls.Ptr = cret | |
| 229 | 229 | return cls | |
| 230 | 230 | } | |
M v4/gtk/gtkcustomlayout.go +3 -3
| @@ -48,15 +48,15 @@ var xNewCustomLayout func(uintptr, uintptr, uintptr) uintptr | |||
| 48 | 48 | // Legacy layout managers map to the old `GtkWidget` size negotiation | |
| 49 | 49 | // virtual functions, and are meant to be used during the transition | |
| 50 | 50 | // from layout containers to layout manager delegates. | |
| 51 | - | func NewCustomLayout(RequestModeVar CustomRequestModeFunc, MeasureVar CustomMeasureFunc, AllocateVar CustomAllocateFunc) *LayoutManager { | |
| 52 | - | var cls *LayoutManager | |
| 51 | + | func NewCustomLayout(RequestModeVar CustomRequestModeFunc, MeasureVar CustomMeasureFunc, AllocateVar CustomAllocateFunc) *CustomLayout { | |
| 52 | + | var cls *CustomLayout | |
| 53 | 53 | ||
| 54 | 54 | cret := xNewCustomLayout(purego.NewCallback(RequestModeVar), purego.NewCallback(MeasureVar), purego.NewCallback(AllocateVar)) | |
| 55 | 55 | ||
| 56 | 56 | if cret == 0 { | |
| 57 | 57 | return nil | |
| 58 | 58 | } | |
| 59 | - | cls = &LayoutManager{} | |
| 59 | + | cls = &CustomLayout{} | |
| 60 | 60 | cls.Ptr = cret | |
| 61 | 61 | return cls | |
| 62 | 62 | } | |
M v4/gtk/gtkdialog.go +6 -6
| @@ -210,8 +210,8 @@ var xNewDialog func() uintptr | |||
| 210 | 210 | // Widgets should not be packed into the `GtkWindow` | |
| 211 | 211 | // directly, but into the @content_area and @action_area, | |
| 212 | 212 | // as described above. | |
| 213 | - | func NewDialog() *Widget { | |
| 214 | - | var cls *Widget | |
| 213 | + | func NewDialog() *Dialog { | |
| 214 | + | var cls *Dialog | |
| 215 | 215 | ||
| 216 | 216 | cret := xNewDialog() | |
| 217 | 217 | ||
| @@ -219,7 +219,7 @@ func NewDialog() *Widget { | |||
| 219 | 219 | return nil | |
| 220 | 220 | } | |
| 221 | 221 | gobject.IncreaseRef(cret) | |
| 222 | - | cls = &Widget{} | |
| 222 | + | cls = &Dialog{} | |
| 223 | 223 | cls.Ptr = cret | |
| 224 | 224 | return cls | |
| 225 | 225 | } | |
| @@ -261,8 +261,8 @@ var xNewWithButtonsDialog func(string, uintptr, DialogFlags, string, ...interfac | |||
| 261 | 261 | // NULL); | |
| 262 | 262 | // | |
| 263 | 263 | // ``` | |
| 264 | - | func NewWithButtonsDialog(TitleVar string, ParentVar *Window, FlagsVar DialogFlags, FirstButtonTextVar string, varArgs ...interface{}) *Widget { | |
| 265 | - | var cls *Widget | |
| 264 | + | func NewWithButtonsDialog(TitleVar string, ParentVar *Window, FlagsVar DialogFlags, FirstButtonTextVar string, varArgs ...interface{}) *Dialog { | |
| 265 | + | var cls *Dialog | |
| 266 | 266 | ||
| 267 | 267 | cret := xNewWithButtonsDialog(TitleVar, ParentVar.GoPointer(), FlagsVar, FirstButtonTextVar, varArgs...) | |
| 268 | 268 | ||
| @@ -270,7 +270,7 @@ func NewWithButtonsDialog(TitleVar string, ParentVar *Window, FlagsVar DialogFla | |||
| 270 | 270 | return nil | |
| 271 | 271 | } | |
| 272 | 272 | gobject.IncreaseRef(cret) | |
| 273 | - | cls = &Widget{} | |
| 273 | + | cls = &Dialog{} | |
| 274 | 274 | cls.Ptr = cret | |
| 275 | 275 | return cls | |
| 276 | 276 | } | |
M v4/gtk/gtkdrawingarea.go +3 -3
| @@ -125,8 +125,8 @@ func DrawingAreaNewFromInternalPtr(ptr uintptr) *DrawingArea { | |||
| 125 | 125 | var xNewDrawingArea func() uintptr | |
| 126 | 126 | ||
| 127 | 127 | // Creates a new drawing area. | |
| 128 | - | func NewDrawingArea() *Widget { | |
| 129 | - | var cls *Widget | |
| 128 | + | func NewDrawingArea() *DrawingArea { | |
| 129 | + | var cls *DrawingArea | |
| 130 | 130 | ||
| 131 | 131 | cret := xNewDrawingArea() | |
| 132 | 132 | ||
| @@ -134,7 +134,7 @@ func NewDrawingArea() *Widget { | |||
| 134 | 134 | return nil | |
| 135 | 135 | } | |
| 136 | 136 | gobject.IncreaseRef(cret) | |
| 137 | - | cls = &Widget{} | |
| 137 | + | cls = &DrawingArea{} | |
| 138 | 138 | cls.Ptr = cret | |
| 139 | 139 | return cls | |
| 140 | 140 | } | |
M v4/gtk/gtkdropcontrollermotion.go +3 -3
| @@ -39,15 +39,15 @@ var xNewDropControllerMotion func() uintptr | |||
| 39 | 39 | ||
| 40 | 40 | // Creates a new event controller that will handle pointer motion | |
| 41 | 41 | // events during drag and drop. | |
| 42 | - | func NewDropControllerMotion() *EventController { | |
| 43 | - | var cls *EventController | |
| 42 | + | func NewDropControllerMotion() *DropControllerMotion { | |
| 43 | + | var cls *DropControllerMotion | |
| 44 | 44 | ||
| 45 | 45 | cret := xNewDropControllerMotion() | |
| 46 | 46 | ||
| 47 | 47 | if cret == 0 { | |
| 48 | 48 | return nil | |
| 49 | 49 | } | |
| 50 | - | cls = &EventController{} | |
| 50 | + | cls = &DropControllerMotion{} | |
| 51 | 51 | cls.Ptr = cret | |
| 52 | 52 | return cls | |
| 53 | 53 | } | |
M v4/gtk/gtkdropdown.go +6 -6
| @@ -78,8 +78,8 @@ var xNewDropDown func(uintptr, uintptr) uintptr | |||
| 78 | 78 | // | |
| 79 | 79 | // You may want to call [method@Gtk.DropDown.set_factory] | |
| 80 | 80 | // to set up a way to map its items to widgets. | |
| 81 | - | func NewDropDown(ModelVar gio.ListModel, ExpressionVar *Expression) *Widget { | |
| 82 | - | var cls *Widget | |
| 81 | + | func NewDropDown(ModelVar gio.ListModel, ExpressionVar *Expression) *DropDown { | |
| 82 | + | var cls *DropDown | |
| 83 | 83 | ||
| 84 | 84 | cret := xNewDropDown(ModelVar.GoPointer(), ExpressionVar.GoPointer()) | |
| 85 | 85 | ||
| @@ -87,7 +87,7 @@ func NewDropDown(ModelVar gio.ListModel, ExpressionVar *Expression) *Widget { | |||
| 87 | 87 | return nil | |
| 88 | 88 | } | |
| 89 | 89 | gobject.IncreaseRef(cret) | |
| 90 | - | cls = &Widget{} | |
| 90 | + | cls = &DropDown{} | |
| 91 | 91 | cls.Ptr = cret | |
| 92 | 92 | return cls | |
| 93 | 93 | } | |
| @@ -96,8 +96,8 @@ var xNewFromStringsDropDown func(uintptr) uintptr | |||
| 96 | 96 | ||
| 97 | 97 | // Creates a new `GtkDropDown` that is populated with | |
| 98 | 98 | // the strings. | |
| 99 | - | func NewFromStringsDropDown(StringsVar uintptr) *Widget { | |
| 100 | - | var cls *Widget | |
| 99 | + | func NewFromStringsDropDown(StringsVar uintptr) *DropDown { | |
| 100 | + | var cls *DropDown | |
| 101 | 101 | ||
| 102 | 102 | cret := xNewFromStringsDropDown(StringsVar) | |
| 103 | 103 | ||
| @@ -105,7 +105,7 @@ func NewFromStringsDropDown(StringsVar uintptr) *Widget { | |||
| 105 | 105 | return nil | |
| 106 | 106 | } | |
| 107 | 107 | gobject.IncreaseRef(cret) | |
| 108 | - | cls = &Widget{} | |
| 108 | + | cls = &DropDown{} | |
| 109 | 109 | cls.Ptr = cret | |
| 110 | 110 | return cls | |
| 111 | 111 | } | |
M v4/gtk/gtkeditablelabel.go +3 -3
| @@ -60,8 +60,8 @@ func EditableLabelNewFromInternalPtr(ptr uintptr) *EditableLabel { | |||
| 60 | 60 | var xNewEditableLabel func(string) uintptr | |
| 61 | 61 | ||
| 62 | 62 | // Creates a new `GtkEditableLabel` widget. | |
| 63 | - | func NewEditableLabel(StrVar string) *Widget { | |
| 64 | - | var cls *Widget | |
| 63 | + | func NewEditableLabel(StrVar string) *EditableLabel { | |
| 64 | + | var cls *EditableLabel | |
| 65 | 65 | ||
| 66 | 66 | cret := xNewEditableLabel(StrVar) | |
| 67 | 67 | ||
| @@ -69,7 +69,7 @@ func NewEditableLabel(StrVar string) *Widget { | |||
| 69 | 69 | return nil | |
| 70 | 70 | } | |
| 71 | 71 | gobject.IncreaseRef(cret) | |
| 72 | - | cls = &Widget{} | |
| 72 | + | cls = &EditableLabel{} | |
| 73 | 73 | cls.Ptr = cret | |
| 74 | 74 | return cls | |
| 75 | 75 | } | |
M v4/gtk/gtkemojichooser.go +3 -3
| @@ -61,8 +61,8 @@ func EmojiChooserNewFromInternalPtr(ptr uintptr) *EmojiChooser { | |||
| 61 | 61 | var xNewEmojiChooser func() uintptr | |
| 62 | 62 | ||
| 63 | 63 | // Creates a new `GtkEmojiChooser`. | |
| 64 | - | func NewEmojiChooser() *Widget { | |
| 65 | - | var cls *Widget | |
| 64 | + | func NewEmojiChooser() *EmojiChooser { | |
| 65 | + | var cls *EmojiChooser | |
| 66 | 66 | ||
| 67 | 67 | cret := xNewEmojiChooser() | |
| 68 | 68 | ||
| @@ -70,7 +70,7 @@ func NewEmojiChooser() *Widget { | |||
| 70 | 70 | return nil | |
| 71 | 71 | } | |
| 72 | 72 | gobject.IncreaseRef(cret) | |
| 73 | - | cls = &Widget{} | |
| 73 | + | cls = &EmojiChooser{} | |
| 74 | 74 | cls.Ptr = cret | |
| 75 | 75 | return cls | |
| 76 | 76 | } | |
M v4/gtk/gtkentry.go +6 -6
| @@ -140,8 +140,8 @@ func EntryNewFromInternalPtr(ptr uintptr) *Entry { | |||
| 140 | 140 | var xNewEntry func() uintptr | |
| 141 | 141 | ||
| 142 | 142 | // Creates a new entry. | |
| 143 | - | func NewEntry() *Widget { | |
| 144 | - | var cls *Widget | |
| 143 | + | func NewEntry() *Entry { | |
| 144 | + | var cls *Entry | |
| 145 | 145 | ||
| 146 | 146 | cret := xNewEntry() | |
| 147 | 147 | ||
| @@ -149,7 +149,7 @@ func NewEntry() *Widget { | |||
| 149 | 149 | return nil | |
| 150 | 150 | } | |
| 151 | 151 | gobject.IncreaseRef(cret) | |
| 152 | - | cls = &Widget{} | |
| 152 | + | cls = &Entry{} | |
| 153 | 153 | cls.Ptr = cret | |
| 154 | 154 | return cls | |
| 155 | 155 | } | |
| @@ -157,8 +157,8 @@ func NewEntry() *Widget { | |||
| 157 | 157 | var xNewWithBufferEntry func(uintptr) uintptr | |
| 158 | 158 | ||
| 159 | 159 | // Creates a new entry with the specified text buffer. | |
| 160 | - | func NewWithBufferEntry(BufferVar *EntryBuffer) *Widget { | |
| 161 | - | var cls *Widget | |
| 160 | + | func NewWithBufferEntry(BufferVar *EntryBuffer) *Entry { | |
| 161 | + | var cls *Entry | |
| 162 | 162 | ||
| 163 | 163 | cret := xNewWithBufferEntry(BufferVar.GoPointer()) | |
| 164 | 164 | ||
| @@ -166,7 +166,7 @@ func NewWithBufferEntry(BufferVar *EntryBuffer) *Widget { | |||
| 166 | 166 | return nil | |
| 167 | 167 | } | |
| 168 | 168 | gobject.IncreaseRef(cret) | |
| 169 | - | cls = &Widget{} | |
| 169 | + | cls = &Entry{} | |
| 170 | 170 | cls.Ptr = cret | |
| 171 | 171 | return cls | |
| 172 | 172 | } | |
M v4/gtk/gtkeventcontrollerfocus.go +3 -3
| @@ -38,15 +38,15 @@ func EventControllerFocusNewFromInternalPtr(ptr uintptr) *EventControllerFocus { | |||
| 38 | 38 | var xNewEventControllerFocus func() uintptr | |
| 39 | 39 | ||
| 40 | 40 | // Creates a new event controller that will handle focus events. | |
| 41 | - | func NewEventControllerFocus() *EventController { | |
| 42 | - | var cls *EventController | |
| 41 | + | func NewEventControllerFocus() *EventControllerFocus { | |
| 42 | + | var cls *EventControllerFocus | |
| 43 | 43 | ||
| 44 | 44 | cret := xNewEventControllerFocus() | |
| 45 | 45 | ||
| 46 | 46 | if cret == 0 { | |
| 47 | 47 | return nil | |
| 48 | 48 | } | |
| 49 | - | cls = &EventController{} | |
| 49 | + | cls = &EventControllerFocus{} | |
| 50 | 50 | cls.Ptr = cret | |
| 51 | 51 | return cls | |
| 52 | 52 | } | |
M v4/gtk/gtkeventcontrollerkey.go +3 -3
| @@ -32,15 +32,15 @@ func EventControllerKeyNewFromInternalPtr(ptr uintptr) *EventControllerKey { | |||
| 32 | 32 | var xNewEventControllerKey func() uintptr | |
| 33 | 33 | ||
| 34 | 34 | // Creates a new event controller that will handle key events. | |
| 35 | - | func NewEventControllerKey() *EventController { | |
| 36 | - | var cls *EventController | |
| 35 | + | func NewEventControllerKey() *EventControllerKey { | |
| 36 | + | var cls *EventControllerKey | |
| 37 | 37 | ||
| 38 | 38 | cret := xNewEventControllerKey() | |
| 39 | 39 | ||
| 40 | 40 | if cret == 0 { | |
| 41 | 41 | return nil | |
| 42 | 42 | } | |
| 43 | - | cls = &EventController{} | |
| 43 | + | cls = &EventControllerKey{} | |
| 44 | 44 | cls.Ptr = cret | |
| 45 | 45 | return cls | |
| 46 | 46 | } | |
M v4/gtk/gtkeventcontrollerlegacy.go +3 -3
| @@ -34,15 +34,15 @@ func EventControllerLegacyNewFromInternalPtr(ptr uintptr) *EventControllerLegacy | |||
| 34 | 34 | var xNewEventControllerLegacy func() uintptr | |
| 35 | 35 | ||
| 36 | 36 | // Creates a new legacy event controller. | |
| 37 | - | func NewEventControllerLegacy() *EventController { | |
| 38 | - | var cls *EventController | |
| 37 | + | func NewEventControllerLegacy() *EventControllerLegacy { | |
| 38 | + | var cls *EventControllerLegacy | |
| 39 | 39 | ||
| 40 | 40 | cret := xNewEventControllerLegacy() | |
| 41 | 41 | ||
| 42 | 42 | if cret == 0 { | |
| 43 | 43 | return nil | |
| 44 | 44 | } | |
| 45 | - | cls = &EventController{} | |
| 45 | + | cls = &EventControllerLegacy{} | |
| 46 | 46 | cls.Ptr = cret | |
| 47 | 47 | return cls | |
| 48 | 48 | } | |
M v4/gtk/gtkeventcontrollermotion.go +3 -3
| @@ -38,15 +38,15 @@ func EventControllerMotionNewFromInternalPtr(ptr uintptr) *EventControllerMotion | |||
| 38 | 38 | var xNewEventControllerMotion func() uintptr | |
| 39 | 39 | ||
| 40 | 40 | // Creates a new event controller that will handle motion events. | |
| 41 | - | func NewEventControllerMotion() *EventController { | |
| 42 | - | var cls *EventController | |
| 41 | + | func NewEventControllerMotion() *EventControllerMotion { | |
| 42 | + | var cls *EventControllerMotion | |
| 43 | 43 | ||
| 44 | 44 | cret := xNewEventControllerMotion() | |
| 45 | 45 | ||
| 46 | 46 | if cret == 0 { | |
| 47 | 47 | return nil | |
| 48 | 48 | } | |
| 49 | - | cls = &EventController{} | |
| 49 | + | cls = &EventControllerMotion{} | |
| 50 | 50 | cls.Ptr = cret | |
| 51 | 51 | return cls | |
| 52 | 52 | } | |
M v4/gtk/gtkeventcontrollerscroll.go +3 -3
| @@ -83,15 +83,15 @@ func EventControllerScrollNewFromInternalPtr(ptr uintptr) *EventControllerScroll | |||
| 83 | 83 | var xNewEventControllerScroll func(EventControllerScrollFlags) uintptr | |
| 84 | 84 | ||
| 85 | 85 | // Creates a new event controller that will handle scroll events. | |
| 86 | - | func NewEventControllerScroll(FlagsVar EventControllerScrollFlags) *EventController { | |
| 87 | - | var cls *EventController | |
| 86 | + | func NewEventControllerScroll(FlagsVar EventControllerScrollFlags) *EventControllerScroll { | |
| 87 | + | var cls *EventControllerScroll | |
| 88 | 88 | ||
| 89 | 89 | cret := xNewEventControllerScroll(FlagsVar) | |
| 90 | 90 | ||
| 91 | 91 | if cret == 0 { | |
| 92 | 92 | return nil | |
| 93 | 93 | } | |
| 94 | - | cls = &EventController{} | |
| 94 | + | cls = &EventControllerScroll{} | |
| 95 | 95 | cls.Ptr = cret | |
| 96 | 96 | return cls | |
| 97 | 97 | } | |
M v4/gtk/gtkexpander.go +6 -6
| @@ -119,8 +119,8 @@ func ExpanderNewFromInternalPtr(ptr uintptr) *Expander { | |||
| 119 | 119 | var xNewExpander func(string) uintptr | |
| 120 | 120 | ||
| 121 | 121 | // Creates a new expander using @label as the text of the label. | |
| 122 | - | func NewExpander(LabelVar string) *Widget { | |
| 123 | - | var cls *Widget | |
| 122 | + | func NewExpander(LabelVar string) *Expander { | |
| 123 | + | var cls *Expander | |
| 124 | 124 | ||
| 125 | 125 | cret := xNewExpander(LabelVar) | |
| 126 | 126 | ||
| @@ -128,7 +128,7 @@ func NewExpander(LabelVar string) *Widget { | |||
| 128 | 128 | return nil | |
| 129 | 129 | } | |
| 130 | 130 | gobject.IncreaseRef(cret) | |
| 131 | - | cls = &Widget{} | |
| 131 | + | cls = &Expander{} | |
| 132 | 132 | cls.Ptr = cret | |
| 133 | 133 | return cls | |
| 134 | 134 | } | |
| @@ -143,8 +143,8 @@ var xNewWithMnemonicExpander func(string) uintptr | |||
| 143 | 143 | // a keyboard accelerator called a mnemonic. | |
| 144 | 144 | // | |
| 145 | 145 | // Pressing Alt and that key activates the button. | |
| 146 | - | func NewWithMnemonicExpander(LabelVar string) *Widget { | |
| 147 | - | var cls *Widget | |
| 146 | + | func NewWithMnemonicExpander(LabelVar string) *Expander { | |
| 147 | + | var cls *Expander | |
| 148 | 148 | ||
| 149 | 149 | cret := xNewWithMnemonicExpander(LabelVar) | |
| 150 | 150 | ||
| @@ -152,7 +152,7 @@ func NewWithMnemonicExpander(LabelVar string) *Widget { | |||
| 152 | 152 | return nil | |
| 153 | 153 | } | |
| 154 | 154 | gobject.IncreaseRef(cret) | |
| 155 | - | cls = &Widget{} | |
| 155 | + | cls = &Expander{} | |
| 156 | 156 | cls.Ptr = cret | |
| 157 | 157 | return cls | |
| 158 | 158 | } | |
M v4/gtk/gtkfilechooserdialog.go +3 -3
| @@ -201,8 +201,8 @@ var xNewFileChooserDialog func(string, uintptr, FileChooserAction, string, ...in | |||
| 201 | 201 | // Creates a new `GtkFileChooserDialog`. | |
| 202 | 202 | // | |
| 203 | 203 | // This function is analogous to [ctor@Gtk.Dialog.new_with_buttons]. | |
| 204 | - | func NewFileChooserDialog(TitleVar string, ParentVar *Window, ActionVar FileChooserAction, FirstButtonTextVar string, varArgs ...interface{}) *Widget { | |
| 205 | - | var cls *Widget | |
| 204 | + | func NewFileChooserDialog(TitleVar string, ParentVar *Window, ActionVar FileChooserAction, FirstButtonTextVar string, varArgs ...interface{}) *FileChooserDialog { | |
| 205 | + | var cls *FileChooserDialog | |
| 206 | 206 | ||
| 207 | 207 | cret := xNewFileChooserDialog(TitleVar, ParentVar.GoPointer(), ActionVar, FirstButtonTextVar, varArgs...) | |
| 208 | 208 | ||
| @@ -210,7 +210,7 @@ func NewFileChooserDialog(TitleVar string, ParentVar *Window, ActionVar FileChoo | |||
| 210 | 210 | return nil | |
| 211 | 211 | } | |
| 212 | 212 | gobject.IncreaseRef(cret) | |
| 213 | - | cls = &Widget{} | |
| 213 | + | cls = &FileChooserDialog{} | |
| 214 | 214 | cls.Ptr = cret | |
| 215 | 215 | return cls | |
| 216 | 216 | } | |
M v4/gtk/gtkfilechooserwidget.go +3 -3
| @@ -35,8 +35,8 @@ var xNewFileChooserWidget func(FileChooserAction) uintptr | |||
| 35 | 35 | // This is a file chooser widget that can be embedded in custom | |
| 36 | 36 | // windows, and it is the same widget that is used by | |
| 37 | 37 | // `GtkFileChooserDialog`. | |
| 38 | - | func NewFileChooserWidget(ActionVar FileChooserAction) *Widget { | |
| 39 | - | var cls *Widget | |
| 38 | + | func NewFileChooserWidget(ActionVar FileChooserAction) *FileChooserWidget { | |
| 39 | + | var cls *FileChooserWidget | |
| 40 | 40 | ||
| 41 | 41 | cret := xNewFileChooserWidget(ActionVar) | |
| 42 | 42 | ||
| @@ -44,7 +44,7 @@ func NewFileChooserWidget(ActionVar FileChooserAction) *Widget { | |||
| 44 | 44 | return nil | |
| 45 | 45 | } | |
| 46 | 46 | gobject.IncreaseRef(cret) | |
| 47 | - | cls = &Widget{} | |
| 47 | + | cls = &FileChooserWidget{} | |
| 48 | 48 | cls.Ptr = cret | |
| 49 | 49 | return cls | |
| 50 | 50 | } | |
M v4/gtk/gtkfixed.go +3 -3
| @@ -70,8 +70,8 @@ func FixedNewFromInternalPtr(ptr uintptr) *Fixed { | |||
| 70 | 70 | var xNewFixed func() uintptr | |
| 71 | 71 | ||
| 72 | 72 | // Creates a new `GtkFixed`. | |
| 73 | - | func NewFixed() *Widget { | |
| 74 | - | var cls *Widget | |
| 73 | + | func NewFixed() *Fixed { | |
| 74 | + | var cls *Fixed | |
| 75 | 75 | ||
| 76 | 76 | cret := xNewFixed() | |
| 77 | 77 | ||
| @@ -79,7 +79,7 @@ func NewFixed() *Widget { | |||
| 79 | 79 | return nil | |
| 80 | 80 | } | |
| 81 | 81 | gobject.IncreaseRef(cret) | |
| 82 | - | cls = &Widget{} | |
| 82 | + | cls = &Fixed{} | |
| 83 | 83 | cls.Ptr = cret | |
| 84 | 84 | return cls | |
| 85 | 85 | } | |
M v4/gtk/gtkfixedlayout.go +3 -3
| @@ -69,15 +69,15 @@ func FixedLayoutNewFromInternalPtr(ptr uintptr) *FixedLayout { | |||
| 69 | 69 | var xNewFixedLayout func() uintptr | |
| 70 | 70 | ||
| 71 | 71 | // Creates a new `GtkFixedLayout`. | |
| 72 | - | func NewFixedLayout() *LayoutManager { | |
| 73 | - | var cls *LayoutManager | |
| 72 | + | func NewFixedLayout() *FixedLayout { | |
| 73 | + | var cls *FixedLayout | |
| 74 | 74 | ||
| 75 | 75 | cret := xNewFixedLayout() | |
| 76 | 76 | ||
| 77 | 77 | if cret == 0 { | |
| 78 | 78 | return nil | |
| 79 | 79 | } | |
| 80 | - | cls = &LayoutManager{} | |
| 80 | + | cls = &FixedLayout{} | |
| 81 | 81 | cls.Ptr = cret | |
| 82 | 82 | return cls | |
| 83 | 83 | } | |
M v4/gtk/gtkflowbox.go +6 -6
| @@ -100,8 +100,8 @@ func FlowBoxNewFromInternalPtr(ptr uintptr) *FlowBox { | |||
| 100 | 100 | var xNewFlowBox func() uintptr | |
| 101 | 101 | ||
| 102 | 102 | // Creates a `GtkFlowBox`. | |
| 103 | - | func NewFlowBox() *Widget { | |
| 104 | - | var cls *Widget | |
| 103 | + | func NewFlowBox() *FlowBox { | |
| 104 | + | var cls *FlowBox | |
| 105 | 105 | ||
| 106 | 106 | cret := xNewFlowBox() | |
| 107 | 107 | ||
| @@ -109,7 +109,7 @@ func NewFlowBox() *Widget { | |||
| 109 | 109 | return nil | |
| 110 | 110 | } | |
| 111 | 111 | gobject.IncreaseRef(cret) | |
| 112 | - | cls = &Widget{} | |
| 112 | + | cls = &FlowBox{} | |
| 113 | 113 | cls.Ptr = cret | |
| 114 | 114 | return cls | |
| 115 | 115 | } | |
| @@ -825,8 +825,8 @@ var xNewFlowBoxChild func() uintptr | |||
| 825 | 825 | // Creates a new `GtkFlowBoxChild`. | |
| 826 | 826 | // | |
| 827 | 827 | // This should only be used as a child of a `GtkFlowBox`. | |
| 828 | - | func NewFlowBoxChild() *Widget { | |
| 829 | - | var cls *Widget | |
| 828 | + | func NewFlowBoxChild() *FlowBoxChild { | |
| 829 | + | var cls *FlowBoxChild | |
| 830 | 830 | ||
| 831 | 831 | cret := xNewFlowBoxChild() | |
| 832 | 832 | ||
| @@ -834,7 +834,7 @@ func NewFlowBoxChild() *Widget { | |||
| 834 | 834 | return nil | |
| 835 | 835 | } | |
| 836 | 836 | gobject.IncreaseRef(cret) | |
| 837 | - | cls = &Widget{} | |
| 837 | + | cls = &FlowBoxChild{} | |
| 838 | 838 | cls.Ptr = cret | |
| 839 | 839 | return cls | |
| 840 | 840 | } | |
M v4/gtk/gtkfontbutton.go +6 -6
| @@ -41,8 +41,8 @@ func FontButtonNewFromInternalPtr(ptr uintptr) *FontButton { | |||
| 41 | 41 | var xNewFontButton func() uintptr | |
| 42 | 42 | ||
| 43 | 43 | // Creates a new font picker widget. | |
| 44 | - | func NewFontButton() *Widget { | |
| 45 | - | var cls *Widget | |
| 44 | + | func NewFontButton() *FontButton { | |
| 45 | + | var cls *FontButton | |
| 46 | 46 | ||
| 47 | 47 | cret := xNewFontButton() | |
| 48 | 48 | ||
| @@ -50,7 +50,7 @@ func NewFontButton() *Widget { | |||
| 50 | 50 | return nil | |
| 51 | 51 | } | |
| 52 | 52 | gobject.IncreaseRef(cret) | |
| 53 | - | cls = &Widget{} | |
| 53 | + | cls = &FontButton{} | |
| 54 | 54 | cls.Ptr = cret | |
| 55 | 55 | return cls | |
| 56 | 56 | } | |
| @@ -58,8 +58,8 @@ func NewFontButton() *Widget { | |||
| 58 | 58 | var xNewWithFontFontButton func(string) uintptr | |
| 59 | 59 | ||
| 60 | 60 | // Creates a new font picker widget showing the given font. | |
| 61 | - | func NewWithFontFontButton(FontnameVar string) *Widget { | |
| 62 | - | var cls *Widget | |
| 61 | + | func NewWithFontFontButton(FontnameVar string) *FontButton { | |
| 62 | + | var cls *FontButton | |
| 63 | 63 | ||
| 64 | 64 | cret := xNewWithFontFontButton(FontnameVar) | |
| 65 | 65 | ||
| @@ -67,7 +67,7 @@ func NewWithFontFontButton(FontnameVar string) *Widget { | |||
| 67 | 67 | return nil | |
| 68 | 68 | } | |
| 69 | 69 | gobject.IncreaseRef(cret) | |
| 70 | - | cls = &Widget{} | |
| 70 | + | cls = &FontButton{} | |
| 71 | 71 | cls.Ptr = cret | |
| 72 | 72 | return cls | |
| 73 | 73 | } | |
M v4/gtk/gtkfontchooserdialog.go +3 -3
| @@ -38,8 +38,8 @@ func FontChooserDialogNewFromInternalPtr(ptr uintptr) *FontChooserDialog { | |||
| 38 | 38 | var xNewFontChooserDialog func(string, uintptr) uintptr | |
| 39 | 39 | ||
| 40 | 40 | // Creates a new `GtkFontChooserDialog`. | |
| 41 | - | func NewFontChooserDialog(TitleVar string, ParentVar *Window) *Widget { | |
| 42 | - | var cls *Widget | |
| 41 | + | func NewFontChooserDialog(TitleVar string, ParentVar *Window) *FontChooserDialog { | |
| 42 | + | var cls *FontChooserDialog | |
| 43 | 43 | ||
| 44 | 44 | cret := xNewFontChooserDialog(TitleVar, ParentVar.GoPointer()) | |
| 45 | 45 | ||
| @@ -47,7 +47,7 @@ func NewFontChooserDialog(TitleVar string, ParentVar *Window) *Widget { | |||
| 47 | 47 | return nil | |
| 48 | 48 | } | |
| 49 | 49 | gobject.IncreaseRef(cret) | |
| 50 | - | cls = &Widget{} | |
| 50 | + | cls = &FontChooserDialog{} | |
| 51 | 51 | cls.Ptr = cret | |
| 52 | 52 | return cls | |
| 53 | 53 | } | |
M v4/gtk/gtkfontchooserwidget.go +3 -3
| @@ -39,8 +39,8 @@ func FontChooserWidgetNewFromInternalPtr(ptr uintptr) *FontChooserWidget { | |||
| 39 | 39 | var xNewFontChooserWidget func() uintptr | |
| 40 | 40 | ||
| 41 | 41 | // Creates a new `GtkFontChooserWidget`. | |
| 42 | - | func NewFontChooserWidget() *Widget { | |
| 43 | - | var cls *Widget | |
| 42 | + | func NewFontChooserWidget() *FontChooserWidget { | |
| 43 | + | var cls *FontChooserWidget | |
| 44 | 44 | ||
| 45 | 45 | cret := xNewFontChooserWidget() | |
| 46 | 46 | ||
| @@ -48,7 +48,7 @@ func NewFontChooserWidget() *Widget { | |||
| 48 | 48 | return nil | |
| 49 | 49 | } | |
| 50 | 50 | gobject.IncreaseRef(cret) | |
| 51 | - | cls = &Widget{} | |
| 51 | + | cls = &FontChooserWidget{} | |
| 52 | 52 | cls.Ptr = cret | |
| 53 | 53 | return cls | |
| 54 | 54 | } | |
M v4/gtk/gtkframe.go +3 -3
| @@ -78,8 +78,8 @@ var xNewFrame func(string) uintptr | |||
| 78 | 78 | // Creates a new `GtkFrame`, with optional label @label. | |
| 79 | 79 | // | |
| 80 | 80 | // If @label is %NULL, the label is omitted. | |
| 81 | - | func NewFrame(LabelVar string) *Widget { | |
| 82 | - | var cls *Widget | |
| 81 | + | func NewFrame(LabelVar string) *Frame { | |
| 82 | + | var cls *Frame | |
| 83 | 83 | ||
| 84 | 84 | cret := xNewFrame(LabelVar) | |
| 85 | 85 | ||
| @@ -87,7 +87,7 @@ func NewFrame(LabelVar string) *Widget { | |||
| 87 | 87 | return nil | |
| 88 | 88 | } | |
| 89 | 89 | gobject.IncreaseRef(cret) | |
| 90 | - | cls = &Widget{} | |
| 90 | + | cls = &Frame{} | |
| 91 | 91 | cls.Ptr = cret | |
| 92 | 92 | return cls | |
| 93 | 93 | } | |
M v4/gtk/gtkgestureclick.go +3 -3
| @@ -37,15 +37,15 @@ var xNewGestureClick func() uintptr | |||
| 37 | 37 | ||
| 38 | 38 | // Returns a newly created `GtkGesture` that recognizes | |
| 39 | 39 | // single and multiple presses. | |
| 40 | - | func NewGestureClick() *Gesture { | |
| 41 | - | var cls *Gesture | |
| 40 | + | func NewGestureClick() *GestureClick { | |
| 41 | + | var cls *GestureClick | |
| 42 | 42 | ||
| 43 | 43 | cret := xNewGestureClick() | |
| 44 | 44 | ||
| 45 | 45 | if cret == 0 { | |
| 46 | 46 | return nil | |
| 47 | 47 | } | |
| 48 | - | cls = &Gesture{} | |
| 48 | + | cls = &GestureClick{} | |
| 49 | 49 | cls.Ptr = cret | |
| 50 | 50 | return cls | |
| 51 | 51 | } | |
M v4/gtk/gtkgesturedrag.go +3 -3
| @@ -38,15 +38,15 @@ func GestureDragNewFromInternalPtr(ptr uintptr) *GestureDrag { | |||
| 38 | 38 | var xNewGestureDrag func() uintptr | |
| 39 | 39 | ||
| 40 | 40 | // Returns a newly created `GtkGesture` that recognizes drags. | |
| 41 | - | func NewGestureDrag() *Gesture { | |
| 42 | - | var cls *Gesture | |
| 41 | + | func NewGestureDrag() *GestureDrag { | |
| 42 | + | var cls *GestureDrag | |
| 43 | 43 | ||
| 44 | 44 | cret := xNewGestureDrag() | |
| 45 | 45 | ||
| 46 | 46 | if cret == 0 { | |
| 47 | 47 | return nil | |
| 48 | 48 | } | |
| 49 | - | cls = &Gesture{} | |
| 49 | + | cls = &GestureDrag{} | |
| 50 | 50 | cls.Ptr = cret | |
| 51 | 51 | return cls | |
| 52 | 52 | } | |
M v4/gtk/gtkgesturelongpress.go +3 -3
| @@ -44,15 +44,15 @@ func GestureLongPressNewFromInternalPtr(ptr uintptr) *GestureLongPress { | |||
| 44 | 44 | var xNewGestureLongPress func() uintptr | |
| 45 | 45 | ||
| 46 | 46 | // Returns a newly created `GtkGesture` that recognizes long presses. | |
| 47 | - | func NewGestureLongPress() *Gesture { | |
| 48 | - | var cls *Gesture | |
| 47 | + | func NewGestureLongPress() *GestureLongPress { | |
| 48 | + | var cls *GestureLongPress | |
| 49 | 49 | ||
| 50 | 50 | cret := xNewGestureLongPress() | |
| 51 | 51 | ||
| 52 | 52 | if cret == 0 { | |
| 53 | 53 | return nil | |
| 54 | 54 | } | |
| 55 | - | cls = &Gesture{} | |
| 55 | + | cls = &GestureLongPress{} | |
| 56 | 56 | cls.Ptr = cret | |
| 57 | 57 | return cls | |
| 58 | 58 | } | |
M v4/gtk/gtkgesturepan.go +3 -3
| @@ -43,15 +43,15 @@ func GesturePanNewFromInternalPtr(ptr uintptr) *GesturePan { | |||
| 43 | 43 | var xNewGesturePan func(Orientation) uintptr | |
| 44 | 44 | ||
| 45 | 45 | // Returns a newly created `GtkGesture` that recognizes pan gestures. | |
| 46 | - | func NewGesturePan(OrientationVar Orientation) *Gesture { | |
| 47 | - | var cls *Gesture | |
| 46 | + | func NewGesturePan(OrientationVar Orientation) *GesturePan { | |
| 47 | + | var cls *GesturePan | |
| 48 | 48 | ||
| 49 | 49 | cret := xNewGesturePan(OrientationVar) | |
| 50 | 50 | ||
| 51 | 51 | if cret == 0 { | |
| 52 | 52 | return nil | |
| 53 | 53 | } | |
| 54 | - | cls = &Gesture{} | |
| 54 | + | cls = &GesturePan{} | |
| 55 | 55 | cls.Ptr = cret | |
| 56 | 56 | return cls | |
| 57 | 57 | } | |
M v4/gtk/gtkgesturerotate.go +3 -3
| @@ -34,15 +34,15 @@ var xNewGestureRotate func() uintptr | |||
| 34 | 34 | ||
| 35 | 35 | // Returns a newly created `GtkGesture` that recognizes 2-touch | |
| 36 | 36 | // rotation gestures. | |
| 37 | - | func NewGestureRotate() *Gesture { | |
| 38 | - | var cls *Gesture | |
| 37 | + | func NewGestureRotate() *GestureRotate { | |
| 38 | + | var cls *GestureRotate | |
| 39 | 39 | ||
| 40 | 40 | cret := xNewGestureRotate() | |
| 41 | 41 | ||
| 42 | 42 | if cret == 0 { | |
| 43 | 43 | return nil | |
| 44 | 44 | } | |
| 45 | - | cls = &Gesture{} | |
| 45 | + | cls = &GestureRotate{} | |
| 46 | 46 | cls.Ptr = cret | |
| 47 | 47 | return cls | |
| 48 | 48 | } | |
M v4/gtk/gtkgesturestylus.go +3 -3
| @@ -34,15 +34,15 @@ func GestureStylusNewFromInternalPtr(ptr uintptr) *GestureStylus { | |||
| 34 | 34 | var xNewGestureStylus func() uintptr | |
| 35 | 35 | ||
| 36 | 36 | // Creates a new `GtkGestureStylus`. | |
| 37 | - | func NewGestureStylus() *Gesture { | |
| 38 | - | var cls *Gesture | |
| 37 | + | func NewGestureStylus() *GestureStylus { | |
| 38 | + | var cls *GestureStylus | |
| 39 | 39 | ||
| 40 | 40 | cret := xNewGestureStylus() | |
| 41 | 41 | ||
| 42 | 42 | if cret == 0 { | |
| 43 | 43 | return nil | |
| 44 | 44 | } | |
| 45 | - | cls = &Gesture{} | |
| 45 | + | cls = &GestureStylus{} | |
| 46 | 46 | cls.Ptr = cret | |
| 47 | 47 | return cls | |
| 48 | 48 | } | |
M v4/gtk/gtkgestureswipe.go +3 -3
| @@ -41,15 +41,15 @@ func GestureSwipeNewFromInternalPtr(ptr uintptr) *GestureSwipe { | |||
| 41 | 41 | var xNewGestureSwipe func() uintptr | |
| 42 | 42 | ||
| 43 | 43 | // Returns a newly created `GtkGesture` that recognizes swipes. | |
| 44 | - | func NewGestureSwipe() *Gesture { | |
| 45 | - | var cls *Gesture | |
| 44 | + | func NewGestureSwipe() *GestureSwipe { | |
| 45 | + | var cls *GestureSwipe | |
| 46 | 46 | ||
| 47 | 47 | cret := xNewGestureSwipe() | |
| 48 | 48 | ||
| 49 | 49 | if cret == 0 { | |
| 50 | 50 | return nil | |
| 51 | 51 | } | |
| 52 | - | cls = &Gesture{} | |
| 52 | + | cls = &GestureSwipe{} | |
| 53 | 53 | cls.Ptr = cret | |
| 54 | 54 | return cls | |
| 55 | 55 | } | |
M v4/gtk/gtkgesturezoom.go +3 -3
| @@ -35,15 +35,15 @@ var xNewGestureZoom func() uintptr | |||
| 35 | 35 | ||
| 36 | 36 | // Returns a newly created `GtkGesture` that recognizes | |
| 37 | 37 | // pinch/zoom gestures. | |
| 38 | - | func NewGestureZoom() *Gesture { | |
| 39 | - | var cls *Gesture | |
| 38 | + | func NewGestureZoom() *GestureZoom { | |
| 39 | + | var cls *GestureZoom | |
| 40 | 40 | ||
| 41 | 41 | cret := xNewGestureZoom() | |
| 42 | 42 | ||
| 43 | 43 | if cret == 0 { | |
| 44 | 44 | return nil | |
| 45 | 45 | } | |
| 46 | - | cls = &Gesture{} | |
| 46 | + | cls = &GestureZoom{} | |
| 47 | 47 | cls.Ptr = cret | |
| 48 | 48 | return cls | |
| 49 | 49 | } | |
M v4/gtk/gtkglarea.go +3 -3
| @@ -142,8 +142,8 @@ func GLAreaNewFromInternalPtr(ptr uintptr) *GLArea { | |||
| 142 | 142 | var xNewGLArea func() uintptr | |
| 143 | 143 | ||
| 144 | 144 | // Creates a new `GtkGLArea` widget. | |
| 145 | - | func NewGLArea() *Widget { | |
| 146 | - | var cls *Widget | |
| 145 | + | func NewGLArea() *GLArea { | |
| 146 | + | var cls *GLArea | |
| 147 | 147 | ||
| 148 | 148 | cret := xNewGLArea() | |
| 149 | 149 | ||
| @@ -151,7 +151,7 @@ func NewGLArea() *Widget { | |||
| 151 | 151 | return nil | |
| 152 | 152 | } | |
| 153 | 153 | gobject.IncreaseRef(cret) | |
| 154 | - | cls = &Widget{} | |
| 154 | + | cls = &GLArea{} | |
| 155 | 155 | cls.Ptr = cret | |
| 156 | 156 | return cls | |
| 157 | 157 | } | |
M v4/gtk/gtkgrid.go +3 -3
| @@ -116,8 +116,8 @@ func GridNewFromInternalPtr(ptr uintptr) *Grid { | |||
| 116 | 116 | var xNewGrid func() uintptr | |
| 117 | 117 | ||
| 118 | 118 | // Creates a new grid widget. | |
| 119 | - | func NewGrid() *Widget { | |
| 120 | - | var cls *Widget | |
| 119 | + | func NewGrid() *Grid { | |
| 120 | + | var cls *Grid | |
| 121 | 121 | ||
| 122 | 122 | cret := xNewGrid() | |
| 123 | 123 | ||
| @@ -125,7 +125,7 @@ func NewGrid() *Widget { | |||
| 125 | 125 | return nil | |
| 126 | 126 | } | |
| 127 | 127 | gobject.IncreaseRef(cret) | |
| 128 | - | cls = &Widget{} | |
| 128 | + | cls = &Grid{} | |
| 129 | 129 | cls.Ptr = cret | |
| 130 | 130 | return cls | |
| 131 | 131 | } | |
M v4/gtk/gtkgridlayout.go +3 -3
| @@ -51,15 +51,15 @@ func GridLayoutNewFromInternalPtr(ptr uintptr) *GridLayout { | |||
| 51 | 51 | var xNewGridLayout func() uintptr | |
| 52 | 52 | ||
| 53 | 53 | // Creates a new `GtkGridLayout`. | |
| 54 | - | func NewGridLayout() *LayoutManager { | |
| 55 | - | var cls *LayoutManager | |
| 54 | + | func NewGridLayout() *GridLayout { | |
| 55 | + | var cls *GridLayout | |
| 56 | 56 | ||
| 57 | 57 | cret := xNewGridLayout() | |
| 58 | 58 | ||
| 59 | 59 | if cret == 0 { | |
| 60 | 60 | return nil | |
| 61 | 61 | } | |
| 62 | - | cls = &LayoutManager{} | |
| 62 | + | cls = &GridLayout{} | |
| 63 | 63 | cls.Ptr = cret | |
| 64 | 64 | return cls | |
| 65 | 65 | } | |
M v4/gtk/gtkgridview.go +3 -3
| @@ -74,8 +74,8 @@ var xNewGridView func(uintptr, uintptr) uintptr | |||
| 74 | 74 | // gtk_builder_list_item_factory_new_from_resource ("/resource.ui")); | |
| 75 | 75 | // | |
| 76 | 76 | // ``` | |
| 77 | - | func NewGridView(ModelVar SelectionModel, FactoryVar *ListItemFactory) *Widget { | |
| 78 | - | var cls *Widget | |
| 77 | + | func NewGridView(ModelVar SelectionModel, FactoryVar *ListItemFactory) *GridView { | |
| 78 | + | var cls *GridView | |
| 79 | 79 | ||
| 80 | 80 | cret := xNewGridView(ModelVar.GoPointer(), FactoryVar.GoPointer()) | |
| 81 | 81 | ||
| @@ -83,7 +83,7 @@ func NewGridView(ModelVar SelectionModel, FactoryVar *ListItemFactory) *Widget { | |||
| 83 | 83 | return nil | |
| 84 | 84 | } | |
| 85 | 85 | gobject.IncreaseRef(cret) | |
| 86 | - | cls = &Widget{} | |
| 86 | + | cls = &GridView{} | |
| 87 | 87 | cls.Ptr = cret | |
| 88 | 88 | return cls | |
| 89 | 89 | } | |
M v4/gtk/gtkheaderbar.go +3 -3
| @@ -95,8 +95,8 @@ func HeaderBarNewFromInternalPtr(ptr uintptr) *HeaderBar { | |||
| 95 | 95 | var xNewHeaderBar func() uintptr | |
| 96 | 96 | ||
| 97 | 97 | // Creates a new `GtkHeaderBar` widget. | |
| 98 | - | func NewHeaderBar() *Widget { | |
| 99 | - | var cls *Widget | |
| 98 | + | func NewHeaderBar() *HeaderBar { | |
| 99 | + | var cls *HeaderBar | |
| 100 | 100 | ||
| 101 | 101 | cret := xNewHeaderBar() | |
| 102 | 102 | ||
| @@ -104,7 +104,7 @@ func NewHeaderBar() *Widget { | |||
| 104 | 104 | return nil | |
| 105 | 105 | } | |
| 106 | 106 | gobject.IncreaseRef(cret) | |
| 107 | - | cls = &Widget{} | |
| 107 | + | cls = &HeaderBar{} | |
| 108 | 108 | cls.Ptr = cret | |
| 109 | 109 | return cls | |
| 110 | 110 | } | |
M v4/gtk/gtkiconview.go +9 -9
| @@ -70,8 +70,8 @@ func IconViewNewFromInternalPtr(ptr uintptr) *IconView { | |||
| 70 | 70 | var xNewIconView func() uintptr | |
| 71 | 71 | ||
| 72 | 72 | // Creates a new `GtkIconView` widget | |
| 73 | - | func NewIconView() *Widget { | |
| 74 | - | var cls *Widget | |
| 73 | + | func NewIconView() *IconView { | |
| 74 | + | var cls *IconView | |
| 75 | 75 | ||
| 76 | 76 | cret := xNewIconView() | |
| 77 | 77 | ||
| @@ -79,7 +79,7 @@ func NewIconView() *Widget { | |||
| 79 | 79 | return nil | |
| 80 | 80 | } | |
| 81 | 81 | gobject.IncreaseRef(cret) | |
| 82 | - | cls = &Widget{} | |
| 82 | + | cls = &IconView{} | |
| 83 | 83 | cls.Ptr = cret | |
| 84 | 84 | return cls | |
| 85 | 85 | } | |
| @@ -88,8 +88,8 @@ var xNewWithAreaIconView func(uintptr) uintptr | |||
| 88 | 88 | ||
| 89 | 89 | // Creates a new `GtkIconView` widget using the | |
| 90 | 90 | // specified @area to layout cells inside the icons. | |
| 91 | - | func NewWithAreaIconView(AreaVar *CellArea) *Widget { | |
| 92 | - | var cls *Widget | |
| 91 | + | func NewWithAreaIconView(AreaVar *CellArea) *IconView { | |
| 92 | + | var cls *IconView | |
| 93 | 93 | ||
| 94 | 94 | cret := xNewWithAreaIconView(AreaVar.GoPointer()) | |
| 95 | 95 | ||
| @@ -97,7 +97,7 @@ func NewWithAreaIconView(AreaVar *CellArea) *Widget { | |||
| 97 | 97 | return nil | |
| 98 | 98 | } | |
| 99 | 99 | gobject.IncreaseRef(cret) | |
| 100 | - | cls = &Widget{} | |
| 100 | + | cls = &IconView{} | |
| 101 | 101 | cls.Ptr = cret | |
| 102 | 102 | return cls | |
| 103 | 103 | } | |
| @@ -105,8 +105,8 @@ func NewWithAreaIconView(AreaVar *CellArea) *Widget { | |||
| 105 | 105 | var xNewWithModelIconView func(uintptr) uintptr | |
| 106 | 106 | ||
| 107 | 107 | // Creates a new `GtkIconView` widget with the model @model. | |
| 108 | - | func NewWithModelIconView(ModelVar TreeModel) *Widget { | |
| 109 | - | var cls *Widget | |
| 108 | + | func NewWithModelIconView(ModelVar TreeModel) *IconView { | |
| 109 | + | var cls *IconView | |
| 110 | 110 | ||
| 111 | 111 | cret := xNewWithModelIconView(ModelVar.GoPointer()) | |
| 112 | 112 | ||
| @@ -114,7 +114,7 @@ func NewWithModelIconView(ModelVar TreeModel) *Widget { | |||
| 114 | 114 | return nil | |
| 115 | 115 | } | |
| 116 | 116 | gobject.IncreaseRef(cret) | |
| 117 | - | cls = &Widget{} | |
| 117 | + | cls = &IconView{} | |
| 118 | 118 | cls.Ptr = cret | |
| 119 | 119 | return cls | |
| 120 | 120 | } | |
M v4/gtk/gtkimage.go +21 -21
| @@ -84,8 +84,8 @@ func ImageNewFromInternalPtr(ptr uintptr) *Image { | |||
| 84 | 84 | var xNewImage func() uintptr | |
| 85 | 85 | ||
| 86 | 86 | // Creates a new empty `GtkImage` widget. | |
| 87 | - | func NewImage() *Widget { | |
| 88 | - | var cls *Widget | |
| 87 | + | func NewImage() *Image { | |
| 88 | + | var cls *Image | |
| 89 | 89 | ||
| 90 | 90 | cret := xNewImage() | |
| 91 | 91 | ||
| @@ -93,7 +93,7 @@ func NewImage() *Widget { | |||
| 93 | 93 | return nil | |
| 94 | 94 | } | |
| 95 | 95 | gobject.IncreaseRef(cret) | |
| 96 | - | cls = &Widget{} | |
| 96 | + | cls = &Image{} | |
| 97 | 97 | cls.Ptr = cret | |
| 98 | 98 | return cls | |
| 99 | 99 | } | |
| @@ -113,8 +113,8 @@ var xNewFromFileImage func(string) uintptr | |||
| 113 | 113 | // The storage type (see [method@Gtk.Image.get_storage_type]) | |
| 114 | 114 | // of the returned image is not defined, it will be whatever | |
| 115 | 115 | // is appropriate for displaying the file. | |
| 116 | - | func NewFromFileImage(FilenameVar string) *Widget { | |
| 117 | - | var cls *Widget | |
| 116 | + | func NewFromFileImage(FilenameVar string) *Image { | |
| 117 | + | var cls *Image | |
| 118 | 118 | ||
| 119 | 119 | cret := xNewFromFileImage(FilenameVar) | |
| 120 | 120 | ||
| @@ -122,7 +122,7 @@ func NewFromFileImage(FilenameVar string) *Widget { | |||
| 122 | 122 | return nil | |
| 123 | 123 | } | |
| 124 | 124 | gobject.IncreaseRef(cret) | |
| 125 | - | cls = &Widget{} | |
| 125 | + | cls = &Image{} | |
| 126 | 126 | cls.Ptr = cret | |
| 127 | 127 | return cls | |
| 128 | 128 | } | |
| @@ -134,8 +134,8 @@ var xNewFromGiconImage func(uintptr) uintptr | |||
| 134 | 134 | // If the icon name isn’t known, a “broken image” icon will be | |
| 135 | 135 | // displayed instead. If the current icon theme is changed, the icon | |
| 136 | 136 | // will be updated appropriately. | |
| 137 | - | func NewFromGiconImage(IconVar gio.Icon) *Widget { | |
| 138 | - | var cls *Widget | |
| 137 | + | func NewFromGiconImage(IconVar gio.Icon) *Image { | |
| 138 | + | var cls *Image | |
| 139 | 139 | ||
| 140 | 140 | cret := xNewFromGiconImage(IconVar.GoPointer()) | |
| 141 | 141 | ||
| @@ -143,7 +143,7 @@ func NewFromGiconImage(IconVar gio.Icon) *Widget { | |||
| 143 | 143 | return nil | |
| 144 | 144 | } | |
| 145 | 145 | gobject.IncreaseRef(cret) | |
| 146 | - | cls = &Widget{} | |
| 146 | + | cls = &Image{} | |
| 147 | 147 | cls.Ptr = cret | |
| 148 | 148 | return cls | |
| 149 | 149 | } | |
| @@ -155,8 +155,8 @@ var xNewFromIconNameImage func(string) uintptr | |||
| 155 | 155 | // If the icon name isn’t known, a “broken image” icon will be | |
| 156 | 156 | // displayed instead. If the current icon theme is changed, the icon | |
| 157 | 157 | // will be updated appropriately. | |
| 158 | - | func NewFromIconNameImage(IconNameVar string) *Widget { | |
| 159 | - | var cls *Widget | |
| 158 | + | func NewFromIconNameImage(IconNameVar string) *Image { | |
| 159 | + | var cls *Image | |
| 160 | 160 | ||
| 161 | 161 | cret := xNewFromIconNameImage(IconNameVar) | |
| 162 | 162 | ||
| @@ -164,7 +164,7 @@ func NewFromIconNameImage(IconNameVar string) *Widget { | |||
| 164 | 164 | return nil | |
| 165 | 165 | } | |
| 166 | 166 | gobject.IncreaseRef(cret) | |
| 167 | - | cls = &Widget{} | |
| 167 | + | cls = &Image{} | |
| 168 | 168 | cls.Ptr = cret | |
| 169 | 169 | return cls | |
| 170 | 170 | } | |
| @@ -179,8 +179,8 @@ var xNewFromPaintableImage func(uintptr) uintptr | |||
| 179 | 179 | // | |
| 180 | 180 | // The `GtkImage` will track changes to the @paintable and update | |
| 181 | 181 | // its size and contents in response to it. | |
| 182 | - | func NewFromPaintableImage(PaintableVar gdk.Paintable) *Widget { | |
| 183 | - | var cls *Widget | |
| 182 | + | func NewFromPaintableImage(PaintableVar gdk.Paintable) *Image { | |
| 183 | + | var cls *Image | |
| 184 | 184 | ||
| 185 | 185 | cret := xNewFromPaintableImage(PaintableVar.GoPointer()) | |
| 186 | 186 | ||
| @@ -188,7 +188,7 @@ func NewFromPaintableImage(PaintableVar gdk.Paintable) *Widget { | |||
| 188 | 188 | return nil | |
| 189 | 189 | } | |
| 190 | 190 | gobject.IncreaseRef(cret) | |
| 191 | - | cls = &Widget{} | |
| 191 | + | cls = &Image{} | |
| 192 | 192 | cls.Ptr = cret | |
| 193 | 193 | return cls | |
| 194 | 194 | } | |
| @@ -207,8 +207,8 @@ var xNewFromPixbufImage func(uintptr) uintptr | |||
| 207 | 207 | // Note that this function just creates an `GtkImage` from the pixbuf. | |
| 208 | 208 | // The `GtkImage` created will not react to state changes. Should you | |
| 209 | 209 | // want that, you should use [ctor@Gtk.Image.new_from_icon_name]. | |
| 210 | - | func NewFromPixbufImage(PixbufVar *gdkpixbuf.Pixbuf) *Widget { | |
| 211 | - | var cls *Widget | |
| 210 | + | func NewFromPixbufImage(PixbufVar *gdkpixbuf.Pixbuf) *Image { | |
| 211 | + | var cls *Image | |
| 212 | 212 | ||
| 213 | 213 | cret := xNewFromPixbufImage(PixbufVar.GoPointer()) | |
| 214 | 214 | ||
| @@ -216,7 +216,7 @@ func NewFromPixbufImage(PixbufVar *gdkpixbuf.Pixbuf) *Widget { | |||
| 216 | 216 | return nil | |
| 217 | 217 | } | |
| 218 | 218 | gobject.IncreaseRef(cret) | |
| 219 | - | cls = &Widget{} | |
| 219 | + | cls = &Image{} | |
| 220 | 220 | cls.Ptr = cret | |
| 221 | 221 | return cls | |
| 222 | 222 | } | |
| @@ -236,8 +236,8 @@ var xNewFromResourceImage func(string) uintptr | |||
| 236 | 236 | // The storage type (see [method@Gtk.Image.get_storage_type]) of | |
| 237 | 237 | // the returned image is not defined, it will be whatever is | |
| 238 | 238 | // appropriate for displaying the file. | |
| 239 | - | func NewFromResourceImage(ResourcePathVar string) *Widget { | |
| 240 | - | var cls *Widget | |
| 239 | + | func NewFromResourceImage(ResourcePathVar string) *Image { | |
| 240 | + | var cls *Image | |
| 241 | 241 | ||
| 242 | 242 | cret := xNewFromResourceImage(ResourcePathVar) | |
| 243 | 243 | ||
| @@ -245,7 +245,7 @@ func NewFromResourceImage(ResourcePathVar string) *Widget { | |||
| 245 | 245 | return nil | |
| 246 | 246 | } | |
| 247 | 247 | gobject.IncreaseRef(cret) | |
| 248 | - | cls = &Widget{} | |
| 248 | + | cls = &Image{} | |
| 249 | 249 | cls.Ptr = cret | |
| 250 | 250 | return cls | |
| 251 | 251 | } | |
M v4/gtk/gtkimcontextsimple.go +3 -3
| @@ -77,15 +77,15 @@ func IMContextSimpleNewFromInternalPtr(ptr uintptr) *IMContextSimple { | |||
| 77 | 77 | var xNewIMContextSimple func() uintptr | |
| 78 | 78 | ||
| 79 | 79 | // Creates a new `GtkIMContextSimple`. | |
| 80 | - | func NewIMContextSimple() *IMContext { | |
| 81 | - | var cls *IMContext | |
| 80 | + | func NewIMContextSimple() *IMContextSimple { | |
| 81 | + | var cls *IMContextSimple | |
| 82 | 82 | ||
| 83 | 83 | cret := xNewIMContextSimple() | |
| 84 | 84 | ||
| 85 | 85 | if cret == 0 { | |
| 86 | 86 | return nil | |
| 87 | 87 | } | |
| 88 | - | cls = &IMContext{} | |
| 88 | + | cls = &IMContextSimple{} | |
| 89 | 89 | cls.Ptr = cret | |
| 90 | 90 | return cls | |
| 91 | 91 | } | |
M v4/gtk/gtkimmulticontext.go +3 -3
| @@ -42,15 +42,15 @@ func IMMulticontextNewFromInternalPtr(ptr uintptr) *IMMulticontext { | |||
| 42 | 42 | var xNewIMMulticontext func() uintptr | |
| 43 | 43 | ||
| 44 | 44 | // Creates a new `GtkIMMulticontext`. | |
| 45 | - | func NewIMMulticontext() *IMContext { | |
| 46 | - | var cls *IMContext | |
| 45 | + | func NewIMMulticontext() *IMMulticontext { | |
| 46 | + | var cls *IMMulticontext | |
| 47 | 47 | ||
| 48 | 48 | cret := xNewIMMulticontext() | |
| 49 | 49 | ||
| 50 | 50 | if cret == 0 { | |
| 51 | 51 | return nil | |
| 52 | 52 | } | |
| 53 | - | cls = &IMContext{} | |
| 53 | + | cls = &IMMulticontext{} | |
| 54 | 54 | cls.Ptr = cret | |
| 55 | 55 | return cls | |
| 56 | 56 | } | |
M v4/gtk/gtkinfobar.go +6 -6
| @@ -98,8 +98,8 @@ func InfoBarNewFromInternalPtr(ptr uintptr) *InfoBar { | |||
| 98 | 98 | var xNewInfoBar func() uintptr | |
| 99 | 99 | ||
| 100 | 100 | // Creates a new `GtkInfoBar` object. | |
| 101 | - | func NewInfoBar() *Widget { | |
| 102 | - | var cls *Widget | |
| 101 | + | func NewInfoBar() *InfoBar { | |
| 102 | + | var cls *InfoBar | |
| 103 | 103 | ||
| 104 | 104 | cret := xNewInfoBar() | |
| 105 | 105 | ||
| @@ -107,7 +107,7 @@ func NewInfoBar() *Widget { | |||
| 107 | 107 | return nil | |
| 108 | 108 | } | |
| 109 | 109 | gobject.IncreaseRef(cret) | |
| 110 | - | cls = &Widget{} | |
| 110 | + | cls = &InfoBar{} | |
| 111 | 111 | cls.Ptr = cret | |
| 112 | 112 | return cls | |
| 113 | 113 | } | |
| @@ -122,8 +122,8 @@ var xNewWithButtonsInfoBar func(string, ...interface{}) uintptr | |||
| 122 | 122 | // user clicks one of these dialog buttons, GtkInfoBar will emit | |
| 123 | 123 | // the [signal@Gtk.InfoBar::response] signal with the corresponding | |
| 124 | 124 | // response ID. | |
| 125 | - | func NewWithButtonsInfoBar(FirstButtonTextVar string, varArgs ...interface{}) *Widget { | |
| 126 | - | var cls *Widget | |
| 125 | + | func NewWithButtonsInfoBar(FirstButtonTextVar string, varArgs ...interface{}) *InfoBar { | |
| 126 | + | var cls *InfoBar | |
| 127 | 127 | ||
| 128 | 128 | cret := xNewWithButtonsInfoBar(FirstButtonTextVar, varArgs...) | |
| 129 | 129 | ||
| @@ -131,7 +131,7 @@ func NewWithButtonsInfoBar(FirstButtonTextVar string, varArgs ...interface{}) *W | |||
| 131 | 131 | return nil | |
| 132 | 132 | } | |
| 133 | 133 | gobject.IncreaseRef(cret) | |
| 134 | - | cls = &Widget{} | |
| 134 | + | cls = &InfoBar{} | |
| 135 | 135 | cls.Ptr = cret | |
| 136 | 136 | return cls | |
| 137 | 137 | } | |
M v4/gtk/gtkinscription.go +3 -3
| @@ -59,8 +59,8 @@ func InscriptionNewFromInternalPtr(ptr uintptr) *Inscription { | |||
| 59 | 59 | var xNewInscription func(string) uintptr | |
| 60 | 60 | ||
| 61 | 61 | // Creates a new `GtkInscription` with the given text. | |
| 62 | - | func NewInscription(TextVar string) *Widget { | |
| 63 | - | var cls *Widget | |
| 62 | + | func NewInscription(TextVar string) *Inscription { | |
| 63 | + | var cls *Inscription | |
| 64 | 64 | ||
| 65 | 65 | cret := xNewInscription(TextVar) | |
| 66 | 66 | ||
| @@ -68,7 +68,7 @@ func NewInscription(TextVar string) *Widget { | |||
| 68 | 68 | return nil | |
| 69 | 69 | } | |
| 70 | 70 | gobject.IncreaseRef(cret) | |
| 71 | - | cls = &Widget{} | |
| 71 | + | cls = &Inscription{} | |
| 72 | 72 | cls.Ptr = cret | |
| 73 | 73 | return cls | |
| 74 | 74 | } | |
M v4/gtk/gtklabel.go +6 -6
| @@ -205,8 +205,8 @@ var xNewLabel func(string) uintptr | |||
| 205 | 205 | // Creates a new label with the given text inside it. | |
| 206 | 206 | // | |
| 207 | 207 | // You can pass %NULL to get an empty label widget. | |
| 208 | - | func NewLabel(StrVar string) *Widget { | |
| 209 | - | var cls *Widget | |
| 208 | + | func NewLabel(StrVar string) *Label { | |
| 209 | + | var cls *Label | |
| 210 | 210 | ||
| 211 | 211 | cret := xNewLabel(StrVar) | |
| 212 | 212 | ||
| @@ -214,7 +214,7 @@ func NewLabel(StrVar string) *Widget { | |||
| 214 | 214 | return nil | |
| 215 | 215 | } | |
| 216 | 216 | gobject.IncreaseRef(cret) | |
| 217 | - | cls = &Widget{} | |
| 217 | + | cls = &Label{} | |
| 218 | 218 | cls.Ptr = cret | |
| 219 | 219 | return cls | |
| 220 | 220 | } | |
| @@ -235,8 +235,8 @@ var xNewWithMnemonicLabel func(string) uintptr | |||
| 235 | 235 | // widget. For instance, if the label is inside a button or menu item, | |
| 236 | 236 | // the button or menu item will automatically become the mnemonic widget | |
| 237 | 237 | // and be activated by the mnemonic. | |
| 238 | - | func NewWithMnemonicLabel(StrVar string) *Widget { | |
| 239 | - | var cls *Widget | |
| 238 | + | func NewWithMnemonicLabel(StrVar string) *Label { | |
| 239 | + | var cls *Label | |
| 240 | 240 | ||
| 241 | 241 | cret := xNewWithMnemonicLabel(StrVar) | |
| 242 | 242 | ||
| @@ -244,7 +244,7 @@ func NewWithMnemonicLabel(StrVar string) *Widget { | |||
| 244 | 244 | return nil | |
| 245 | 245 | } | |
| 246 | 246 | gobject.IncreaseRef(cret) | |
| 247 | - | cls = &Widget{} | |
| 247 | + | cls = &Label{} | |
| 248 | 248 | cls.Ptr = cret | |
| 249 | 249 | return cls | |
| 250 | 250 | } | |
M v4/gtk/gtklevelbar.go +6 -6
| @@ -130,8 +130,8 @@ func LevelBarNewFromInternalPtr(ptr uintptr) *LevelBar { | |||
| 130 | 130 | var xNewLevelBar func() uintptr | |
| 131 | 131 | ||
| 132 | 132 | // Creates a new `GtkLevelBar`. | |
| 133 | - | func NewLevelBar() *Widget { | |
| 134 | - | var cls *Widget | |
| 133 | + | func NewLevelBar() *LevelBar { | |
| 134 | + | var cls *LevelBar | |
| 135 | 135 | ||
| 136 | 136 | cret := xNewLevelBar() | |
| 137 | 137 | ||
| @@ -139,7 +139,7 @@ func NewLevelBar() *Widget { | |||
| 139 | 139 | return nil | |
| 140 | 140 | } | |
| 141 | 141 | gobject.IncreaseRef(cret) | |
| 142 | - | cls = &Widget{} | |
| 142 | + | cls = &LevelBar{} | |
| 143 | 143 | cls.Ptr = cret | |
| 144 | 144 | return cls | |
| 145 | 145 | } | |
| @@ -147,8 +147,8 @@ func NewLevelBar() *Widget { | |||
| 147 | 147 | var xNewForIntervalLevelBar func(float64, float64) uintptr | |
| 148 | 148 | ||
| 149 | 149 | // Creates a new `GtkLevelBar` for the specified interval. | |
| 150 | - | func NewForIntervalLevelBar(MinValueVar float64, MaxValueVar float64) *Widget { | |
| 151 | - | var cls *Widget | |
| 150 | + | func NewForIntervalLevelBar(MinValueVar float64, MaxValueVar float64) *LevelBar { | |
| 151 | + | var cls *LevelBar | |
| 152 | 152 | ||
| 153 | 153 | cret := xNewForIntervalLevelBar(MinValueVar, MaxValueVar) | |
| 154 | 154 | ||
| @@ -156,7 +156,7 @@ func NewForIntervalLevelBar(MinValueVar float64, MaxValueVar float64) *Widget { | |||
| 156 | 156 | return nil | |
| 157 | 157 | } | |
| 158 | 158 | gobject.IncreaseRef(cret) | |
| 159 | - | cls = &Widget{} | |
| 159 | + | cls = &LevelBar{} | |
| 160 | 160 | cls.Ptr = cret | |
| 161 | 161 | return cls | |
| 162 | 162 | } | |
M v4/gtk/gtklinkbutton.go +6 -6
| @@ -47,8 +47,8 @@ func LinkButtonNewFromInternalPtr(ptr uintptr) *LinkButton { | |||
| 47 | 47 | var xNewLinkButton func(string) uintptr | |
| 48 | 48 | ||
| 49 | 49 | // Creates a new `GtkLinkButton` with the URI as its text. | |
| 50 | - | func NewLinkButton(UriVar string) *Widget { | |
| 51 | - | var cls *Widget | |
| 50 | + | func NewLinkButton(UriVar string) *LinkButton { | |
| 51 | + | var cls *LinkButton | |
| 52 | 52 | ||
| 53 | 53 | cret := xNewLinkButton(UriVar) | |
| 54 | 54 | ||
| @@ -56,7 +56,7 @@ func NewLinkButton(UriVar string) *Widget { | |||
| 56 | 56 | return nil | |
| 57 | 57 | } | |
| 58 | 58 | gobject.IncreaseRef(cret) | |
| 59 | - | cls = &Widget{} | |
| 59 | + | cls = &LinkButton{} | |
| 60 | 60 | cls.Ptr = cret | |
| 61 | 61 | return cls | |
| 62 | 62 | } | |
| @@ -64,8 +64,8 @@ func NewLinkButton(UriVar string) *Widget { | |||
| 64 | 64 | var xNewWithLabelLinkButton func(string, string) uintptr | |
| 65 | 65 | ||
| 66 | 66 | // Creates a new `GtkLinkButton` containing a label. | |
| 67 | - | func NewWithLabelLinkButton(UriVar string, LabelVar string) *Widget { | |
| 68 | - | var cls *Widget | |
| 67 | + | func NewWithLabelLinkButton(UriVar string, LabelVar string) *LinkButton { | |
| 68 | + | var cls *LinkButton | |
| 69 | 69 | ||
| 70 | 70 | cret := xNewWithLabelLinkButton(UriVar, LabelVar) | |
| 71 | 71 | ||
| @@ -73,7 +73,7 @@ func NewWithLabelLinkButton(UriVar string, LabelVar string) *Widget { | |||
| 73 | 73 | return nil | |
| 74 | 74 | } | |
| 75 | 75 | gobject.IncreaseRef(cret) | |
| 76 | - | cls = &Widget{} | |
| 76 | + | cls = &LinkButton{} | |
| 77 | 77 | cls.Ptr = cret | |
| 78 | 78 | return cls | |
| 79 | 79 | } | |
M v4/gtk/gtklistbox.go +6 -6
| @@ -110,8 +110,8 @@ func ListBoxNewFromInternalPtr(ptr uintptr) *ListBox { | |||
| 110 | 110 | var xNewListBox func() uintptr | |
| 111 | 111 | ||
| 112 | 112 | // Creates a new `GtkListBox` container. | |
| 113 | - | func NewListBox() *Widget { | |
| 114 | - | var cls *Widget | |
| 113 | + | func NewListBox() *ListBox { | |
| 114 | + | var cls *ListBox | |
| 115 | 115 | ||
| 116 | 116 | cret := xNewListBox() | |
| 117 | 117 | ||
| @@ -119,7 +119,7 @@ func NewListBox() *Widget { | |||
| 119 | 119 | return nil | |
| 120 | 120 | } | |
| 121 | 121 | gobject.IncreaseRef(cret) | |
| 122 | - | cls = &Widget{} | |
| 122 | + | cls = &ListBox{} | |
| 123 | 123 | cls.Ptr = cret | |
| 124 | 124 | return cls | |
| 125 | 125 | } | |
| @@ -828,8 +828,8 @@ func ListBoxRowNewFromInternalPtr(ptr uintptr) *ListBoxRow { | |||
| 828 | 828 | var xNewListBoxRow func() uintptr | |
| 829 | 829 | ||
| 830 | 830 | // Creates a new `GtkListBoxRow`. | |
| 831 | - | func NewListBoxRow() *Widget { | |
| 832 | - | var cls *Widget | |
| 831 | + | func NewListBoxRow() *ListBoxRow { | |
| 832 | + | var cls *ListBoxRow | |
| 833 | 833 | ||
| 834 | 834 | cret := xNewListBoxRow() | |
| 835 | 835 | ||
| @@ -837,7 +837,7 @@ func NewListBoxRow() *Widget { | |||
| 837 | 837 | return nil | |
| 838 | 838 | } | |
| 839 | 839 | gobject.IncreaseRef(cret) | |
| 840 | - | cls = &Widget{} | |
| 840 | + | cls = &ListBoxRow{} | |
| 841 | 841 | cls.Ptr = cret | |
| 842 | 842 | return cls | |
| 843 | 843 | } | |
M v4/gtk/gtklistview.go +3 -3
| @@ -143,8 +143,8 @@ var xNewListView func(uintptr, uintptr) uintptr | |||
| 143 | 143 | // gtk_builder_list_item_factory_new_from_resource ("/resource.ui")); | |
| 144 | 144 | // | |
| 145 | 145 | // ``` | |
| 146 | - | func NewListView(ModelVar SelectionModel, FactoryVar *ListItemFactory) *Widget { | |
| 147 | - | var cls *Widget | |
| 146 | + | func NewListView(ModelVar SelectionModel, FactoryVar *ListItemFactory) *ListView { | |
| 147 | + | var cls *ListView | |
| 148 | 148 | ||
| 149 | 149 | cret := xNewListView(ModelVar.GoPointer(), FactoryVar.GoPointer()) | |
| 150 | 150 | ||
| @@ -152,7 +152,7 @@ func NewListView(ModelVar SelectionModel, FactoryVar *ListItemFactory) *Widget { | |||
| 152 | 152 | return nil | |
| 153 | 153 | } | |
| 154 | 154 | gobject.IncreaseRef(cret) | |
| 155 | - | cls = &Widget{} | |
| 155 | + | cls = &ListView{} | |
| 156 | 156 | cls.Ptr = cret | |
| 157 | 157 | return cls | |
| 158 | 158 | } | |
M v4/gtk/gtklockbutton.go +3 -3
| @@ -59,8 +59,8 @@ func LockButtonNewFromInternalPtr(ptr uintptr) *LockButton { | |||
| 59 | 59 | var xNewLockButton func(uintptr) uintptr | |
| 60 | 60 | ||
| 61 | 61 | // Creates a new lock button which reflects the @permission. | |
| 62 | - | func NewLockButton(PermissionVar *gio.Permission) *Widget { | |
| 63 | - | var cls *Widget | |
| 62 | + | func NewLockButton(PermissionVar *gio.Permission) *LockButton { | |
| 63 | + | var cls *LockButton | |
| 64 | 64 | ||
| 65 | 65 | cret := xNewLockButton(PermissionVar.GoPointer()) | |
| 66 | 66 | ||
| @@ -68,7 +68,7 @@ func NewLockButton(PermissionVar *gio.Permission) *Widget { | |||
| 68 | 68 | return nil | |
| 69 | 69 | } | |
| 70 | 70 | gobject.IncreaseRef(cret) | |
| 71 | - | cls = &Widget{} | |
| 71 | + | cls = &LockButton{} | |
| 72 | 72 | cls.Ptr = cret | |
| 73 | 73 | return cls | |
| 74 | 74 | } | |
M v4/gtk/gtkmediacontrols.go +3 -3
| @@ -35,8 +35,8 @@ func MediaControlsNewFromInternalPtr(ptr uintptr) *MediaControls { | |||
| 35 | 35 | var xNewMediaControls func(uintptr) uintptr | |
| 36 | 36 | ||
| 37 | 37 | // Creates a new `GtkMediaControls` managing the @stream passed to it. | |
| 38 | - | func NewMediaControls(StreamVar *MediaStream) *Widget { | |
| 39 | - | var cls *Widget | |
| 38 | + | func NewMediaControls(StreamVar *MediaStream) *MediaControls { | |
| 39 | + | var cls *MediaControls | |
| 40 | 40 | ||
| 41 | 41 | cret := xNewMediaControls(StreamVar.GoPointer()) | |
| 42 | 42 | ||
| @@ -44,7 +44,7 @@ func NewMediaControls(StreamVar *MediaStream) *Widget { | |||
| 44 | 44 | return nil | |
| 45 | 45 | } | |
| 46 | 46 | gobject.IncreaseRef(cret) | |
| 47 | - | cls = &Widget{} | |
| 47 | + | cls = &MediaControls{} | |
| 48 | 48 | cls.Ptr = cret | |
| 49 | 49 | return cls | |
| 50 | 50 | } | |
M v4/gtk/gtkmenubutton.go +3 -3
| @@ -98,8 +98,8 @@ var xNewMenuButton func() uintptr | |||
| 98 | 98 | // | |
| 99 | 99 | // You can replace the child widget with another `GtkWidget` | |
| 100 | 100 | // should you wish to. | |
| 101 | - | func NewMenuButton() *Widget { | |
| 102 | - | var cls *Widget | |
| 101 | + | func NewMenuButton() *MenuButton { | |
| 102 | + | var cls *MenuButton | |
| 103 | 103 | ||
| 104 | 104 | cret := xNewMenuButton() | |
| 105 | 105 | ||
| @@ -107,7 +107,7 @@ func NewMenuButton() *Widget { | |||
| 107 | 107 | return nil | |
| 108 | 108 | } | |
| 109 | 109 | gobject.IncreaseRef(cret) | |
| 110 | - | cls = &Widget{} | |
| 110 | + | cls = &MenuButton{} | |
| 111 | 111 | cls.Ptr = cret | |
| 112 | 112 | return cls | |
| 113 | 113 | } | |
M v4/gtk/gtkmessagedialog.go +6 -6
| @@ -125,8 +125,8 @@ var xNewMessageDialog func(uintptr, DialogFlags, MessageType, ButtonsType, strin | |||
| 125 | 125 | // When the user clicks a button a “response” signal is emitted with | |
| 126 | 126 | // response IDs from [enum@Gtk.ResponseType]. See [class@Gtk.Dialog] | |
| 127 | 127 | // for more details. | |
| 128 | - | func NewMessageDialog(ParentVar *Window, FlagsVar DialogFlags, TypeVar MessageType, ButtonsVar ButtonsType, MessageFormatVar string, varArgs ...interface{}) *Widget { | |
| 129 | - | var cls *Widget | |
| 128 | + | func NewMessageDialog(ParentVar *Window, FlagsVar DialogFlags, TypeVar MessageType, ButtonsVar ButtonsType, MessageFormatVar string, varArgs ...interface{}) *MessageDialog { | |
| 129 | + | var cls *MessageDialog | |
| 130 | 130 | ||
| 131 | 131 | cret := xNewMessageDialog(ParentVar.GoPointer(), FlagsVar, TypeVar, ButtonsVar, MessageFormatVar, varArgs...) | |
| 132 | 132 | ||
| @@ -134,7 +134,7 @@ func NewMessageDialog(ParentVar *Window, FlagsVar DialogFlags, TypeVar MessageTy | |||
| 134 | 134 | return nil | |
| 135 | 135 | } | |
| 136 | 136 | gobject.IncreaseRef(cret) | |
| 137 | - | cls = &Widget{} | |
| 137 | + | cls = &MessageDialog{} | |
| 138 | 138 | cls.Ptr = cret | |
| 139 | 139 | return cls | |
| 140 | 140 | } | |
| @@ -173,8 +173,8 @@ var xNewWithMarkupMessageDialog func(uintptr, DialogFlags, MessageType, ButtonsT | |||
| 173 | 173 | // markup); | |
| 174 | 174 | // | |
| 175 | 175 | // ``` | |
| 176 | - | func NewWithMarkupMessageDialog(ParentVar *Window, FlagsVar DialogFlags, TypeVar MessageType, ButtonsVar ButtonsType, MessageFormatVar string, varArgs ...interface{}) *Widget { | |
| 177 | - | var cls *Widget | |
| 176 | + | func NewWithMarkupMessageDialog(ParentVar *Window, FlagsVar DialogFlags, TypeVar MessageType, ButtonsVar ButtonsType, MessageFormatVar string, varArgs ...interface{}) *MessageDialog { | |
| 177 | + | var cls *MessageDialog | |
| 178 | 178 | ||
| 179 | 179 | cret := xNewWithMarkupMessageDialog(ParentVar.GoPointer(), FlagsVar, TypeVar, ButtonsVar, MessageFormatVar, varArgs...) | |
| 180 | 180 | ||
| @@ -182,7 +182,7 @@ func NewWithMarkupMessageDialog(ParentVar *Window, FlagsVar DialogFlags, TypeVar | |||
| 182 | 182 | return nil | |
| 183 | 183 | } | |
| 184 | 184 | gobject.IncreaseRef(cret) | |
| 185 | - | cls = &Widget{} | |
| 185 | + | cls = &MessageDialog{} | |
| 186 | 186 | cls.Ptr = cret | |
| 187 | 187 | return cls | |
| 188 | 188 | } | |
M v4/gtk/gtkmountoperation.go +3 -3
| @@ -52,15 +52,15 @@ func MountOperationNewFromInternalPtr(ptr uintptr) *MountOperation { | |||
| 52 | 52 | var xNewMountOperation func(uintptr) uintptr | |
| 53 | 53 | ||
| 54 | 54 | // Creates a new `GtkMountOperation`. | |
| 55 | - | func NewMountOperation(ParentVar *Window) *gio.MountOperation { | |
| 56 | - | var cls *gio.MountOperation | |
| 55 | + | func NewMountOperation(ParentVar *Window) *MountOperation { | |
| 56 | + | var cls *MountOperation | |
| 57 | 57 | ||
| 58 | 58 | cret := xNewMountOperation(ParentVar.GoPointer()) | |
| 59 | 59 | ||
| 60 | 60 | if cret == 0 { | |
| 61 | 61 | return nil | |
| 62 | 62 | } | |
| 63 | - | cls = &gio.MountOperation{} | |
| 63 | + | cls = &MountOperation{} | |
| 64 | 64 | cls.Ptr = cret | |
| 65 | 65 | return cls | |
| 66 | 66 | } | |
M v4/gtk/gtknotebook.go +3 -3
| @@ -128,8 +128,8 @@ func NotebookNewFromInternalPtr(ptr uintptr) *Notebook { | |||
| 128 | 128 | var xNewNotebook func() uintptr | |
| 129 | 129 | ||
| 130 | 130 | // Creates a new `GtkNotebook` widget with no pages. | |
| 131 | - | func NewNotebook() *Widget { | |
| 132 | - | var cls *Widget | |
| 131 | + | func NewNotebook() *Notebook { | |
| 132 | + | var cls *Notebook | |
| 133 | 133 | ||
| 134 | 134 | cret := xNewNotebook() | |
| 135 | 135 | ||
| @@ -137,7 +137,7 @@ func NewNotebook() *Widget { | |||
| 137 | 137 | return nil | |
| 138 | 138 | } | |
| 139 | 139 | gobject.IncreaseRef(cret) | |
| 140 | - | cls = &Widget{} | |
| 140 | + | cls = &Notebook{} | |
| 141 | 141 | cls.Ptr = cret | |
| 142 | 142 | return cls | |
| 143 | 143 | } | |
M v4/gtk/gtkoverlay.go +3 -3
| @@ -52,8 +52,8 @@ func OverlayNewFromInternalPtr(ptr uintptr) *Overlay { | |||
| 52 | 52 | var xNewOverlay func() uintptr | |
| 53 | 53 | ||
| 54 | 54 | // Creates a new `GtkOverlay`. | |
| 55 | - | func NewOverlay() *Widget { | |
| 56 | - | var cls *Widget | |
| 55 | + | func NewOverlay() *Overlay { | |
| 56 | + | var cls *Overlay | |
| 57 | 57 | ||
| 58 | 58 | cret := xNewOverlay() | |
| 59 | 59 | ||
| @@ -61,7 +61,7 @@ func NewOverlay() *Widget { | |||
| 61 | 61 | return nil | |
| 62 | 62 | } | |
| 63 | 63 | gobject.IncreaseRef(cret) | |
| 64 | - | cls = &Widget{} | |
| 64 | + | cls = &Overlay{} | |
| 65 | 65 | cls.Ptr = cret | |
| 66 | 66 | return cls | |
| 67 | 67 | } | |
M v4/gtk/gtkoverlaylayout.go +3 -3
| @@ -44,15 +44,15 @@ func OverlayLayoutNewFromInternalPtr(ptr uintptr) *OverlayLayout { | |||
| 44 | 44 | var xNewOverlayLayout func() uintptr | |
| 45 | 45 | ||
| 46 | 46 | // Creates a new `GtkOverlayLayout` instance. | |
| 47 | - | func NewOverlayLayout() *LayoutManager { | |
| 48 | - | var cls *LayoutManager | |
| 47 | + | func NewOverlayLayout() *OverlayLayout { | |
| 48 | + | var cls *OverlayLayout | |
| 49 | 49 | ||
| 50 | 50 | cret := xNewOverlayLayout() | |
| 51 | 51 | ||
| 52 | 52 | if cret == 0 { | |
| 53 | 53 | return nil | |
| 54 | 54 | } | |
| 55 | - | cls = &LayoutManager{} | |
| 55 | + | cls = &OverlayLayout{} | |
| 56 | 56 | cls.Ptr = cret | |
| 57 | 57 | return cls | |
| 58 | 58 | } | |
M v4/gtk/gtkpagesetupunixdialog.go +3 -3
| @@ -30,8 +30,8 @@ func PageSetupUnixDialogNewFromInternalPtr(ptr uintptr) *PageSetupUnixDialog { | |||
| 30 | 30 | var xNewPageSetupUnixDialog func(string, uintptr) uintptr | |
| 31 | 31 | ||
| 32 | 32 | // Creates a new page setup dialog. | |
| 33 | - | func NewPageSetupUnixDialog(TitleVar string, ParentVar *Window) *Widget { | |
| 34 | - | var cls *Widget | |
| 33 | + | func NewPageSetupUnixDialog(TitleVar string, ParentVar *Window) *PageSetupUnixDialog { | |
| 34 | + | var cls *PageSetupUnixDialog | |
| 35 | 35 | ||
| 36 | 36 | cret := xNewPageSetupUnixDialog(TitleVar, ParentVar.GoPointer()) | |
| 37 | 37 | ||
| @@ -39,7 +39,7 @@ func NewPageSetupUnixDialog(TitleVar string, ParentVar *Window) *Widget { | |||
| 39 | 39 | return nil | |
| 40 | 40 | } | |
| 41 | 41 | gobject.IncreaseRef(cret) | |
| 42 | - | cls = &Widget{} | |
| 42 | + | cls = &PageSetupUnixDialog{} | |
| 43 | 43 | cls.Ptr = cret | |
| 44 | 44 | return cls | |
| 45 | 45 | } | |
M v4/gtk/gtkpaned.go +3 -3
| @@ -87,8 +87,8 @@ func PanedNewFromInternalPtr(ptr uintptr) *Paned { | |||
| 87 | 87 | var xNewPaned func(Orientation) uintptr | |
| 88 | 88 | ||
| 89 | 89 | // Creates a new `GtkPaned` widget. | |
| 90 | - | func NewPaned(OrientationVar Orientation) *Widget { | |
| 91 | - | var cls *Widget | |
| 90 | + | func NewPaned(OrientationVar Orientation) *Paned { | |
| 91 | + | var cls *Paned | |
| 92 | 92 | ||
| 93 | 93 | cret := xNewPaned(OrientationVar) | |
| 94 | 94 | ||
| @@ -96,7 +96,7 @@ func NewPaned(OrientationVar Orientation) *Widget { | |||
| 96 | 96 | return nil | |
| 97 | 97 | } | |
| 98 | 98 | gobject.IncreaseRef(cret) | |
| 99 | - | cls = &Widget{} | |
| 99 | + | cls = &Paned{} | |
| 100 | 100 | cls.Ptr = cret | |
| 101 | 101 | return cls | |
| 102 | 102 | } | |
M v4/gtk/gtkpasswordentry.go +3 -3
| @@ -64,8 +64,8 @@ func PasswordEntryNewFromInternalPtr(ptr uintptr) *PasswordEntry { | |||
| 64 | 64 | var xNewPasswordEntry func() uintptr | |
| 65 | 65 | ||
| 66 | 66 | // Creates a `GtkPasswordEntry`. | |
| 67 | - | func NewPasswordEntry() *Widget { | |
| 68 | - | var cls *Widget | |
| 67 | + | func NewPasswordEntry() *PasswordEntry { | |
| 68 | + | var cls *PasswordEntry | |
| 69 | 69 | ||
| 70 | 70 | cret := xNewPasswordEntry() | |
| 71 | 71 | ||
| @@ -73,7 +73,7 @@ func NewPasswordEntry() *Widget { | |||
| 73 | 73 | return nil | |
| 74 | 74 | } | |
| 75 | 75 | gobject.IncreaseRef(cret) | |
| 76 | - | cls = &Widget{} | |
| 76 | + | cls = &PasswordEntry{} | |
| 77 | 77 | cls.Ptr = cret | |
| 78 | 78 | return cls | |
| 79 | 79 | } | |
M v4/gtk/gtkpasswordentrybuffer.go +3 -3
| @@ -33,15 +33,15 @@ func PasswordEntryBufferNewFromInternalPtr(ptr uintptr) *PasswordEntryBuffer { | |||
| 33 | 33 | var xNewPasswordEntryBuffer func() uintptr | |
| 34 | 34 | ||
| 35 | 35 | // Creates a new `GtkEntryBuffer` using secure memory allocations. | |
| 36 | - | func NewPasswordEntryBuffer() *EntryBuffer { | |
| 37 | - | var cls *EntryBuffer | |
| 36 | + | func NewPasswordEntryBuffer() *PasswordEntryBuffer { | |
| 37 | + | var cls *PasswordEntryBuffer | |
| 38 | 38 | ||
| 39 | 39 | cret := xNewPasswordEntryBuffer() | |
| 40 | 40 | ||
| 41 | 41 | if cret == 0 { | |
| 42 | 42 | return nil | |
| 43 | 43 | } | |
| 44 | - | cls = &EntryBuffer{} | |
| 44 | + | cls = &PasswordEntryBuffer{} | |
| 45 | 45 | cls.Ptr = cret | |
| 46 | 46 | return cls | |
| 47 | 47 | } | |
M v4/gtk/gtkpicture.go +18 -18
| @@ -79,8 +79,8 @@ func PictureNewFromInternalPtr(ptr uintptr) *Picture { | |||
| 79 | 79 | var xNewPicture func() uintptr | |
| 80 | 80 | ||
| 81 | 81 | // Creates a new empty `GtkPicture` widget. | |
| 82 | - | func NewPicture() *Widget { | |
| 83 | - | var cls *Widget | |
| 82 | + | func NewPicture() *Picture { | |
| 83 | + | var cls *Picture | |
| 84 | 84 | ||
| 85 | 85 | cret := xNewPicture() | |
| 86 | 86 | ||
| @@ -88,7 +88,7 @@ func NewPicture() *Widget { | |||
| 88 | 88 | return nil | |
| 89 | 89 | } | |
| 90 | 90 | gobject.IncreaseRef(cret) | |
| 91 | - | cls = &Widget{} | |
| 91 | + | cls = &Picture{} | |
| 92 | 92 | cls.Ptr = cret | |
| 93 | 93 | return cls | |
| 94 | 94 | } | |
| @@ -103,8 +103,8 @@ var xNewForFilePicture func(uintptr) uintptr | |||
| 103 | 103 | // If you need to detect failures to load the file, use | |
| 104 | 104 | // [ctor@Gdk.Texture.new_from_file] to load the file yourself, | |
| 105 | 105 | // then create the `GtkPicture` from the texture. | |
| 106 | - | func NewForFilePicture(FileVar gio.File) *Widget { | |
| 107 | - | var cls *Widget | |
| 106 | + | func NewForFilePicture(FileVar gio.File) *Picture { | |
| 107 | + | var cls *Picture | |
| 108 | 108 | ||
| 109 | 109 | cret := xNewForFilePicture(FileVar.GoPointer()) | |
| 110 | 110 | ||
| @@ -112,7 +112,7 @@ func NewForFilePicture(FileVar gio.File) *Widget { | |||
| 112 | 112 | return nil | |
| 113 | 113 | } | |
| 114 | 114 | gobject.IncreaseRef(cret) | |
| 115 | - | cls = &Widget{} | |
| 115 | + | cls = &Picture{} | |
| 116 | 116 | cls.Ptr = cret | |
| 117 | 117 | return cls | |
| 118 | 118 | } | |
| @@ -123,8 +123,8 @@ var xNewForFilenamePicture func(string) uintptr | |||
| 123 | 123 | // | |
| 124 | 124 | // This is a utility function that calls [ctor@Gtk.Picture.new_for_file]. | |
| 125 | 125 | // See that function for details. | |
| 126 | - | func NewForFilenamePicture(FilenameVar string) *Widget { | |
| 127 | - | var cls *Widget | |
| 126 | + | func NewForFilenamePicture(FilenameVar string) *Picture { | |
| 127 | + | var cls *Picture | |
| 128 | 128 | ||
| 129 | 129 | cret := xNewForFilenamePicture(FilenameVar) | |
| 130 | 130 | ||
| @@ -132,7 +132,7 @@ func NewForFilenamePicture(FilenameVar string) *Widget { | |||
| 132 | 132 | return nil | |
| 133 | 133 | } | |
| 134 | 134 | gobject.IncreaseRef(cret) | |
| 135 | - | cls = &Widget{} | |
| 135 | + | cls = &Picture{} | |
| 136 | 136 | cls.Ptr = cret | |
| 137 | 137 | return cls | |
| 138 | 138 | } | |
| @@ -143,8 +143,8 @@ var xNewForPaintablePicture func(uintptr) uintptr | |||
| 143 | 143 | // | |
| 144 | 144 | // The `GtkPicture` will track changes to the @paintable and update | |
| 145 | 145 | // its size and contents in response to it. | |
| 146 | - | func NewForPaintablePicture(PaintableVar gdk.Paintable) *Widget { | |
| 147 | - | var cls *Widget | |
| 146 | + | func NewForPaintablePicture(PaintableVar gdk.Paintable) *Picture { | |
| 147 | + | var cls *Picture | |
| 148 | 148 | ||
| 149 | 149 | cret := xNewForPaintablePicture(PaintableVar.GoPointer()) | |
| 150 | 150 | ||
| @@ -152,7 +152,7 @@ func NewForPaintablePicture(PaintableVar gdk.Paintable) *Widget { | |||
| 152 | 152 | return nil | |
| 153 | 153 | } | |
| 154 | 154 | gobject.IncreaseRef(cret) | |
| 155 | - | cls = &Widget{} | |
| 155 | + | cls = &Picture{} | |
| 156 | 156 | cls.Ptr = cret | |
| 157 | 157 | return cls | |
| 158 | 158 | } | |
| @@ -165,8 +165,8 @@ var xNewForPixbufPicture func(uintptr) uintptr | |||
| 165 | 165 | // See that function for details. | |
| 166 | 166 | // | |
| 167 | 167 | // The pixbuf must not be modified after passing it to this function. | |
| 168 | - | func NewForPixbufPicture(PixbufVar *gdkpixbuf.Pixbuf) *Widget { | |
| 169 | - | var cls *Widget | |
| 168 | + | func NewForPixbufPicture(PixbufVar *gdkpixbuf.Pixbuf) *Picture { | |
| 169 | + | var cls *Picture | |
| 170 | 170 | ||
| 171 | 171 | cret := xNewForPixbufPicture(PixbufVar.GoPointer()) | |
| 172 | 172 | ||
| @@ -174,7 +174,7 @@ func NewForPixbufPicture(PixbufVar *gdkpixbuf.Pixbuf) *Widget { | |||
| 174 | 174 | return nil | |
| 175 | 175 | } | |
| 176 | 176 | gobject.IncreaseRef(cret) | |
| 177 | - | cls = &Widget{} | |
| 177 | + | cls = &Picture{} | |
| 178 | 178 | cls.Ptr = cret | |
| 179 | 179 | return cls | |
| 180 | 180 | } | |
| @@ -185,8 +185,8 @@ var xNewForResourcePicture func(string) uintptr | |||
| 185 | 185 | // | |
| 186 | 186 | // This is a utility function that calls [ctor@Gtk.Picture.new_for_file]. | |
| 187 | 187 | // See that function for details. | |
| 188 | - | func NewForResourcePicture(ResourcePathVar string) *Widget { | |
| 189 | - | var cls *Widget | |
| 188 | + | func NewForResourcePicture(ResourcePathVar string) *Picture { | |
| 189 | + | var cls *Picture | |
| 190 | 190 | ||
| 191 | 191 | cret := xNewForResourcePicture(ResourcePathVar) | |
| 192 | 192 | ||
| @@ -194,7 +194,7 @@ func NewForResourcePicture(ResourcePathVar string) *Widget { | |||
| 194 | 194 | return nil | |
| 195 | 195 | } | |
| 196 | 196 | gobject.IncreaseRef(cret) | |
| 197 | - | cls = &Widget{} | |
| 197 | + | cls = &Picture{} | |
| 198 | 198 | cls.Ptr = cret | |
| 199 | 199 | return cls | |
| 200 | 200 | } | |
M v4/gtk/gtkpopover.go +3 -3
| @@ -114,8 +114,8 @@ func PopoverNewFromInternalPtr(ptr uintptr) *Popover { | |||
| 114 | 114 | var xNewPopover func() uintptr | |
| 115 | 115 | ||
| 116 | 116 | // Creates a new `GtkPopover`. | |
| 117 | - | func NewPopover() *Widget { | |
| 118 | - | var cls *Widget | |
| 117 | + | func NewPopover() *Popover { | |
| 118 | + | var cls *Popover | |
| 119 | 119 | ||
| 120 | 120 | cret := xNewPopover() | |
| 121 | 121 | ||
| @@ -123,7 +123,7 @@ func NewPopover() *Widget { | |||
| 123 | 123 | return nil | |
| 124 | 124 | } | |
| 125 | 125 | gobject.IncreaseRef(cret) | |
| 126 | - | cls = &Widget{} | |
| 126 | + | cls = &Popover{} | |
| 127 | 127 | cls.Ptr = cret | |
| 128 | 128 | return cls | |
| 129 | 129 | } | |
M v4/gtk/gtkpopovermenu.go +6 -6
| @@ -151,8 +151,8 @@ var xNewFromModelPopoverMenu func(uintptr) uintptr | |||
| 151 | 151 | // This function creates menus with sliding submenus. | |
| 152 | 152 | // See [ctor@Gtk.PopoverMenu.new_from_model_full] for a way | |
| 153 | 153 | // to control this. | |
| 154 | - | func NewFromModelPopoverMenu(ModelVar *gio.MenuModel) *Widget { | |
| 155 | - | var cls *Widget | |
| 154 | + | func NewFromModelPopoverMenu(ModelVar *gio.MenuModel) *PopoverMenu { | |
| 155 | + | var cls *PopoverMenu | |
| 156 | 156 | ||
| 157 | 157 | cret := xNewFromModelPopoverMenu(ModelVar.GoPointer()) | |
| 158 | 158 | ||
| @@ -160,7 +160,7 @@ func NewFromModelPopoverMenu(ModelVar *gio.MenuModel) *Widget { | |||
| 160 | 160 | return nil | |
| 161 | 161 | } | |
| 162 | 162 | gobject.IncreaseRef(cret) | |
| 163 | - | cls = &Widget{} | |
| 163 | + | cls = &PopoverMenu{} | |
| 164 | 164 | cls.Ptr = cret | |
| 165 | 165 | return cls | |
| 166 | 166 | } | |
| @@ -178,8 +178,8 @@ var xNewFromModelFullPopoverMenu func(uintptr, PopoverMenuFlags) uintptr | |||
| 178 | 178 | // The only flag that is supported currently is | |
| 179 | 179 | // %GTK_POPOVER_MENU_NESTED, which makes GTK create traditional, | |
| 180 | 180 | // nested submenus instead of the default sliding submenus. | |
| 181 | - | func NewFromModelFullPopoverMenu(ModelVar *gio.MenuModel, FlagsVar PopoverMenuFlags) *Widget { | |
| 182 | - | var cls *Widget | |
| 181 | + | func NewFromModelFullPopoverMenu(ModelVar *gio.MenuModel, FlagsVar PopoverMenuFlags) *PopoverMenu { | |
| 182 | + | var cls *PopoverMenu | |
| 183 | 183 | ||
| 184 | 184 | cret := xNewFromModelFullPopoverMenu(ModelVar.GoPointer(), FlagsVar) | |
| 185 | 185 | ||
| @@ -187,7 +187,7 @@ func NewFromModelFullPopoverMenu(ModelVar *gio.MenuModel, FlagsVar PopoverMenuFl | |||
| 187 | 187 | return nil | |
| 188 | 188 | } | |
| 189 | 189 | gobject.IncreaseRef(cret) | |
| 190 | - | cls = &Widget{} | |
| 190 | + | cls = &PopoverMenu{} | |
| 191 | 191 | cls.Ptr = cret | |
| 192 | 192 | return cls | |
| 193 | 193 | } | |
M v4/gtk/gtkpopovermenubar.go +3 -3
| @@ -52,8 +52,8 @@ func PopoverMenuBarNewFromInternalPtr(ptr uintptr) *PopoverMenuBar { | |||
| 52 | 52 | var xNewFromModelPopoverMenuBar func(uintptr) uintptr | |
| 53 | 53 | ||
| 54 | 54 | // Creates a `GtkPopoverMenuBar` from a `GMenuModel`. | |
| 55 | - | func NewFromModelPopoverMenuBar(ModelVar *gio.MenuModel) *Widget { | |
| 56 | - | var cls *Widget | |
| 55 | + | func NewFromModelPopoverMenuBar(ModelVar *gio.MenuModel) *PopoverMenuBar { | |
| 56 | + | var cls *PopoverMenuBar | |
| 57 | 57 | ||
| 58 | 58 | cret := xNewFromModelPopoverMenuBar(ModelVar.GoPointer()) | |
| 59 | 59 | ||
| @@ -61,7 +61,7 @@ func NewFromModelPopoverMenuBar(ModelVar *gio.MenuModel) *Widget { | |||
| 61 | 61 | return nil | |
| 62 | 62 | } | |
| 63 | 63 | gobject.IncreaseRef(cret) | |
| 64 | - | cls = &Widget{} | |
| 64 | + | cls = &PopoverMenuBar{} | |
| 65 | 65 | cls.Ptr = cret | |
| 66 | 66 | return cls | |
| 67 | 67 | } | |
M v4/gtk/gtkprintunixdialog.go +3 -3
| @@ -80,8 +80,8 @@ func PrintUnixDialogNewFromInternalPtr(ptr uintptr) *PrintUnixDialog { | |||
| 80 | 80 | var xNewPrintUnixDialog func(string, uintptr) uintptr | |
| 81 | 81 | ||
| 82 | 82 | // Creates a new `GtkPrintUnixDialog`. | |
| 83 | - | func NewPrintUnixDialog(TitleVar string, ParentVar *Window) *Widget { | |
| 84 | - | var cls *Widget | |
| 83 | + | func NewPrintUnixDialog(TitleVar string, ParentVar *Window) *PrintUnixDialog { | |
| 84 | + | var cls *PrintUnixDialog | |
| 85 | 85 | ||
| 86 | 86 | cret := xNewPrintUnixDialog(TitleVar, ParentVar.GoPointer()) | |
| 87 | 87 | ||
| @@ -89,7 +89,7 @@ func NewPrintUnixDialog(TitleVar string, ParentVar *Window) *Widget { | |||
| 89 | 89 | return nil | |
| 90 | 90 | } | |
| 91 | 91 | gobject.IncreaseRef(cret) | |
| 92 | - | cls = &Widget{} | |
| 92 | + | cls = &PrintUnixDialog{} | |
| 93 | 93 | cls.Ptr = cret | |
| 94 | 94 | return cls | |
| 95 | 95 | } | |
M v4/gtk/gtkprogressbar.go +3 -3
| @@ -69,8 +69,8 @@ func ProgressBarNewFromInternalPtr(ptr uintptr) *ProgressBar { | |||
| 69 | 69 | var xNewProgressBar func() uintptr | |
| 70 | 70 | ||
| 71 | 71 | // Creates a new `GtkProgressBar`. | |
| 72 | - | func NewProgressBar() *Widget { | |
| 73 | - | var cls *Widget | |
| 72 | + | func NewProgressBar() *ProgressBar { | |
| 73 | + | var cls *ProgressBar | |
| 74 | 74 | ||
| 75 | 75 | cret := xNewProgressBar() | |
| 76 | 76 | ||
| @@ -78,7 +78,7 @@ func NewProgressBar() *Widget { | |||
| 78 | 78 | return nil | |
| 79 | 79 | } | |
| 80 | 80 | gobject.IncreaseRef(cret) | |
| 81 | - | cls = &Widget{} | |
| 81 | + | cls = &ProgressBar{} | |
| 82 | 82 | cls.Ptr = cret | |
| 83 | 83 | return cls | |
| 84 | 84 | } | |
M v4/gtk/gtkrevealer.go +3 -3
| @@ -69,8 +69,8 @@ func RevealerNewFromInternalPtr(ptr uintptr) *Revealer { | |||
| 69 | 69 | var xNewRevealer func() uintptr | |
| 70 | 70 | ||
| 71 | 71 | // Creates a new `GtkRevealer`. | |
| 72 | - | func NewRevealer() *Widget { | |
| 73 | - | var cls *Widget | |
| 72 | + | func NewRevealer() *Revealer { | |
| 73 | + | var cls *Revealer | |
| 74 | 74 | ||
| 75 | 75 | cret := xNewRevealer() | |
| 76 | 76 | ||
| @@ -78,7 +78,7 @@ func NewRevealer() *Widget { | |||
| 78 | 78 | return nil | |
| 79 | 79 | } | |
| 80 | 80 | gobject.IncreaseRef(cret) | |
| 81 | - | cls = &Widget{} | |
| 81 | + | cls = &Revealer{} | |
| 82 | 82 | cls.Ptr = cret | |
| 83 | 83 | return cls | |
| 84 | 84 | } | |
M v4/gtk/gtkscale.go +6 -6
| @@ -118,8 +118,8 @@ func ScaleNewFromInternalPtr(ptr uintptr) *Scale { | |||
| 118 | 118 | var xNewScale func(Orientation, uintptr) uintptr | |
| 119 | 119 | ||
| 120 | 120 | // Creates a new `GtkScale`. | |
| 121 | - | func NewScale(OrientationVar Orientation, AdjustmentVar *Adjustment) *Widget { | |
| 122 | - | var cls *Widget | |
| 121 | + | func NewScale(OrientationVar Orientation, AdjustmentVar *Adjustment) *Scale { | |
| 122 | + | var cls *Scale | |
| 123 | 123 | ||
| 124 | 124 | cret := xNewScale(OrientationVar, AdjustmentVar.GoPointer()) | |
| 125 | 125 | ||
| @@ -127,7 +127,7 @@ func NewScale(OrientationVar Orientation, AdjustmentVar *Adjustment) *Widget { | |||
| 127 | 127 | return nil | |
| 128 | 128 | } | |
| 129 | 129 | gobject.IncreaseRef(cret) | |
| 130 | - | cls = &Widget{} | |
| 130 | + | cls = &Scale{} | |
| 131 | 131 | cls.Ptr = cret | |
| 132 | 132 | return cls | |
| 133 | 133 | } | |
| @@ -145,8 +145,8 @@ var xNewWithRangeScale func(Orientation, float64, float64, float64) uintptr | |||
| 145 | 145 | // Note that the way in which the precision is derived works best if | |
| 146 | 146 | // @step is a power of ten. If the resulting precision is not suitable | |
| 147 | 147 | // for your needs, use [method@Gtk.Scale.set_digits] to correct it. | |
| 148 | - | func NewWithRangeScale(OrientationVar Orientation, MinVar float64, MaxVar float64, StepVar float64) *Widget { | |
| 149 | - | var cls *Widget | |
| 148 | + | func NewWithRangeScale(OrientationVar Orientation, MinVar float64, MaxVar float64, StepVar float64) *Scale { | |
| 149 | + | var cls *Scale | |
| 150 | 150 | ||
| 151 | 151 | cret := xNewWithRangeScale(OrientationVar, MinVar, MaxVar, StepVar) | |
| 152 | 152 | ||
| @@ -154,7 +154,7 @@ func NewWithRangeScale(OrientationVar Orientation, MinVar float64, MaxVar float6 | |||
| 154 | 154 | return nil | |
| 155 | 155 | } | |
| 156 | 156 | gobject.IncreaseRef(cret) | |
| 157 | - | cls = &Widget{} | |
| 157 | + | cls = &Scale{} | |
| 158 | 158 | cls.Ptr = cret | |
| 159 | 159 | return cls | |
| 160 | 160 | } | |
M v4/gtk/gtkscalebutton.go +3 -3
| @@ -45,8 +45,8 @@ var xNewScaleButton func(float64, float64, float64, []string) uintptr | |||
| 45 | 45 | // | |
| 46 | 46 | // The new scale button has a range between @min and @max, | |
| 47 | 47 | // with a stepping of @step. | |
| 48 | - | func NewScaleButton(MinVar float64, MaxVar float64, StepVar float64, IconsVar []string) *Widget { | |
| 49 | - | var cls *Widget | |
| 48 | + | func NewScaleButton(MinVar float64, MaxVar float64, StepVar float64, IconsVar []string) *ScaleButton { | |
| 49 | + | var cls *ScaleButton | |
| 50 | 50 | ||
| 51 | 51 | cret := xNewScaleButton(MinVar, MaxVar, StepVar, IconsVar) | |
| 52 | 52 | ||
| @@ -54,7 +54,7 @@ func NewScaleButton(MinVar float64, MaxVar float64, StepVar float64, IconsVar [] | |||
| 54 | 54 | return nil | |
| 55 | 55 | } | |
| 56 | 56 | gobject.IncreaseRef(cret) | |
| 57 | - | cls = &Widget{} | |
| 57 | + | cls = &ScaleButton{} | |
| 58 | 58 | cls.Ptr = cret | |
| 59 | 59 | return cls | |
| 60 | 60 | } | |
M v4/gtk/gtkscrollbar.go +3 -3
| @@ -64,8 +64,8 @@ func ScrollbarNewFromInternalPtr(ptr uintptr) *Scrollbar { | |||
| 64 | 64 | var xNewScrollbar func(Orientation, uintptr) uintptr | |
| 65 | 65 | ||
| 66 | 66 | // Creates a new scrollbar with the given orientation. | |
| 67 | - | func NewScrollbar(OrientationVar Orientation, AdjustmentVar *Adjustment) *Widget { | |
| 68 | - | var cls *Widget | |
| 67 | + | func NewScrollbar(OrientationVar Orientation, AdjustmentVar *Adjustment) *Scrollbar { | |
| 68 | + | var cls *Scrollbar | |
| 69 | 69 | ||
| 70 | 70 | cret := xNewScrollbar(OrientationVar, AdjustmentVar.GoPointer()) | |
| 71 | 71 | ||
| @@ -73,7 +73,7 @@ func NewScrollbar(OrientationVar Orientation, AdjustmentVar *Adjustment) *Widget | |||
| 73 | 73 | return nil | |
| 74 | 74 | } | |
| 75 | 75 | gobject.IncreaseRef(cret) | |
| 76 | - | cls = &Widget{} | |
| 76 | + | cls = &Scrollbar{} | |
| 77 | 77 | cls.Ptr = cret | |
| 78 | 78 | return cls | |
| 79 | 79 | } | |
M v4/gtk/gtkscrolledwindow.go +3 -3
| @@ -148,8 +148,8 @@ func ScrolledWindowNewFromInternalPtr(ptr uintptr) *ScrolledWindow { | |||
| 148 | 148 | var xNewScrolledWindow func() uintptr | |
| 149 | 149 | ||
| 150 | 150 | // Creates a new scrolled window. | |
| 151 | - | func NewScrolledWindow() *Widget { | |
| 152 | - | var cls *Widget | |
| 151 | + | func NewScrolledWindow() *ScrolledWindow { | |
| 152 | + | var cls *ScrolledWindow | |
| 153 | 153 | ||
| 154 | 154 | cret := xNewScrolledWindow() | |
| 155 | 155 | ||
| @@ -157,7 +157,7 @@ func NewScrolledWindow() *Widget { | |||
| 157 | 157 | return nil | |
| 158 | 158 | } | |
| 159 | 159 | gobject.IncreaseRef(cret) | |
| 160 | - | cls = &Widget{} | |
| 160 | + | cls = &ScrolledWindow{} | |
| 161 | 161 | cls.Ptr = cret | |
| 162 | 162 | return cls | |
| 163 | 163 | } | |
M v4/gtk/gtksearchbar.go +3 -3
| @@ -69,8 +69,8 @@ var xNewSearchBar func() uintptr | |||
| 69 | 69 | // | |
| 70 | 70 | // You will need to tell it about which widget is going to be your text | |
| 71 | 71 | // entry using [method@Gtk.SearchBar.connect_entry]. | |
| 72 | - | func NewSearchBar() *Widget { | |
| 73 | - | var cls *Widget | |
| 72 | + | func NewSearchBar() *SearchBar { | |
| 73 | + | var cls *SearchBar | |
| 74 | 74 | ||
| 75 | 75 | cret := xNewSearchBar() | |
| 76 | 76 | ||
| @@ -78,7 +78,7 @@ func NewSearchBar() *Widget { | |||
| 78 | 78 | return nil | |
| 79 | 79 | } | |
| 80 | 80 | gobject.IncreaseRef(cret) | |
| 81 | - | cls = &Widget{} | |
| 81 | + | cls = &SearchBar{} | |
| 82 | 82 | cls.Ptr = cret | |
| 83 | 83 | return cls | |
| 84 | 84 | } | |
M v4/gtk/gtksearchentry.go +3 -3
| @@ -64,8 +64,8 @@ func SearchEntryNewFromInternalPtr(ptr uintptr) *SearchEntry { | |||
| 64 | 64 | var xNewSearchEntry func() uintptr | |
| 65 | 65 | ||
| 66 | 66 | // Creates a `GtkSearchEntry`. | |
| 67 | - | func NewSearchEntry() *Widget { | |
| 68 | - | var cls *Widget | |
| 67 | + | func NewSearchEntry() *SearchEntry { | |
| 68 | + | var cls *SearchEntry | |
| 69 | 69 | ||
| 70 | 70 | cret := xNewSearchEntry() | |
| 71 | 71 | ||
| @@ -73,7 +73,7 @@ func NewSearchEntry() *Widget { | |||
| 73 | 73 | return nil | |
| 74 | 74 | } | |
| 75 | 75 | gobject.IncreaseRef(cret) | |
| 76 | - | cls = &Widget{} | |
| 76 | + | cls = &SearchEntry{} | |
| 77 | 77 | cls.Ptr = cret | |
| 78 | 78 | return cls | |
| 79 | 79 | } | |
M v4/gtk/gtkseparator.go +3 -3
| @@ -36,8 +36,8 @@ func SeparatorNewFromInternalPtr(ptr uintptr) *Separator { | |||
| 36 | 36 | var xNewSeparator func(Orientation) uintptr | |
| 37 | 37 | ||
| 38 | 38 | // Creates a new `GtkSeparator` with the given orientation. | |
| 39 | - | func NewSeparator(OrientationVar Orientation) *Widget { | |
| 40 | - | var cls *Widget | |
| 39 | + | func NewSeparator(OrientationVar Orientation) *Separator { | |
| 40 | + | var cls *Separator | |
| 41 | 41 | ||
| 42 | 42 | cret := xNewSeparator(OrientationVar) | |
| 43 | 43 | ||
| @@ -45,7 +45,7 @@ func NewSeparator(OrientationVar Orientation) *Widget { | |||
| 45 | 45 | return nil | |
| 46 | 46 | } | |
| 47 | 47 | gobject.IncreaseRef(cret) | |
| 48 | - | cls = &Widget{} | |
| 48 | + | cls = &Separator{} | |
| 49 | 49 | cls.Ptr = cret | |
| 50 | 50 | return cls | |
| 51 | 51 | } | |
M v4/gtk/gtkshortcutcontroller.go +6 -6
| @@ -73,15 +73,15 @@ func ShortcutControllerNewFromInternalPtr(ptr uintptr) *ShortcutController { | |||
| 73 | 73 | var xNewShortcutController func() uintptr | |
| 74 | 74 | ||
| 75 | 75 | // Creates a new shortcut controller. | |
| 76 | - | func NewShortcutController() *EventController { | |
| 77 | - | var cls *EventController | |
| 76 | + | func NewShortcutController() *ShortcutController { | |
| 77 | + | var cls *ShortcutController | |
| 78 | 78 | ||
| 79 | 79 | cret := xNewShortcutController() | |
| 80 | 80 | ||
| 81 | 81 | if cret == 0 { | |
| 82 | 82 | return nil | |
| 83 | 83 | } | |
| 84 | - | cls = &EventController{} | |
| 84 | + | cls = &ShortcutController{} | |
| 85 | 85 | cls.Ptr = cret | |
| 86 | 86 | return cls | |
| 87 | 87 | } | |
| @@ -94,15 +94,15 @@ var xNewForModelShortcutController func(uintptr) uintptr | |||
| 94 | 94 | // A controller created by this function does not let you add or | |
| 95 | 95 | // remove individual shortcuts using the shortcut controller api, | |
| 96 | 96 | // but you can change the contents of the model. | |
| 97 | - | func NewForModelShortcutController(ModelVar gio.ListModel) *EventController { | |
| 98 | - | var cls *EventController | |
| 97 | + | func NewForModelShortcutController(ModelVar gio.ListModel) *ShortcutController { | |
| 98 | + | var cls *ShortcutController | |
| 99 | 99 | ||
| 100 | 100 | cret := xNewForModelShortcutController(ModelVar.GoPointer()) | |
| 101 | 101 | ||
| 102 | 102 | if cret == 0 { | |
| 103 | 103 | return nil | |
| 104 | 104 | } | |
| 105 | - | cls = &EventController{} | |
| 105 | + | cls = &ShortcutController{} | |
| 106 | 106 | cls.Ptr = cret | |
| 107 | 107 | return cls | |
| 108 | 108 | } | |
M v4/gtk/gtkshortcutlabel.go +3 -3
| @@ -32,8 +32,8 @@ func ShortcutLabelNewFromInternalPtr(ptr uintptr) *ShortcutLabel { | |||
| 32 | 32 | var xNewShortcutLabel func(string) uintptr | |
| 33 | 33 | ||
| 34 | 34 | // Creates a new `GtkShortcutLabel` with @accelerator set. | |
| 35 | - | func NewShortcutLabel(AcceleratorVar string) *Widget { | |
| 36 | - | var cls *Widget | |
| 35 | + | func NewShortcutLabel(AcceleratorVar string) *ShortcutLabel { | |
| 36 | + | var cls *ShortcutLabel | |
| 37 | 37 | ||
| 38 | 38 | cret := xNewShortcutLabel(AcceleratorVar) | |
| 39 | 39 | ||
| @@ -41,7 +41,7 @@ func NewShortcutLabel(AcceleratorVar string) *Widget { | |||
| 41 | 41 | return nil | |
| 42 | 42 | } | |
| 43 | 43 | gobject.IncreaseRef(cret) | |
| 44 | - | cls = &Widget{} | |
| 44 | + | cls = &ShortcutLabel{} | |
| 45 | 45 | cls.Ptr = cret | |
| 46 | 46 | return cls | |
| 47 | 47 | } | |
M v4/gtk/gtkshortcuttrigger.go +6 -6
| @@ -68,15 +68,15 @@ var xNewAlternativeTrigger func(uintptr, uintptr) uintptr | |||
| 68 | 68 | // | |
| 69 | 69 | // Note that nesting is allowed, so if you want more than two | |
| 70 | 70 | // alternative, create a new alternative trigger for each option. | |
| 71 | - | func NewAlternativeTrigger(FirstVar *ShortcutTrigger, SecondVar *ShortcutTrigger) *ShortcutTrigger { | |
| 72 | - | var cls *ShortcutTrigger | |
| 71 | + | func NewAlternativeTrigger(FirstVar *ShortcutTrigger, SecondVar *ShortcutTrigger) *AlternativeTrigger { | |
| 72 | + | var cls *AlternativeTrigger | |
| 73 | 73 | ||
| 74 | 74 | cret := xNewAlternativeTrigger(FirstVar.GoPointer(), SecondVar.GoPointer()) | |
| 75 | 75 | ||
| 76 | 76 | if cret == 0 { | |
| 77 | 77 | return nil | |
| 78 | 78 | } | |
| 79 | - | cls = &ShortcutTrigger{} | |
| 79 | + | cls = &AlternativeTrigger{} | |
| 80 | 80 | cls.Ptr = cret | |
| 81 | 81 | return cls | |
| 82 | 82 | } | |
| @@ -146,15 +146,15 @@ var xNewKeyvalTrigger func(uint, gdk.ModifierType) uintptr | |||
| 146 | 146 | ||
| 147 | 147 | // Creates a `GtkShortcutTrigger` that will trigger whenever | |
| 148 | 148 | // the key with the given @keyval and @modifiers is pressed. | |
| 149 | - | func NewKeyvalTrigger(KeyvalVar uint, ModifiersVar gdk.ModifierType) *ShortcutTrigger { | |
| 150 | - | var cls *ShortcutTrigger | |
| 149 | + | func NewKeyvalTrigger(KeyvalVar uint, ModifiersVar gdk.ModifierType) *KeyvalTrigger { | |
| 150 | + | var cls *KeyvalTrigger | |
| 151 | 151 | ||
| 152 | 152 | cret := xNewKeyvalTrigger(KeyvalVar, ModifiersVar) | |
| 153 | 153 | ||
| 154 | 154 | if cret == 0 { | |
| 155 | 155 | return nil | |
| 156 | 156 | } | |
| 157 | - | cls = &ShortcutTrigger{} | |
| 157 | + | cls = &KeyvalTrigger{} | |
| 158 | 158 | cls.Ptr = cret | |
| 159 | 159 | return cls | |
| 160 | 160 | } | |
M v4/gtk/gtksignallistitemfactory.go +3 -3
| @@ -71,15 +71,15 @@ var xNewSignalListItemFactory func() uintptr | |||
| 71 | 71 | // Creates a new `GtkSignalListItemFactory`. | |
| 72 | 72 | // | |
| 73 | 73 | // You need to connect signal handlers before you use it. | |
| 74 | - | func NewSignalListItemFactory() *ListItemFactory { | |
| 75 | - | var cls *ListItemFactory | |
| 74 | + | func NewSignalListItemFactory() *SignalListItemFactory { | |
| 75 | + | var cls *SignalListItemFactory | |
| 76 | 76 | ||
| 77 | 77 | cret := xNewSignalListItemFactory() | |
| 78 | 78 | ||
| 79 | 79 | if cret == 0 { | |
| 80 | 80 | return nil | |
| 81 | 81 | } | |
| 82 | - | cls = &ListItemFactory{} | |
| 82 | + | cls = &SignalListItemFactory{} | |
| 83 | 83 | cls.Ptr = cret | |
| 84 | 84 | return cls | |
| 85 | 85 | } | |
M v4/gtk/gtkspinbutton.go +6 -6
| @@ -187,8 +187,8 @@ func SpinButtonNewFromInternalPtr(ptr uintptr) *SpinButton { | |||
| 187 | 187 | var xNewSpinButton func(uintptr, float64, uint) uintptr | |
| 188 | 188 | ||
| 189 | 189 | // Creates a new `GtkSpinButton`. | |
| 190 | - | func NewSpinButton(AdjustmentVar *Adjustment, ClimbRateVar float64, DigitsVar uint) *Widget { | |
| 191 | - | var cls *Widget | |
| 190 | + | func NewSpinButton(AdjustmentVar *Adjustment, ClimbRateVar float64, DigitsVar uint) *SpinButton { | |
| 191 | + | var cls *SpinButton | |
| 192 | 192 | ||
| 193 | 193 | cret := xNewSpinButton(AdjustmentVar.GoPointer(), ClimbRateVar, DigitsVar) | |
| 194 | 194 | ||
| @@ -196,7 +196,7 @@ func NewSpinButton(AdjustmentVar *Adjustment, ClimbRateVar float64, DigitsVar ui | |||
| 196 | 196 | return nil | |
| 197 | 197 | } | |
| 198 | 198 | gobject.IncreaseRef(cret) | |
| 199 | - | cls = &Widget{} | |
| 199 | + | cls = &SpinButton{} | |
| 200 | 200 | cls.Ptr = cret | |
| 201 | 201 | return cls | |
| 202 | 202 | } | |
| @@ -216,8 +216,8 @@ var xNewWithRangeSpinButton func(float64, float64, float64) uintptr | |||
| 216 | 216 | // best if @step is a power of ten. If the resulting precision | |
| 217 | 217 | // is not suitable for your needs, use | |
| 218 | 218 | // [method@Gtk.SpinButton.set_digits] to correct it. | |
| 219 | - | func NewWithRangeSpinButton(MinVar float64, MaxVar float64, StepVar float64) *Widget { | |
| 220 | - | var cls *Widget | |
| 219 | + | func NewWithRangeSpinButton(MinVar float64, MaxVar float64, StepVar float64) *SpinButton { | |
| 220 | + | var cls *SpinButton | |
| 221 | 221 | ||
| 222 | 222 | cret := xNewWithRangeSpinButton(MinVar, MaxVar, StepVar) | |
| 223 | 223 | ||
| @@ -225,7 +225,7 @@ func NewWithRangeSpinButton(MinVar float64, MaxVar float64, StepVar float64) *Wi | |||
| 225 | 225 | return nil | |
| 226 | 226 | } | |
| 227 | 227 | gobject.IncreaseRef(cret) | |
| 228 | - | cls = &Widget{} | |
| 228 | + | cls = &SpinButton{} | |
| 229 | 229 | cls.Ptr = cret | |
| 230 | 230 | return cls | |
| 231 | 231 | } | |
M v4/gtk/gtkspinner.go +3 -3
| @@ -35,8 +35,8 @@ func SpinnerNewFromInternalPtr(ptr uintptr) *Spinner { | |||
| 35 | 35 | var xNewSpinner func() uintptr | |
| 36 | 36 | ||
| 37 | 37 | // Returns a new spinner widget. Not yet started. | |
| 38 | - | func NewSpinner() *Widget { | |
| 39 | - | var cls *Widget | |
| 38 | + | func NewSpinner() *Spinner { | |
| 39 | + | var cls *Spinner | |
| 40 | 40 | ||
| 41 | 41 | cret := xNewSpinner() | |
| 42 | 42 | ||
| @@ -44,7 +44,7 @@ func NewSpinner() *Widget { | |||
| 44 | 44 | return nil | |
| 45 | 45 | } | |
| 46 | 46 | gobject.IncreaseRef(cret) | |
| 47 | - | cls = &Widget{} | |
| 47 | + | cls = &Spinner{} | |
| 48 | 48 | cls.Ptr = cret | |
| 49 | 49 | return cls | |
| 50 | 50 | } | |
M v4/gtk/gtkstack.go +3 -3
| @@ -124,8 +124,8 @@ func StackNewFromInternalPtr(ptr uintptr) *Stack { | |||
| 124 | 124 | var xNewStack func() uintptr | |
| 125 | 125 | ||
| 126 | 126 | // Creates a new `GtkStack`. | |
| 127 | - | func NewStack() *Widget { | |
| 128 | - | var cls *Widget | |
| 127 | + | func NewStack() *Stack { | |
| 128 | + | var cls *Stack | |
| 129 | 129 | ||
| 130 | 130 | cret := xNewStack() | |
| 131 | 131 | ||
| @@ -133,7 +133,7 @@ func NewStack() *Widget { | |||
| 133 | 133 | return nil | |
| 134 | 134 | } | |
| 135 | 135 | gobject.IncreaseRef(cret) | |
| 136 | - | cls = &Widget{} | |
| 136 | + | cls = &Stack{} | |
| 137 | 137 | cls.Ptr = cret | |
| 138 | 138 | return cls | |
| 139 | 139 | } | |
M v4/gtk/gtkstacksidebar.go +3 -3
| @@ -35,8 +35,8 @@ func StackSidebarNewFromInternalPtr(ptr uintptr) *StackSidebar { | |||
| 35 | 35 | var xNewStackSidebar func() uintptr | |
| 36 | 36 | ||
| 37 | 37 | // Creates a new `GtkStackSidebar`. | |
| 38 | - | func NewStackSidebar() *Widget { | |
| 39 | - | var cls *Widget | |
| 38 | + | func NewStackSidebar() *StackSidebar { | |
| 39 | + | var cls *StackSidebar | |
| 40 | 40 | ||
| 41 | 41 | cret := xNewStackSidebar() | |
| 42 | 42 | ||
| @@ -44,7 +44,7 @@ func NewStackSidebar() *Widget { | |||
| 44 | 44 | return nil | |
| 45 | 45 | } | |
| 46 | 46 | gobject.IncreaseRef(cret) | |
| 47 | - | cls = &Widget{} | |
| 47 | + | cls = &StackSidebar{} | |
| 48 | 48 | cls.Ptr = cret | |
| 49 | 49 | return cls | |
| 50 | 50 | } | |
M v4/gtk/gtkstackswitcher.go +3 -3
| @@ -53,8 +53,8 @@ func StackSwitcherNewFromInternalPtr(ptr uintptr) *StackSwitcher { | |||
| 53 | 53 | var xNewStackSwitcher func() uintptr | |
| 54 | 54 | ||
| 55 | 55 | // Create a new `GtkStackSwitcher`. | |
| 56 | - | func NewStackSwitcher() *Widget { | |
| 57 | - | var cls *Widget | |
| 56 | + | func NewStackSwitcher() *StackSwitcher { | |
| 57 | + | var cls *StackSwitcher | |
| 58 | 58 | ||
| 59 | 59 | cret := xNewStackSwitcher() | |
| 60 | 60 | ||
| @@ -62,7 +62,7 @@ func NewStackSwitcher() *Widget { | |||
| 62 | 62 | return nil | |
| 63 | 63 | } | |
| 64 | 64 | gobject.IncreaseRef(cret) | |
| 65 | - | cls = &Widget{} | |
| 65 | + | cls = &StackSwitcher{} | |
| 66 | 66 | cls.Ptr = cret | |
| 67 | 67 | return cls | |
| 68 | 68 | } | |
M v4/gtk/gtkstatusbar.go +3 -3
| @@ -56,8 +56,8 @@ func StatusbarNewFromInternalPtr(ptr uintptr) *Statusbar { | |||
| 56 | 56 | var xNewStatusbar func() uintptr | |
| 57 | 57 | ||
| 58 | 58 | // Creates a new `GtkStatusbar` ready for messages. | |
| 59 | - | func NewStatusbar() *Widget { | |
| 60 | - | var cls *Widget | |
| 59 | + | func NewStatusbar() *Statusbar { | |
| 60 | + | var cls *Statusbar | |
| 61 | 61 | ||
| 62 | 62 | cret := xNewStatusbar() | |
| 63 | 63 | ||
| @@ -65,7 +65,7 @@ func NewStatusbar() *Widget { | |||
| 65 | 65 | return nil | |
| 66 | 66 | } | |
| 67 | 67 | gobject.IncreaseRef(cret) | |
| 68 | - | cls = &Widget{} | |
| 68 | + | cls = &Statusbar{} | |
| 69 | 69 | cls.Ptr = cret | |
| 70 | 70 | return cls | |
| 71 | 71 | } | |
M v4/gtk/gtkswitch.go +3 -3
| @@ -47,8 +47,8 @@ func SwitchNewFromInternalPtr(ptr uintptr) *Switch { | |||
| 47 | 47 | var xNewSwitch func() uintptr | |
| 48 | 48 | ||
| 49 | 49 | // Creates a new `GtkSwitch` widget. | |
| 50 | - | func NewSwitch() *Widget { | |
| 51 | - | var cls *Widget | |
| 50 | + | func NewSwitch() *Switch { | |
| 51 | + | var cls *Switch | |
| 52 | 52 | ||
| 53 | 53 | cret := xNewSwitch() | |
| 54 | 54 | ||
| @@ -56,7 +56,7 @@ func NewSwitch() *Widget { | |||
| 56 | 56 | return nil | |
| 57 | 57 | } | |
| 58 | 58 | gobject.IncreaseRef(cret) | |
| 59 | - | cls = &Widget{} | |
| 59 | + | cls = &Switch{} | |
| 60 | 60 | cls.Ptr = cret | |
| 61 | 61 | return cls | |
| 62 | 62 | } | |
M v4/gtk/gtktext.go +6 -6
| @@ -85,8 +85,8 @@ func TextNewFromInternalPtr(ptr uintptr) *Text { | |||
| 85 | 85 | var xNewText func() uintptr | |
| 86 | 86 | ||
| 87 | 87 | // Creates a new `GtkText`. | |
| 88 | - | func NewText() *Widget { | |
| 89 | - | var cls *Widget | |
| 88 | + | func NewText() *Text { | |
| 89 | + | var cls *Text | |
| 90 | 90 | ||
| 91 | 91 | cret := xNewText() | |
| 92 | 92 | ||
| @@ -94,7 +94,7 @@ func NewText() *Widget { | |||
| 94 | 94 | return nil | |
| 95 | 95 | } | |
| 96 | 96 | gobject.IncreaseRef(cret) | |
| 97 | - | cls = &Widget{} | |
| 97 | + | cls = &Text{} | |
| 98 | 98 | cls.Ptr = cret | |
| 99 | 99 | return cls | |
| 100 | 100 | } | |
| @@ -102,8 +102,8 @@ func NewText() *Widget { | |||
| 102 | 102 | var xNewWithBufferText func(uintptr) uintptr | |
| 103 | 103 | ||
| 104 | 104 | // Creates a new `GtkText` with the specified text buffer. | |
| 105 | - | func NewWithBufferText(BufferVar *EntryBuffer) *Widget { | |
| 106 | - | var cls *Widget | |
| 105 | + | func NewWithBufferText(BufferVar *EntryBuffer) *Text { | |
| 106 | + | var cls *Text | |
| 107 | 107 | ||
| 108 | 108 | cret := xNewWithBufferText(BufferVar.GoPointer()) | |
| 109 | 109 | ||
| @@ -111,7 +111,7 @@ func NewWithBufferText(BufferVar *EntryBuffer) *Widget { | |||
| 111 | 111 | return nil | |
| 112 | 112 | } | |
| 113 | 113 | gobject.IncreaseRef(cret) | |
| 114 | - | cls = &Widget{} | |
| 114 | + | cls = &Text{} | |
| 115 | 115 | cls.Ptr = cret | |
| 116 | 116 | return cls | |
| 117 | 117 | } | |
M v4/gtk/gtktextview.go +6 -6
| @@ -132,8 +132,8 @@ var xNewTextView func() uintptr | |||
| 132 | 132 | // text view, an empty default buffer will be created for you. Get the | |
| 133 | 133 | // buffer with [method@Gtk.TextView.get_buffer]. If you want to specify | |
| 134 | 134 | // your own buffer, consider [ctor@Gtk.TextView.new_with_buffer]. | |
| 135 | - | func NewTextView() *Widget { | |
| 136 | - | var cls *Widget | |
| 135 | + | func NewTextView() *TextView { | |
| 136 | + | var cls *TextView | |
| 137 | 137 | ||
| 138 | 138 | cret := xNewTextView() | |
| 139 | 139 | ||
| @@ -141,7 +141,7 @@ func NewTextView() *Widget { | |||
| 141 | 141 | return nil | |
| 142 | 142 | } | |
| 143 | 143 | gobject.IncreaseRef(cret) | |
| 144 | - | cls = &Widget{} | |
| 144 | + | cls = &TextView{} | |
| 145 | 145 | cls.Ptr = cret | |
| 146 | 146 | return cls | |
| 147 | 147 | } | |
| @@ -154,8 +154,8 @@ var xNewWithBufferTextView func(uintptr) uintptr | |||
| 154 | 154 | // to create a default buffer, in which case this function is equivalent | |
| 155 | 155 | // to [ctor@Gtk.TextView.new]. The text view adds its own reference count | |
| 156 | 156 | // to the buffer; it does not take over an existing reference. | |
| 157 | - | func NewWithBufferTextView(BufferVar *TextBuffer) *Widget { | |
| 158 | - | var cls *Widget | |
| 157 | + | func NewWithBufferTextView(BufferVar *TextBuffer) *TextView { | |
| 158 | + | var cls *TextView | |
| 159 | 159 | ||
| 160 | 160 | cret := xNewWithBufferTextView(BufferVar.GoPointer()) | |
| 161 | 161 | ||
| @@ -163,7 +163,7 @@ func NewWithBufferTextView(BufferVar *TextBuffer) *Widget { | |||
| 163 | 163 | return nil | |
| 164 | 164 | } | |
| 165 | 165 | gobject.IncreaseRef(cret) | |
| 166 | - | cls = &Widget{} | |
| 166 | + | cls = &TextView{} | |
| 167 | 167 | cls.Ptr = cret | |
| 168 | 168 | return cls | |
| 169 | 169 | } | |
M v4/gtk/gtktogglebutton.go +9 -9
| @@ -110,8 +110,8 @@ var xNewToggleButton func() uintptr | |||
| 110 | 110 | // Creates a new toggle button. | |
| 111 | 111 | // | |
| 112 | 112 | // A widget should be packed into the button, as in [ctor@Gtk.Button.new]. | |
| 113 | - | func NewToggleButton() *Widget { | |
| 114 | - | var cls *Widget | |
| 113 | + | func NewToggleButton() *ToggleButton { | |
| 114 | + | var cls *ToggleButton | |
| 115 | 115 | ||
| 116 | 116 | cret := xNewToggleButton() | |
| 117 | 117 | ||
| @@ -119,7 +119,7 @@ func NewToggleButton() *Widget { | |||
| 119 | 119 | return nil | |
| 120 | 120 | } | |
| 121 | 121 | gobject.IncreaseRef(cret) | |
| 122 | - | cls = &Widget{} | |
| 122 | + | cls = &ToggleButton{} | |
| 123 | 123 | cls.Ptr = cret | |
| 124 | 124 | return cls | |
| 125 | 125 | } | |
| @@ -127,8 +127,8 @@ func NewToggleButton() *Widget { | |||
| 127 | 127 | var xNewWithLabelToggleButton func(string) uintptr | |
| 128 | 128 | ||
| 129 | 129 | // Creates a new toggle button with a text label. | |
| 130 | - | func NewWithLabelToggleButton(LabelVar string) *Widget { | |
| 131 | - | var cls *Widget | |
| 130 | + | func NewWithLabelToggleButton(LabelVar string) *ToggleButton { | |
| 131 | + | var cls *ToggleButton | |
| 132 | 132 | ||
| 133 | 133 | cret := xNewWithLabelToggleButton(LabelVar) | |
| 134 | 134 | ||
| @@ -136,7 +136,7 @@ func NewWithLabelToggleButton(LabelVar string) *Widget { | |||
| 136 | 136 | return nil | |
| 137 | 137 | } | |
| 138 | 138 | gobject.IncreaseRef(cret) | |
| 139 | - | cls = &Widget{} | |
| 139 | + | cls = &ToggleButton{} | |
| 140 | 140 | cls.Ptr = cret | |
| 141 | 141 | return cls | |
| 142 | 142 | } | |
| @@ -147,8 +147,8 @@ var xNewWithMnemonicToggleButton func(string) uintptr | |||
| 147 | 147 | // | |
| 148 | 148 | // The label will be created using [ctor@Gtk.Label.new_with_mnemonic], | |
| 149 | 149 | // so underscores in @label indicate the mnemonic for the button. | |
| 150 | - | func NewWithMnemonicToggleButton(LabelVar string) *Widget { | |
| 151 | - | var cls *Widget | |
| 150 | + | func NewWithMnemonicToggleButton(LabelVar string) *ToggleButton { | |
| 151 | + | var cls *ToggleButton | |
| 152 | 152 | ||
| 153 | 153 | cret := xNewWithMnemonicToggleButton(LabelVar) | |
| 154 | 154 | ||
| @@ -156,7 +156,7 @@ func NewWithMnemonicToggleButton(LabelVar string) *Widget { | |||
| 156 | 156 | return nil | |
| 157 | 157 | } | |
| 158 | 158 | gobject.IncreaseRef(cret) | |
| 159 | - | cls = &Widget{} | |
| 159 | + | cls = &ToggleButton{} | |
| 160 | 160 | cls.Ptr = cret | |
| 161 | 161 | return cls | |
| 162 | 162 | } | |
M v4/gtk/gtktreeexpander.go +3 -3
| @@ -69,8 +69,8 @@ func TreeExpanderNewFromInternalPtr(ptr uintptr) *TreeExpander { | |||
| 69 | 69 | var xNewTreeExpander func() uintptr | |
| 70 | 70 | ||
| 71 | 71 | // Creates a new `GtkTreeExpander` | |
| 72 | - | func NewTreeExpander() *Widget { | |
| 73 | - | var cls *Widget | |
| 72 | + | func NewTreeExpander() *TreeExpander { | |
| 73 | + | var cls *TreeExpander | |
| 74 | 74 | ||
| 75 | 75 | cret := xNewTreeExpander() | |
| 76 | 76 | ||
| @@ -78,7 +78,7 @@ func NewTreeExpander() *Widget { | |||
| 78 | 78 | return nil | |
| 79 | 79 | } | |
| 80 | 80 | gobject.IncreaseRef(cret) | |
| 81 | - | cls = &Widget{} | |
| 81 | + | cls = &TreeExpander{} | |
| 82 | 82 | cls.Ptr = cret | |
| 83 | 83 | return cls | |
| 84 | 84 | } | |
M v4/gtk/gtktreeview.go +6 -6
| @@ -162,8 +162,8 @@ func TreeViewNewFromInternalPtr(ptr uintptr) *TreeView { | |||
| 162 | 162 | var xNewTreeView func() uintptr | |
| 163 | 163 | ||
| 164 | 164 | // Creates a new `GtkTreeView` widget. | |
| 165 | - | func NewTreeView() *Widget { | |
| 166 | - | var cls *Widget | |
| 165 | + | func NewTreeView() *TreeView { | |
| 166 | + | var cls *TreeView | |
| 167 | 167 | ||
| 168 | 168 | cret := xNewTreeView() | |
| 169 | 169 | ||
| @@ -171,7 +171,7 @@ func NewTreeView() *Widget { | |||
| 171 | 171 | return nil | |
| 172 | 172 | } | |
| 173 | 173 | gobject.IncreaseRef(cret) | |
| 174 | - | cls = &Widget{} | |
| 174 | + | cls = &TreeView{} | |
| 175 | 175 | cls.Ptr = cret | |
| 176 | 176 | return cls | |
| 177 | 177 | } | |
| @@ -179,8 +179,8 @@ func NewTreeView() *Widget { | |||
| 179 | 179 | var xNewWithModelTreeView func(uintptr) uintptr | |
| 180 | 180 | ||
| 181 | 181 | // Creates a new `GtkTreeView` widget with the model initialized to @model. | |
| 182 | - | func NewWithModelTreeView(ModelVar TreeModel) *Widget { | |
| 183 | - | var cls *Widget | |
| 182 | + | func NewWithModelTreeView(ModelVar TreeModel) *TreeView { | |
| 183 | + | var cls *TreeView | |
| 184 | 184 | ||
| 185 | 185 | cret := xNewWithModelTreeView(ModelVar.GoPointer()) | |
| 186 | 186 | ||
| @@ -188,7 +188,7 @@ func NewWithModelTreeView(ModelVar TreeModel) *Widget { | |||
| 188 | 188 | return nil | |
| 189 | 189 | } | |
| 190 | 190 | gobject.IncreaseRef(cret) | |
| 191 | - | cls = &Widget{} | |
| 191 | + | cls = &TreeView{} | |
| 192 | 192 | cls.Ptr = cret | |
| 193 | 193 | return cls | |
| 194 | 194 | } | |
M v4/gtk/gtkvideo.go +15 -15
| @@ -45,8 +45,8 @@ func VideoNewFromInternalPtr(ptr uintptr) *Video { | |||
| 45 | 45 | var xNewVideo func() uintptr | |
| 46 | 46 | ||
| 47 | 47 | // Creates a new empty `GtkVideo`. | |
| 48 | - | func NewVideo() *Widget { | |
| 49 | - | var cls *Widget | |
| 48 | + | func NewVideo() *Video { | |
| 49 | + | var cls *Video | |
| 50 | 50 | ||
| 51 | 51 | cret := xNewVideo() | |
| 52 | 52 | ||
| @@ -54,7 +54,7 @@ func NewVideo() *Widget { | |||
| 54 | 54 | return nil | |
| 55 | 55 | } | |
| 56 | 56 | gobject.IncreaseRef(cret) | |
| 57 | - | cls = &Widget{} | |
| 57 | + | cls = &Video{} | |
| 58 | 58 | cls.Ptr = cret | |
| 59 | 59 | return cls | |
| 60 | 60 | } | |
| @@ -62,8 +62,8 @@ func NewVideo() *Widget { | |||
| 62 | 62 | var xNewForFileVideo func(uintptr) uintptr | |
| 63 | 63 | ||
| 64 | 64 | // Creates a `GtkVideo` to play back the given @file. | |
| 65 | - | func NewForFileVideo(FileVar gio.File) *Widget { | |
| 66 | - | var cls *Widget | |
| 65 | + | func NewForFileVideo(FileVar gio.File) *Video { | |
| 66 | + | var cls *Video | |
| 67 | 67 | ||
| 68 | 68 | cret := xNewForFileVideo(FileVar.GoPointer()) | |
| 69 | 69 | ||
| @@ -71,7 +71,7 @@ func NewForFileVideo(FileVar gio.File) *Widget { | |||
| 71 | 71 | return nil | |
| 72 | 72 | } | |
| 73 | 73 | gobject.IncreaseRef(cret) | |
| 74 | - | cls = &Widget{} | |
| 74 | + | cls = &Video{} | |
| 75 | 75 | cls.Ptr = cret | |
| 76 | 76 | return cls | |
| 77 | 77 | } | |
| @@ -82,8 +82,8 @@ var xNewForFilenameVideo func(string) uintptr | |||
| 82 | 82 | // | |
| 83 | 83 | // This is a utility function that calls [ctor@Gtk.Video.new_for_file], | |
| 84 | 84 | // See that function for details. | |
| 85 | - | func NewForFilenameVideo(FilenameVar string) *Widget { | |
| 86 | - | var cls *Widget | |
| 85 | + | func NewForFilenameVideo(FilenameVar string) *Video { | |
| 86 | + | var cls *Video | |
| 87 | 87 | ||
| 88 | 88 | cret := xNewForFilenameVideo(FilenameVar) | |
| 89 | 89 | ||
| @@ -91,7 +91,7 @@ func NewForFilenameVideo(FilenameVar string) *Widget { | |||
| 91 | 91 | return nil | |
| 92 | 92 | } | |
| 93 | 93 | gobject.IncreaseRef(cret) | |
| 94 | - | cls = &Widget{} | |
| 94 | + | cls = &Video{} | |
| 95 | 95 | cls.Ptr = cret | |
| 96 | 96 | return cls | |
| 97 | 97 | } | |
| @@ -99,8 +99,8 @@ func NewForFilenameVideo(FilenameVar string) *Widget { | |||
| 99 | 99 | var xNewForMediaStreamVideo func(uintptr) uintptr | |
| 100 | 100 | ||
| 101 | 101 | // Creates a `GtkVideo` to play back the given @stream. | |
| 102 | - | func NewForMediaStreamVideo(StreamVar *MediaStream) *Widget { | |
| 103 | - | var cls *Widget | |
| 102 | + | func NewForMediaStreamVideo(StreamVar *MediaStream) *Video { | |
| 103 | + | var cls *Video | |
| 104 | 104 | ||
| 105 | 105 | cret := xNewForMediaStreamVideo(StreamVar.GoPointer()) | |
| 106 | 106 | ||
| @@ -108,7 +108,7 @@ func NewForMediaStreamVideo(StreamVar *MediaStream) *Widget { | |||
| 108 | 108 | return nil | |
| 109 | 109 | } | |
| 110 | 110 | gobject.IncreaseRef(cret) | |
| 111 | - | cls = &Widget{} | |
| 111 | + | cls = &Video{} | |
| 112 | 112 | cls.Ptr = cret | |
| 113 | 113 | return cls | |
| 114 | 114 | } | |
| @@ -119,8 +119,8 @@ var xNewForResourceVideo func(string) uintptr | |||
| 119 | 119 | // given @resource_path. | |
| 120 | 120 | // | |
| 121 | 121 | // This is a utility function that calls [ctor@Gtk.Video.new_for_file]. | |
| 122 | - | func NewForResourceVideo(ResourcePathVar string) *Widget { | |
| 123 | - | var cls *Widget | |
| 122 | + | func NewForResourceVideo(ResourcePathVar string) *Video { | |
| 123 | + | var cls *Video | |
| 124 | 124 | ||
| 125 | 125 | cret := xNewForResourceVideo(ResourcePathVar) | |
| 126 | 126 | ||
| @@ -128,7 +128,7 @@ func NewForResourceVideo(ResourcePathVar string) *Widget { | |||
| 128 | 128 | return nil | |
| 129 | 129 | } | |
| 130 | 130 | gobject.IncreaseRef(cret) | |
| 131 | - | cls = &Widget{} | |
| 131 | + | cls = &Video{} | |
| 132 | 132 | cls.Ptr = cret | |
| 133 | 133 | return cls | |
| 134 | 134 | } | |
M v4/gtk/gtkviewport.go +3 -3
| @@ -39,8 +39,8 @@ var xNewViewport func(uintptr, uintptr) uintptr | |||
| 39 | 39 | // | |
| 40 | 40 | // The new viewport uses the given adjustments, or default | |
| 41 | 41 | // adjustments if none are given. | |
| 42 | - | func NewViewport(HadjustmentVar *Adjustment, VadjustmentVar *Adjustment) *Widget { | |
| 43 | - | var cls *Widget | |
| 42 | + | func NewViewport(HadjustmentVar *Adjustment, VadjustmentVar *Adjustment) *Viewport { | |
| 43 | + | var cls *Viewport | |
| 44 | 44 | ||
| 45 | 45 | cret := xNewViewport(HadjustmentVar.GoPointer(), VadjustmentVar.GoPointer()) | |
| 46 | 46 | ||
| @@ -48,7 +48,7 @@ func NewViewport(HadjustmentVar *Adjustment, VadjustmentVar *Adjustment) *Widget | |||
| 48 | 48 | return nil | |
| 49 | 49 | } | |
| 50 | 50 | gobject.IncreaseRef(cret) | |
| 51 | - | cls = &Widget{} | |
| 51 | + | cls = &Viewport{} | |
| 52 | 52 | cls.Ptr = cret | |
| 53 | 53 | return cls | |
| 54 | 54 | } | |
M v4/gtk/gtkvolumebutton.go +3 -3
| @@ -28,8 +28,8 @@ var xNewVolumeButton func() uintptr | |||
| 28 | 28 | // The button has a range between 0.0 and 1.0, with a stepping of 0.02. | |
| 29 | 29 | // Volume values can be obtained and modified using the functions from | |
| 30 | 30 | // [class@Gtk.ScaleButton]. | |
| 31 | - | func NewVolumeButton() *Widget { | |
| 32 | - | var cls *Widget | |
| 31 | + | func NewVolumeButton() *VolumeButton { | |
| 32 | + | var cls *VolumeButton | |
| 33 | 33 | ||
| 34 | 34 | cret := xNewVolumeButton() | |
| 35 | 35 | ||
| @@ -37,7 +37,7 @@ func NewVolumeButton() *Widget { | |||
| 37 | 37 | return nil | |
| 38 | 38 | } | |
| 39 | 39 | gobject.IncreaseRef(cret) | |
| 40 | - | cls = &Widget{} | |
| 40 | + | cls = &VolumeButton{} | |
| 41 | 41 | cls.Ptr = cret | |
| 42 | 42 | return cls | |
| 43 | 43 | } | |
M v4/gtk/gtkwindow.go +3 -3
| @@ -109,8 +109,8 @@ var xNewWindow func() uintptr | |||
| 109 | 109 | // return a reference to the caller. | |
| 110 | 110 | // | |
| 111 | 111 | // To delete a `GtkWindow`, call [method@Gtk.Window.destroy]. | |
| 112 | - | func NewWindow() *Widget { | |
| 113 | - | var cls *Widget | |
| 112 | + | func NewWindow() *Window { | |
| 113 | + | var cls *Window | |
| 114 | 114 | ||
| 115 | 115 | cret := xNewWindow() | |
| 116 | 116 | ||
| @@ -118,7 +118,7 @@ func NewWindow() *Widget { | |||
| 118 | 118 | return nil | |
| 119 | 119 | } | |
| 120 | 120 | gobject.IncreaseRef(cret) | |
| 121 | - | cls = &Widget{} | |
| 121 | + | cls = &Window{} | |
| 122 | 122 | cls.Ptr = cret | |
| 123 | 123 | return cls | |
| 124 | 124 | } | |
M v4/gtk/gtkwindowcontrols.go +3 -3
| @@ -82,8 +82,8 @@ func WindowControlsNewFromInternalPtr(ptr uintptr) *WindowControls { | |||
| 82 | 82 | var xNewWindowControls func(PackType) uintptr | |
| 83 | 83 | ||
| 84 | 84 | // Creates a new `GtkWindowControls`. | |
| 85 | - | func NewWindowControls(SideVar PackType) *Widget { | |
| 86 | - | var cls *Widget | |
| 85 | + | func NewWindowControls(SideVar PackType) *WindowControls { | |
| 86 | + | var cls *WindowControls | |
| 87 | 87 | ||
| 88 | 88 | cret := xNewWindowControls(SideVar) | |
| 89 | 89 | ||
| @@ -91,7 +91,7 @@ func NewWindowControls(SideVar PackType) *Widget { | |||
| 91 | 91 | return nil | |
| 92 | 92 | } | |
| 93 | 93 | gobject.IncreaseRef(cret) | |
| 94 | - | cls = &Widget{} | |
| 94 | + | cls = &WindowControls{} | |
| 95 | 95 | cls.Ptr = cret | |
| 96 | 96 | return cls | |
| 97 | 97 | } | |
M v4/gtk/gtkwindowhandle.go +3 -3
| @@ -42,8 +42,8 @@ func WindowHandleNewFromInternalPtr(ptr uintptr) *WindowHandle { | |||
| 42 | 42 | var xNewWindowHandle func() uintptr | |
| 43 | 43 | ||
| 44 | 44 | // Creates a new `GtkWindowHandle`. | |
| 45 | - | func NewWindowHandle() *Widget { | |
| 46 | - | var cls *Widget | |
| 45 | + | func NewWindowHandle() *WindowHandle { | |
| 46 | + | var cls *WindowHandle | |
| 47 | 47 | ||
| 48 | 48 | cret := xNewWindowHandle() | |
| 49 | 49 | ||
| @@ -51,7 +51,7 @@ func NewWindowHandle() *Widget { | |||
| 51 | 51 | return nil | |
| 52 | 52 | } | |
| 53 | 53 | gobject.IncreaseRef(cret) | |
| 54 | - | cls = &Widget{} | |
| 54 | + | cls = &WindowHandle{} | |
| 55 | 55 | cls.Ptr = cret | |
| 56 | 56 | return cls | |
| 57 | 57 | } | |