Types: Add const char**->[]string
- commit
- 177aa3a25e8ee0435a907cdaa87598a5257af05c
- author
- jwijenbergh · · 2023-09-08 13:47 UTC
- committer
- jwijenbergh · · 2023-09-08 13:50 UTC
- parent
- 91c587b
- signature
- GPG Unverified
1A2298F6C34F96E5The key is unknown
19 files · +56 -55
M internal/gir/types/types.go +1 -0
| @@ -47,6 +47,7 @@ var convList = map[string]string{ | |||
| 47 | 47 | "gpointer": "uintptr", | |
| 48 | 48 | "GType": "[]interface{}", | |
| 49 | 49 | "const char*": "string", | |
| 50 | + | "const char**": "[]string", | |
| 50 | 51 | "char**": "[]string", | |
| 51 | 52 | // not exported | |
| 52 | 53 | "HarfBuzz.font_t": "uintptr", | |
| @@ -47,6 +47,7 @@ var convList = map[string]string{ | |||||
| 47 | "gpointer": "uintptr", | 47 | "gpointer": "uintptr", | ||
| 48 | "GType": "[]interface{}", | 48 | "GType": "[]interface{}", | ||
| 49 | "const char*": "string", | 49 | "const char*": "string", | ||
| 50 | + | "const char**": "[]string", | |||
| 50 | "char**": "[]string", | 51 | "char**": "[]string", | ||
| 51 | // not exported | 52 | // not exported | ||
| 52 | "HarfBuzz.font_t": "uintptr", | 53 | "HarfBuzz.font_t": "uintptr", | ||
M v4/adw/adw-about-window.go +12 -12
| @@ -221,7 +221,7 @@ func NewAboutWindow() *gtk.Widget { | |||
| 221 | 221 | return cls | |
| 222 | 222 | } | |
| 223 | 223 | ||
| 224 | - | var xAboutWindowAddAcknowledgementSection func(uintptr, string, uintptr) | |
| 224 | + | var xAboutWindowAddAcknowledgementSection func(uintptr, string, []string) | |
| 225 | 225 | ||
| 226 | 226 | // Adds a section to the Acknowledgements page. | |
| 227 | 227 | // | |
| @@ -240,13 +240,13 @@ var xAboutWindowAddAcknowledgementSection func(uintptr, string, uintptr) | |||
| 240 | 240 | // * [property@AboutWindow:documenters] | |
| 241 | 241 | // * [property@AboutWindow:translator-credits] | |
| 242 | 242 | // * [method@AboutWindow.add_credit_section] | |
| 243 | - | func (x *AboutWindow) AddAcknowledgementSection(NameVar string, PeopleVar uintptr) { | |
| 243 | + | func (x *AboutWindow) AddAcknowledgementSection(NameVar string, PeopleVar []string) { | |
| 244 | 244 | ||
| 245 | 245 | xAboutWindowAddAcknowledgementSection(x.GoPointer(), NameVar, PeopleVar) | |
| 246 | 246 | ||
| 247 | 247 | } | |
| 248 | 248 | ||
| 249 | - | var xAboutWindowAddCreditSection func(uintptr, string, uintptr) | |
| 249 | + | var xAboutWindowAddCreditSection func(uintptr, string, []string) | |
| 250 | 250 | ||
| 251 | 251 | // Adds an extra section to the Credits page. | |
| 252 | 252 | // | |
| @@ -263,7 +263,7 @@ var xAboutWindowAddCreditSection func(uintptr, string, uintptr) | |||
| 263 | 263 | // * [property@AboutWindow:documenters] | |
| 264 | 264 | // * [property@AboutWindow:translator-credits] | |
| 265 | 265 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 266 | - | func (x *AboutWindow) AddCreditSection(NameVar string, PeopleVar uintptr) { | |
| 266 | + | func (x *AboutWindow) AddCreditSection(NameVar string, PeopleVar []string) { | |
| 267 | 267 | ||
| 268 | 268 | xAboutWindowAddCreditSection(x.GoPointer(), NameVar, PeopleVar) | |
| 269 | 269 | ||
| @@ -539,7 +539,7 @@ func (x *AboutWindow) SetApplicationName(ApplicationNameVar string) { | |||
| 539 | 539 | ||
| 540 | 540 | } | |
| 541 | 541 | ||
| 542 | - | var xAboutWindowSetArtists func(uintptr, uintptr) | |
| 542 | + | var xAboutWindowSetArtists func(uintptr, []string) | |
| 543 | 543 | ||
| 544 | 544 | // Sets the list of artists of the application. | |
| 545 | 545 | // | |
| @@ -556,7 +556,7 @@ var xAboutWindowSetArtists func(uintptr, uintptr) | |||
| 556 | 556 | // * [property@AboutWindow:translator-credits] | |
| 557 | 557 | // * [method@AboutWindow.add_credit_section] | |
| 558 | 558 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 559 | - | func (x *AboutWindow) SetArtists(ArtistsVar uintptr) { | |
| 559 | + | func (x *AboutWindow) SetArtists(ArtistsVar []string) { | |
| 560 | 560 | ||
| 561 | 561 | xAboutWindowSetArtists(x.GoPointer(), ArtistsVar) | |
| 562 | 562 | ||
| @@ -627,7 +627,7 @@ func (x *AboutWindow) SetDebugInfoFilename(FilenameVar string) { | |||
| 627 | 627 | ||
| 628 | 628 | } | |
| 629 | 629 | ||
| 630 | - | var xAboutWindowSetDesigners func(uintptr, uintptr) | |
| 630 | + | var xAboutWindowSetDesigners func(uintptr, []string) | |
| 631 | 631 | ||
| 632 | 632 | // Sets the list of designers of the application. | |
| 633 | 633 | // | |
| @@ -644,7 +644,7 @@ var xAboutWindowSetDesigners func(uintptr, uintptr) | |||
| 644 | 644 | // * [property@AboutWindow:translator-credits] | |
| 645 | 645 | // * [method@AboutWindow.add_credit_section] | |
| 646 | 646 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 647 | - | func (x *AboutWindow) SetDesigners(DesignersVar uintptr) { | |
| 647 | + | func (x *AboutWindow) SetDesigners(DesignersVar []string) { | |
| 648 | 648 | ||
| 649 | 649 | xAboutWindowSetDesigners(x.GoPointer(), DesignersVar) | |
| 650 | 650 | ||
| @@ -666,7 +666,7 @@ func (x *AboutWindow) SetDeveloperName(DeveloperNameVar string) { | |||
| 666 | 666 | ||
| 667 | 667 | } | |
| 668 | 668 | ||
| 669 | - | var xAboutWindowSetDevelopers func(uintptr, uintptr) | |
| 669 | + | var xAboutWindowSetDevelopers func(uintptr, []string) | |
| 670 | 670 | ||
| 671 | 671 | // Sets the list of developers of the application. | |
| 672 | 672 | // | |
| @@ -683,13 +683,13 @@ var xAboutWindowSetDevelopers func(uintptr, uintptr) | |||
| 683 | 683 | // * [property@AboutWindow:translator-credits] | |
| 684 | 684 | // * [method@AboutWindow.add_credit_section] | |
| 685 | 685 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 686 | - | func (x *AboutWindow) SetDevelopers(DevelopersVar uintptr) { | |
| 686 | + | func (x *AboutWindow) SetDevelopers(DevelopersVar []string) { | |
| 687 | 687 | ||
| 688 | 688 | xAboutWindowSetDevelopers(x.GoPointer(), DevelopersVar) | |
| 689 | 689 | ||
| 690 | 690 | } | |
| 691 | 691 | ||
| 692 | - | var xAboutWindowSetDocumenters func(uintptr, uintptr) | |
| 692 | + | var xAboutWindowSetDocumenters func(uintptr, []string) | |
| 693 | 693 | ||
| 694 | 694 | // Sets the list of documenters of the application. | |
| 695 | 695 | // | |
| @@ -706,7 +706,7 @@ var xAboutWindowSetDocumenters func(uintptr, uintptr) | |||
| 706 | 706 | // * [property@AboutWindow:translator-credits] | |
| 707 | 707 | // * [method@AboutWindow.add_credit_section] | |
| 708 | 708 | // * [method@AboutWindow.add_acknowledgement_section] | |
| 709 | - | func (x *AboutWindow) SetDocumenters(DocumentersVar uintptr) { | |
| 709 | + | func (x *AboutWindow) SetDocumenters(DocumentersVar []string) { | |
| 710 | 710 | ||
| 711 | 711 | xAboutWindowSetDocumenters(x.GoPointer(), DocumentersVar) | |
| 712 | 712 | ||
| @@ -221,7 +221,7 @@ func NewAboutWindow() *gtk.Widget { | |||||
| 221 | return cls | 221 | return cls | ||
| 222 | } | 222 | } | ||
| 223 | 223 | ||||
| 224 | - | var xAboutWindowAddAcknowledgementSection func(uintptr, string, uintptr) | 224 | + | var xAboutWindowAddAcknowledgementSection func(uintptr, string, []string) |
| 225 | 225 | ||||
| 226 | // Adds a section to the Acknowledgements page. | 226 | // Adds a section to the Acknowledgements page. | ||
| 227 | // | 227 | // | ||
| @@ -240,13 +240,13 @@ var xAboutWindowAddAcknowledgementSection func(uintptr, string, uintptr) | |||||
| 240 | // * [property@AboutWindow:documenters] | 240 | // * [property@AboutWindow:documenters] | ||
| 241 | // * [property@AboutWindow:translator-credits] | 241 | // * [property@AboutWindow:translator-credits] | ||
| 242 | // * [method@AboutWindow.add_credit_section] | 242 | // * [method@AboutWindow.add_credit_section] | ||
| 243 | - | func (x *AboutWindow) AddAcknowledgementSection(NameVar string, PeopleVar uintptr) { | 243 | + | func (x *AboutWindow) AddAcknowledgementSection(NameVar string, PeopleVar []string) { |
| 244 | 244 | ||||
| 245 | xAboutWindowAddAcknowledgementSection(x.GoPointer(), NameVar, PeopleVar) | 245 | xAboutWindowAddAcknowledgementSection(x.GoPointer(), NameVar, PeopleVar) | ||
| 246 | 246 | ||||
| 247 | } | 247 | } | ||
| 248 | 248 | ||||
| 249 | - | var xAboutWindowAddCreditSection func(uintptr, string, uintptr) | 249 | + | var xAboutWindowAddCreditSection func(uintptr, string, []string) |
| 250 | 250 | ||||
| 251 | // Adds an extra section to the Credits page. | 251 | // Adds an extra section to the Credits page. | ||
| 252 | // | 252 | // | ||
| @@ -263,7 +263,7 @@ var xAboutWindowAddCreditSection func(uintptr, string, uintptr) | |||||
| 263 | // * [property@AboutWindow:documenters] | 263 | // * [property@AboutWindow:documenters] | ||
| 264 | // * [property@AboutWindow:translator-credits] | 264 | // * [property@AboutWindow:translator-credits] | ||
| 265 | // * [method@AboutWindow.add_acknowledgement_section] | 265 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 266 | - | func (x *AboutWindow) AddCreditSection(NameVar string, PeopleVar uintptr) { | 266 | + | func (x *AboutWindow) AddCreditSection(NameVar string, PeopleVar []string) { |
| 267 | 267 | ||||
| 268 | xAboutWindowAddCreditSection(x.GoPointer(), NameVar, PeopleVar) | 268 | xAboutWindowAddCreditSection(x.GoPointer(), NameVar, PeopleVar) | ||
| 269 | 269 | ||||
| @@ -539,7 +539,7 @@ func (x *AboutWindow) SetApplicationName(ApplicationNameVar string) { | |||||
| 539 | 539 | ||||
| 540 | } | 540 | } | ||
| 541 | 541 | ||||
| 542 | - | var xAboutWindowSetArtists func(uintptr, uintptr) | 542 | + | var xAboutWindowSetArtists func(uintptr, []string) |
| 543 | 543 | ||||
| 544 | // Sets the list of artists of the application. | 544 | // Sets the list of artists of the application. | ||
| 545 | // | 545 | // | ||
| @@ -556,7 +556,7 @@ var xAboutWindowSetArtists func(uintptr, uintptr) | |||||
| 556 | // * [property@AboutWindow:translator-credits] | 556 | // * [property@AboutWindow:translator-credits] | ||
| 557 | // * [method@AboutWindow.add_credit_section] | 557 | // * [method@AboutWindow.add_credit_section] | ||
| 558 | // * [method@AboutWindow.add_acknowledgement_section] | 558 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 559 | - | func (x *AboutWindow) SetArtists(ArtistsVar uintptr) { | 559 | + | func (x *AboutWindow) SetArtists(ArtistsVar []string) { |
| 560 | 560 | ||||
| 561 | xAboutWindowSetArtists(x.GoPointer(), ArtistsVar) | 561 | xAboutWindowSetArtists(x.GoPointer(), ArtistsVar) | ||
| 562 | 562 | ||||
| @@ -627,7 +627,7 @@ func (x *AboutWindow) SetDebugInfoFilename(FilenameVar string) { | |||||
| 627 | 627 | ||||
| 628 | } | 628 | } | ||
| 629 | 629 | ||||
| 630 | - | var xAboutWindowSetDesigners func(uintptr, uintptr) | 630 | + | var xAboutWindowSetDesigners func(uintptr, []string) |
| 631 | 631 | ||||
| 632 | // Sets the list of designers of the application. | 632 | // Sets the list of designers of the application. | ||
| 633 | // | 633 | // | ||
| @@ -644,7 +644,7 @@ var xAboutWindowSetDesigners func(uintptr, uintptr) | |||||
| 644 | // * [property@AboutWindow:translator-credits] | 644 | // * [property@AboutWindow:translator-credits] | ||
| 645 | // * [method@AboutWindow.add_credit_section] | 645 | // * [method@AboutWindow.add_credit_section] | ||
| 646 | // * [method@AboutWindow.add_acknowledgement_section] | 646 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 647 | - | func (x *AboutWindow) SetDesigners(DesignersVar uintptr) { | 647 | + | func (x *AboutWindow) SetDesigners(DesignersVar []string) { |
| 648 | 648 | ||||
| 649 | xAboutWindowSetDesigners(x.GoPointer(), DesignersVar) | 649 | xAboutWindowSetDesigners(x.GoPointer(), DesignersVar) | ||
| 650 | 650 | ||||
| @@ -666,7 +666,7 @@ func (x *AboutWindow) SetDeveloperName(DeveloperNameVar string) { | |||||
| 666 | 666 | ||||
| 667 | } | 667 | } | ||
| 668 | 668 | ||||
| 669 | - | var xAboutWindowSetDevelopers func(uintptr, uintptr) | 669 | + | var xAboutWindowSetDevelopers func(uintptr, []string) |
| 670 | 670 | ||||
| 671 | // Sets the list of developers of the application. | 671 | // Sets the list of developers of the application. | ||
| 672 | // | 672 | // | ||
| @@ -683,13 +683,13 @@ var xAboutWindowSetDevelopers func(uintptr, uintptr) | |||||
| 683 | // * [property@AboutWindow:translator-credits] | 683 | // * [property@AboutWindow:translator-credits] | ||
| 684 | // * [method@AboutWindow.add_credit_section] | 684 | // * [method@AboutWindow.add_credit_section] | ||
| 685 | // * [method@AboutWindow.add_acknowledgement_section] | 685 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 686 | - | func (x *AboutWindow) SetDevelopers(DevelopersVar uintptr) { | 686 | + | func (x *AboutWindow) SetDevelopers(DevelopersVar []string) { |
| 687 | 687 | ||||
| 688 | xAboutWindowSetDevelopers(x.GoPointer(), DevelopersVar) | 688 | xAboutWindowSetDevelopers(x.GoPointer(), DevelopersVar) | ||
| 689 | 689 | ||||
| 690 | } | 690 | } | ||
| 691 | 691 | ||||
| 692 | - | var xAboutWindowSetDocumenters func(uintptr, uintptr) | 692 | + | var xAboutWindowSetDocumenters func(uintptr, []string) |
| 693 | 693 | ||||
| 694 | // Sets the list of documenters of the application. | 694 | // Sets the list of documenters of the application. | ||
| 695 | // | 695 | // | ||
| @@ -706,7 +706,7 @@ var xAboutWindowSetDocumenters func(uintptr, uintptr) | |||||
| 706 | // * [property@AboutWindow:translator-credits] | 706 | // * [property@AboutWindow:translator-credits] | ||
| 707 | // * [method@AboutWindow.add_credit_section] | 707 | // * [method@AboutWindow.add_credit_section] | ||
| 708 | // * [method@AboutWindow.add_acknowledgement_section] | 708 | // * [method@AboutWindow.add_acknowledgement_section] | ||
| 709 | - | func (x *AboutWindow) SetDocumenters(DocumentersVar uintptr) { | 709 | + | func (x *AboutWindow) SetDocumenters(DocumentersVar []string) { |
| 710 | 710 | ||||
| 711 | xAboutWindowSetDocumenters(x.GoPointer(), DocumentersVar) | 711 | xAboutWindowSetDocumenters(x.GoPointer(), DocumentersVar) | ||
| 712 | 712 | ||||
M v4/gdk/gdkclipboard.go +2 -2
| @@ -97,7 +97,7 @@ func (x *Clipboard) IsLocal() bool { | |||
| 97 | 97 | return cret | |
| 98 | 98 | } | |
| 99 | 99 | ||
| 100 | - | var xClipboardReadAsync func(uintptr, uintptr, int, uintptr, uintptr, uintptr) | |
| 100 | + | var xClipboardReadAsync func(uintptr, []string, int, uintptr, uintptr, uintptr) | |
| 101 | 101 | ||
| 102 | 102 | // Asynchronously requests an input stream to read the @clipboard's | |
| 103 | 103 | // contents from. | |
| @@ -107,7 +107,7 @@ var xClipboardReadAsync func(uintptr, uintptr, int, uintptr, uintptr, uintptr) | |||
| 107 | 107 | // | |
| 108 | 108 | // The clipboard will choose the most suitable mime type from the given list | |
| 109 | 109 | // to fulfill the request, preferring the ones listed first. | |
| 110 | - | func (x *Clipboard) ReadAsync(MimeTypesVar uintptr, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 110 | + | func (x *Clipboard) ReadAsync(MimeTypesVar []string, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 111 | 111 | ||
| 112 | 112 | xClipboardReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), purego.NewCallback(CallbackVar), UserDataVar) | |
| 113 | 113 | ||
| @@ -97,7 +97,7 @@ func (x *Clipboard) IsLocal() bool { | |||||
| 97 | return cret | 97 | return cret | ||
| 98 | } | 98 | } | ||
| 99 | 99 | ||||
| 100 | - | var xClipboardReadAsync func(uintptr, uintptr, int, uintptr, uintptr, uintptr) | 100 | + | var xClipboardReadAsync func(uintptr, []string, int, uintptr, uintptr, uintptr) |
| 101 | 101 | ||||
| 102 | // Asynchronously requests an input stream to read the @clipboard's | 102 | // Asynchronously requests an input stream to read the @clipboard's | ||
| 103 | // contents from. | 103 | // contents from. | ||
| @@ -107,7 +107,7 @@ var xClipboardReadAsync func(uintptr, uintptr, int, uintptr, uintptr, uintptr) | |||||
| 107 | // | 107 | // | ||
| 108 | // The clipboard will choose the most suitable mime type from the given list | 108 | // The clipboard will choose the most suitable mime type from the given list | ||
| 109 | // to fulfill the request, preferring the ones listed first. | 109 | // to fulfill the request, preferring the ones listed first. | ||
| 110 | - | func (x *Clipboard) ReadAsync(MimeTypesVar uintptr, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar gio.AsyncReadyCallback, UserDataVar uintptr) { | 110 | + | func (x *Clipboard) ReadAsync(MimeTypesVar []string, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar gio.AsyncReadyCallback, UserDataVar uintptr) { |
| 111 | 111 | ||||
| 112 | xClipboardReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), purego.NewCallback(CallbackVar), UserDataVar) | 112 | xClipboardReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), purego.NewCallback(CallbackVar), UserDataVar) | ||
| 113 | 113 | ||||
M v4/gdk/gdkdrop.go +2 -2
| @@ -148,11 +148,11 @@ func (x *Drop) GetSurface() *Surface { | |||
| 148 | 148 | return cls | |
| 149 | 149 | } | |
| 150 | 150 | ||
| 151 | - | var xDropReadAsync func(uintptr, uintptr, int, uintptr, uintptr, uintptr) | |
| 151 | + | var xDropReadAsync func(uintptr, []string, int, uintptr, uintptr, uintptr) | |
| 152 | 152 | ||
| 153 | 153 | // Asynchronously read the dropped data from a `GdkDrop` | |
| 154 | 154 | // in a format that complies with one of the mime types. | |
| 155 | - | func (x *Drop) ReadAsync(MimeTypesVar uintptr, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 155 | + | func (x *Drop) ReadAsync(MimeTypesVar []string, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar gio.AsyncReadyCallback, UserDataVar uintptr) { | |
| 156 | 156 | ||
| 157 | 157 | xDropReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), purego.NewCallback(CallbackVar), UserDataVar) | |
| 158 | 158 | ||
| @@ -148,11 +148,11 @@ func (x *Drop) GetSurface() *Surface { | |||||
| 148 | return cls | 148 | return cls | ||
| 149 | } | 149 | } | ||
| 150 | 150 | ||||
| 151 | - | var xDropReadAsync func(uintptr, uintptr, int, uintptr, uintptr, uintptr) | 151 | + | var xDropReadAsync func(uintptr, []string, int, uintptr, uintptr, uintptr) |
| 152 | 152 | ||||
| 153 | // Asynchronously read the dropped data from a `GdkDrop` | 153 | // Asynchronously read the dropped data from a `GdkDrop` | ||
| 154 | // in a format that complies with one of the mime types. | 154 | // in a format that complies with one of the mime types. | ||
| 155 | - | func (x *Drop) ReadAsync(MimeTypesVar uintptr, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar gio.AsyncReadyCallback, UserDataVar uintptr) { | 155 | + | func (x *Drop) ReadAsync(MimeTypesVar []string, IoPriorityVar int, CancellableVar *gio.Cancellable, CallbackVar gio.AsyncReadyCallback, UserDataVar uintptr) { |
| 156 | 156 | ||||
| 157 | xDropReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), purego.NewCallback(CallbackVar), UserDataVar) | 157 | xDropReadAsync(x.GoPointer(), MimeTypesVar, IoPriorityVar, CancellableVar.GoPointer(), purego.NewCallback(CallbackVar), UserDataVar) | ||
| 158 | 158 | ||||
M v4/gdkpixbuf/gdk-pixbuf-io.go +1 -1
| @@ -39,7 +39,7 @@ type PixbufModuleLoadAnimationFunc func(uintptr, **glib.Error) uintptr | |||
| 39 | 39 | type PixbufModuleLoadFunc func(uintptr, **glib.Error) uintptr | |
| 40 | 40 | ||
| 41 | 41 | // Loads XPM data into a new `GdkPixbuf`. | |
| 42 | - | type PixbufModuleLoadXpmDataFunc func(uintptr) uintptr | |
| 42 | + | type PixbufModuleLoadXpmDataFunc func([]string) uintptr | |
| 43 | 43 | ||
| 44 | 44 | // Defines the type of the function that gets called once the initial | |
| 45 | 45 | // setup of @pixbuf is done. | |
| @@ -39,7 +39,7 @@ type PixbufModuleLoadAnimationFunc func(uintptr, **glib.Error) uintptr | |||||
| 39 | type PixbufModuleLoadFunc func(uintptr, **glib.Error) uintptr | 39 | type PixbufModuleLoadFunc func(uintptr, **glib.Error) uintptr | ||
| 40 | 40 | ||||
| 41 | // Loads XPM data into a new `GdkPixbuf`. | 41 | // Loads XPM data into a new `GdkPixbuf`. | ||
| 42 | - | type PixbufModuleLoadXpmDataFunc func(uintptr) uintptr | 42 | + | type PixbufModuleLoadXpmDataFunc func([]string) uintptr |
| 43 | 43 | ||||
| 44 | // Defines the type of the function that gets called once the initial | 44 | // Defines the type of the function that gets called once the initial | ||
| 45 | // setup of @pixbuf is done. | 45 | // setup of @pixbuf is done. | ||
M v4/gdkpixbuf/gdk-pixbuf.go +2 -2
| @@ -542,13 +542,13 @@ func NewFromStreamFinishPixbuf(AsyncResultVar gio.AsyncResult) (*Pixbuf, error) | |||
| 542 | 542 | ||
| 543 | 543 | } | |
| 544 | 544 | ||
| 545 | - | var xNewFromXpmDataPixbuf func(uintptr) uintptr | |
| 545 | + | var xNewFromXpmDataPixbuf func([]string) uintptr | |
| 546 | 546 | ||
| 547 | 547 | // Creates a new pixbuf by parsing XPM data in memory. | |
| 548 | 548 | // | |
| 549 | 549 | // This data is commonly the result of including an XPM file into a | |
| 550 | 550 | // program's C source. | |
| 551 | - | func NewFromXpmDataPixbuf(DataVar uintptr) *Pixbuf { | |
| 551 | + | func NewFromXpmDataPixbuf(DataVar []string) *Pixbuf { | |
| 552 | 552 | var cls *Pixbuf | |
| 553 | 553 | ||
| 554 | 554 | cret := xNewFromXpmDataPixbuf(DataVar) | |
| @@ -542,13 +542,13 @@ func NewFromStreamFinishPixbuf(AsyncResultVar gio.AsyncResult) (*Pixbuf, error) | |||||
| 542 | 542 | ||||
| 543 | } | 543 | } | ||
| 544 | 544 | ||||
| 545 | - | var xNewFromXpmDataPixbuf func(uintptr) uintptr | 545 | + | var xNewFromXpmDataPixbuf func([]string) uintptr |
| 546 | 546 | ||||
| 547 | // Creates a new pixbuf by parsing XPM data in memory. | 547 | // Creates a new pixbuf by parsing XPM data in memory. | ||
| 548 | // | 548 | // | ||
| 549 | // This data is commonly the result of including an XPM file into a | 549 | // This data is commonly the result of including an XPM file into a | ||
| 550 | // program's C source. | 550 | // program's C source. | ||
| 551 | - | func NewFromXpmDataPixbuf(DataVar uintptr) *Pixbuf { | 551 | + | func NewFromXpmDataPixbuf(DataVar []string) *Pixbuf { |
| 552 | var cls *Pixbuf | 552 | var cls *Pixbuf | ||
| 553 | 553 | ||||
| 554 | cret := xNewFromXpmDataPixbuf(DataVar) | 554 | cret := xNewFromXpmDataPixbuf(DataVar) | ||
M v4/gio/gappinfo.go +3 -3
| @@ -86,7 +86,7 @@ type AppInfo interface { | |||
| 86 | 86 | GetIcon() *IconBase | |
| 87 | 87 | GetId() string | |
| 88 | 88 | GetName() string | |
| 89 | - | GetSupportedTypes() uintptr | |
| 89 | + | GetSupportedTypes() []string | |
| 90 | 90 | Launch(FilesVar *glib.List, ContextVar *AppLaunchContext) bool | |
| 91 | 91 | LaunchUris(UrisVar *glib.List, ContextVar *AppLaunchContext) bool | |
| 92 | 92 | LaunchUrisAsync(UrisVar *glib.List, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar AsyncReadyCallback, UserDataVar uintptr) | |
| @@ -246,7 +246,7 @@ func (x *AppInfoBase) GetName() string { | |||
| 246 | 246 | // This function does not take in consideration associations added with | |
| 247 | 247 | // g_app_info_add_supports_type(), but only those exported directly by | |
| 248 | 248 | // the application. | |
| 249 | - | func (x *AppInfoBase) GetSupportedTypes() uintptr { | |
| 249 | + | func (x *AppInfoBase) GetSupportedTypes() []string { | |
| 250 | 250 | ||
| 251 | 251 | cret := XGAppInfoGetSupportedTypes(x.GoPointer()) | |
| 252 | 252 | return cret | |
| @@ -421,7 +421,7 @@ var XGAppInfoGetExecutable func(uintptr) string | |||
| 421 | 421 | var XGAppInfoGetIcon func(uintptr) uintptr | |
| 422 | 422 | var XGAppInfoGetId func(uintptr) string | |
| 423 | 423 | var XGAppInfoGetName func(uintptr) string | |
| 424 | - | var XGAppInfoGetSupportedTypes func(uintptr) uintptr | |
| 424 | + | var XGAppInfoGetSupportedTypes func(uintptr) []string | |
| 425 | 425 | var XGAppInfoLaunch func(uintptr, *glib.List, uintptr, **glib.Error) bool | |
| 426 | 426 | var XGAppInfoLaunchUris func(uintptr, *glib.List, uintptr, **glib.Error) bool | |
| 427 | 427 | var XGAppInfoLaunchUrisAsync func(uintptr, *glib.List, uintptr, uintptr, uintptr, uintptr) | |
| @@ -86,7 +86,7 @@ type AppInfo interface { | |||||
| 86 | GetIcon() *IconBase | 86 | GetIcon() *IconBase | ||
| 87 | GetId() string | 87 | GetId() string | ||
| 88 | GetName() string | 88 | GetName() string | ||
| 89 | - | GetSupportedTypes() uintptr | 89 | + | GetSupportedTypes() []string |
| 90 | Launch(FilesVar *glib.List, ContextVar *AppLaunchContext) bool | 90 | Launch(FilesVar *glib.List, ContextVar *AppLaunchContext) bool | ||
| 91 | LaunchUris(UrisVar *glib.List, ContextVar *AppLaunchContext) bool | 91 | LaunchUris(UrisVar *glib.List, ContextVar *AppLaunchContext) bool | ||
| 92 | LaunchUrisAsync(UrisVar *glib.List, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar AsyncReadyCallback, UserDataVar uintptr) | 92 | LaunchUrisAsync(UrisVar *glib.List, ContextVar *AppLaunchContext, CancellableVar *Cancellable, CallbackVar AsyncReadyCallback, UserDataVar uintptr) | ||
| @@ -246,7 +246,7 @@ func (x *AppInfoBase) GetName() string { | |||||
| 246 | // This function does not take in consideration associations added with | 246 | // This function does not take in consideration associations added with | ||
| 247 | // g_app_info_add_supports_type(), but only those exported directly by | 247 | // g_app_info_add_supports_type(), but only those exported directly by | ||
| 248 | // the application. | 248 | // the application. | ||
| 249 | - | func (x *AppInfoBase) GetSupportedTypes() uintptr { | 249 | + | func (x *AppInfoBase) GetSupportedTypes() []string { |
| 250 | 250 | ||||
| 251 | cret := XGAppInfoGetSupportedTypes(x.GoPointer()) | 251 | cret := XGAppInfoGetSupportedTypes(x.GoPointer()) | ||
| 252 | return cret | 252 | return cret | ||
| @@ -421,7 +421,7 @@ var XGAppInfoGetExecutable func(uintptr) string | |||||
| 421 | var XGAppInfoGetIcon func(uintptr) uintptr | 421 | var XGAppInfoGetIcon func(uintptr) uintptr | ||
| 422 | var XGAppInfoGetId func(uintptr) string | 422 | var XGAppInfoGetId func(uintptr) string | ||
| 423 | var XGAppInfoGetName func(uintptr) string | 423 | var XGAppInfoGetName func(uintptr) string | ||
| 424 | - | var XGAppInfoGetSupportedTypes func(uintptr) uintptr | 424 | + | var XGAppInfoGetSupportedTypes func(uintptr) []string |
| 425 | var XGAppInfoLaunch func(uintptr, *glib.List, uintptr, **glib.Error) bool | 425 | var XGAppInfoLaunch func(uintptr, *glib.List, uintptr, **glib.Error) bool | ||
| 426 | var XGAppInfoLaunchUris func(uintptr, *glib.List, uintptr, **glib.Error) bool | 426 | var XGAppInfoLaunchUris func(uintptr, *glib.List, uintptr, **glib.Error) bool | ||
| 427 | var XGAppInfoLaunchUrisAsync func(uintptr, *glib.List, uintptr, uintptr, uintptr, uintptr) | 427 | var XGAppInfoLaunchUrisAsync func(uintptr, *glib.List, uintptr, uintptr, uintptr, uintptr) | ||
M v4/gio/gdesktopappinfo.go +1 -1
| @@ -522,7 +522,7 @@ func (x *DesktopAppInfo) GetName() string { | |||
| 522 | 522 | // This function does not take in consideration associations added with | |
| 523 | 523 | // g_app_info_add_supports_type(), but only those exported directly by | |
| 524 | 524 | // the application. | |
| 525 | - | func (x *DesktopAppInfo) GetSupportedTypes() uintptr { | |
| 525 | + | func (x *DesktopAppInfo) GetSupportedTypes() []string { | |
| 526 | 526 | ||
| 527 | 527 | cret := XGAppInfoGetSupportedTypes(x.GoPointer()) | |
| 528 | 528 | return cret | |
| @@ -522,7 +522,7 @@ func (x *DesktopAppInfo) GetName() string { | |||||
| 522 | // This function does not take in consideration associations added with | 522 | // This function does not take in consideration associations added with | ||
| 523 | // g_app_info_add_supports_type(), but only those exported directly by | 523 | // g_app_info_add_supports_type(), but only those exported directly by | ||
| 524 | // the application. | 524 | // the application. | ||
| 525 | - | func (x *DesktopAppInfo) GetSupportedTypes() uintptr { | 525 | + | func (x *DesktopAppInfo) GetSupportedTypes() []string { |
| 526 | 526 | ||||
| 527 | cret := XGAppInfoGetSupportedTypes(x.GoPointer()) | 527 | cret := XGAppInfoGetSupportedTypes(x.GoPointer()) | ||
| 528 | return cret | 528 | return cret | ||
M v4/gobject/gobject.go +2 -2
| @@ -284,7 +284,7 @@ func NewValistObject(ObjectTypeVar []interface{}, FirstPropertyNameVar string, V | |||
| 284 | 284 | return cls | |
| 285 | 285 | } | |
| 286 | 286 | ||
| 287 | - | var xNewWithPropertiesObject func([]interface{}, uint, uintptr, uintptr) uintptr | |
| 287 | + | var xNewWithPropertiesObject func([]interface{}, uint, []string, uintptr) uintptr | |
| 288 | 288 | ||
| 289 | 289 | // Creates a new instance of a #GObject subtype and sets its properties using | |
| 290 | 290 | // the provided arrays. Both arrays must have exactly @n_properties elements, | |
| @@ -292,7 +292,7 @@ var xNewWithPropertiesObject func([]interface{}, uint, uintptr, uintptr) uintptr | |||
| 292 | 292 | // | |
| 293 | 293 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | |
| 294 | 294 | // which are not explicitly specified are set to their default values. | |
| 295 | - | func NewWithPropertiesObject(ObjectTypeVar []interface{}, NPropertiesVar uint, NamesVar uintptr, ValuesVar uintptr) *Object { | |
| 295 | + | func NewWithPropertiesObject(ObjectTypeVar []interface{}, NPropertiesVar uint, NamesVar []string, ValuesVar uintptr) *Object { | |
| 296 | 296 | var cls *Object | |
| 297 | 297 | ||
| 298 | 298 | cret := xNewWithPropertiesObject(ObjectTypeVar, NPropertiesVar, NamesVar, ValuesVar) | |
| @@ -284,7 +284,7 @@ func NewValistObject(ObjectTypeVar []interface{}, FirstPropertyNameVar string, V | |||||
| 284 | return cls | 284 | return cls | ||
| 285 | } | 285 | } | ||
| 286 | 286 | ||||
| 287 | - | var xNewWithPropertiesObject func([]interface{}, uint, uintptr, uintptr) uintptr | 287 | + | var xNewWithPropertiesObject func([]interface{}, uint, []string, uintptr) uintptr |
| 288 | 288 | ||||
| 289 | // Creates a new instance of a #GObject subtype and sets its properties using | 289 | // Creates a new instance of a #GObject subtype and sets its properties using | ||
| 290 | // the provided arrays. Both arrays must have exactly @n_properties elements, | 290 | // the provided arrays. Both arrays must have exactly @n_properties elements, | ||
| @@ -292,7 +292,7 @@ var xNewWithPropertiesObject func([]interface{}, uint, uintptr, uintptr) uintptr | |||||
| 292 | // | 292 | // | ||
| 293 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | 293 | // Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) | ||
| 294 | // which are not explicitly specified are set to their default values. | 294 | // which are not explicitly specified are set to their default values. | ||
| 295 | - | func NewWithPropertiesObject(ObjectTypeVar []interface{}, NPropertiesVar uint, NamesVar uintptr, ValuesVar uintptr) *Object { | 295 | + | func NewWithPropertiesObject(ObjectTypeVar []interface{}, NPropertiesVar uint, NamesVar []string, ValuesVar uintptr) *Object { |
| 296 | var cls *Object | 296 | var cls *Object | ||
| 297 | 297 | ||||
| 298 | cret := xNewWithPropertiesObject(ObjectTypeVar, NPropertiesVar, NamesVar, ValuesVar) | 298 | cret := xNewWithPropertiesObject(ObjectTypeVar, NPropertiesVar, NamesVar, ValuesVar) | ||
M v4/gtk/gtkaboutdialog.go +8 -8
| @@ -143,10 +143,10 @@ func NewAboutDialog() *Widget { | |||
| 143 | 143 | return cls | |
| 144 | 144 | } | |
| 145 | 145 | ||
| 146 | - | var xAboutDialogAddCreditSection func(uintptr, string, uintptr) | |
| 146 | + | var xAboutDialogAddCreditSection func(uintptr, string, []string) | |
| 147 | 147 | ||
| 148 | 148 | // Creates a new section in the "Credits" page. | |
| 149 | - | func (x *AboutDialog) AddCreditSection(SectionNameVar string, PeopleVar uintptr) { | |
| 149 | + | func (x *AboutDialog) AddCreditSection(SectionNameVar string, PeopleVar []string) { | |
| 150 | 150 | ||
| 151 | 151 | xAboutDialogAddCreditSection(x.GoPointer(), SectionNameVar, PeopleVar) | |
| 152 | 152 | ||
| @@ -309,21 +309,21 @@ func (x *AboutDialog) GetWrapLicense() bool { | |||
| 309 | 309 | return cret | |
| 310 | 310 | } | |
| 311 | 311 | ||
| 312 | - | var xAboutDialogSetArtists func(uintptr, uintptr) | |
| 312 | + | var xAboutDialogSetArtists func(uintptr, []string) | |
| 313 | 313 | ||
| 314 | 314 | // Sets the names of the artists to be displayed | |
| 315 | 315 | // in the "Credits" page. | |
| 316 | - | func (x *AboutDialog) SetArtists(ArtistsVar uintptr) { | |
| 316 | + | func (x *AboutDialog) SetArtists(ArtistsVar []string) { | |
| 317 | 317 | ||
| 318 | 318 | xAboutDialogSetArtists(x.GoPointer(), ArtistsVar) | |
| 319 | 319 | ||
| 320 | 320 | } | |
| 321 | 321 | ||
| 322 | - | var xAboutDialogSetAuthors func(uintptr, uintptr) | |
| 322 | + | var xAboutDialogSetAuthors func(uintptr, []string) | |
| 323 | 323 | ||
| 324 | 324 | // Sets the names of the authors which are displayed | |
| 325 | 325 | // in the "Credits" page of the about dialog. | |
| 326 | - | func (x *AboutDialog) SetAuthors(AuthorsVar uintptr) { | |
| 326 | + | func (x *AboutDialog) SetAuthors(AuthorsVar []string) { | |
| 327 | 327 | ||
| 328 | 328 | xAboutDialogSetAuthors(x.GoPointer(), AuthorsVar) | |
| 329 | 329 | ||
| @@ -351,11 +351,11 @@ func (x *AboutDialog) SetCopyright(CopyrightVar string) { | |||
| 351 | 351 | ||
| 352 | 352 | } | |
| 353 | 353 | ||
| 354 | - | var xAboutDialogSetDocumenters func(uintptr, uintptr) | |
| 354 | + | var xAboutDialogSetDocumenters func(uintptr, []string) | |
| 355 | 355 | ||
| 356 | 356 | // Sets the names of the documenters which are displayed | |
| 357 | 357 | // in the "Credits" page. | |
| 358 | - | func (x *AboutDialog) SetDocumenters(DocumentersVar uintptr) { | |
| 358 | + | func (x *AboutDialog) SetDocumenters(DocumentersVar []string) { | |
| 359 | 359 | ||
| 360 | 360 | xAboutDialogSetDocumenters(x.GoPointer(), DocumentersVar) | |
| 361 | 361 | ||
| @@ -143,10 +143,10 @@ func NewAboutDialog() *Widget { | |||||
| 143 | return cls | 143 | return cls | ||
| 144 | } | 144 | } | ||
| 145 | 145 | ||||
| 146 | - | var xAboutDialogAddCreditSection func(uintptr, string, uintptr) | 146 | + | var xAboutDialogAddCreditSection func(uintptr, string, []string) |
| 147 | 147 | ||||
| 148 | // Creates a new section in the "Credits" page. | 148 | // Creates a new section in the "Credits" page. | ||
| 149 | - | func (x *AboutDialog) AddCreditSection(SectionNameVar string, PeopleVar uintptr) { | 149 | + | func (x *AboutDialog) AddCreditSection(SectionNameVar string, PeopleVar []string) { |
| 150 | 150 | ||||
| 151 | xAboutDialogAddCreditSection(x.GoPointer(), SectionNameVar, PeopleVar) | 151 | xAboutDialogAddCreditSection(x.GoPointer(), SectionNameVar, PeopleVar) | ||
| 152 | 152 | ||||
| @@ -309,21 +309,21 @@ func (x *AboutDialog) GetWrapLicense() bool { | |||||
| 309 | return cret | 309 | return cret | ||
| 310 | } | 310 | } | ||
| 311 | 311 | ||||
| 312 | - | var xAboutDialogSetArtists func(uintptr, uintptr) | 312 | + | var xAboutDialogSetArtists func(uintptr, []string) |
| 313 | 313 | ||||
| 314 | // Sets the names of the artists to be displayed | 314 | // Sets the names of the artists to be displayed | ||
| 315 | // in the "Credits" page. | 315 | // in the "Credits" page. | ||
| 316 | - | func (x *AboutDialog) SetArtists(ArtistsVar uintptr) { | 316 | + | func (x *AboutDialog) SetArtists(ArtistsVar []string) { |
| 317 | 317 | ||||
| 318 | xAboutDialogSetArtists(x.GoPointer(), ArtistsVar) | 318 | xAboutDialogSetArtists(x.GoPointer(), ArtistsVar) | ||
| 319 | 319 | ||||
| 320 | } | 320 | } | ||
| 321 | 321 | ||||
| 322 | - | var xAboutDialogSetAuthors func(uintptr, uintptr) | 322 | + | var xAboutDialogSetAuthors func(uintptr, []string) |
| 323 | 323 | ||||
| 324 | // Sets the names of the authors which are displayed | 324 | // Sets the names of the authors which are displayed | ||
| 325 | // in the "Credits" page of the about dialog. | 325 | // in the "Credits" page of the about dialog. | ||
| 326 | - | func (x *AboutDialog) SetAuthors(AuthorsVar uintptr) { | 326 | + | func (x *AboutDialog) SetAuthors(AuthorsVar []string) { |
| 327 | 327 | ||||
| 328 | xAboutDialogSetAuthors(x.GoPointer(), AuthorsVar) | 328 | xAboutDialogSetAuthors(x.GoPointer(), AuthorsVar) | ||
| 329 | 329 | ||||
| @@ -351,11 +351,11 @@ func (x *AboutDialog) SetCopyright(CopyrightVar string) { | |||||
| 351 | 351 | ||||
| 352 | } | 352 | } | ||
| 353 | 353 | ||||
| 354 | - | var xAboutDialogSetDocumenters func(uintptr, uintptr) | 354 | + | var xAboutDialogSetDocumenters func(uintptr, []string) |
| 355 | 355 | ||||
| 356 | // Sets the names of the documenters which are displayed | 356 | // Sets the names of the documenters which are displayed | ||
| 357 | // in the "Credits" page. | 357 | // in the "Credits" page. | ||
| 358 | - | func (x *AboutDialog) SetDocumenters(DocumentersVar uintptr) { | 358 | + | func (x *AboutDialog) SetDocumenters(DocumentersVar []string) { |
| 359 | 359 | ||||
| 360 | xAboutDialogSetDocumenters(x.GoPointer(), DocumentersVar) | 360 | xAboutDialogSetDocumenters(x.GoPointer(), DocumentersVar) | ||
| 361 | 361 | ||||
M v4/gtk/gtkbuilder.go +6 -6
| @@ -422,7 +422,7 @@ func (x *Builder) AddFromString(BufferVar string, LengthVar int) (bool, error) { | |||
| 422 | 422 | ||
| 423 | 423 | } | |
| 424 | 424 | ||
| 425 | - | var xBuilderAddObjectsFromFile func(uintptr, string, uintptr, **glib.Error) bool | |
| 425 | + | var xBuilderAddObjectsFromFile func(uintptr, string, []string, **glib.Error) bool | |
| 426 | 426 | ||
| 427 | 427 | // Parses a file containing a UI definition building only the | |
| 428 | 428 | // requested objects and merges them with the current contents | |
| @@ -435,7 +435,7 @@ var xBuilderAddObjectsFromFile func(uintptr, string, uintptr, **glib.Error) bool | |||
| 435 | 435 | // If you are adding an object that depends on an object that is not | |
| 436 | 436 | // its child (for instance a `GtkTreeView` that depends on its | |
| 437 | 437 | // `GtkTreeModel`), you have to explicitly list all of them in @object_ids. | |
| 438 | - | func (x *Builder) AddObjectsFromFile(FilenameVar string, ObjectIdsVar uintptr) (bool, error) { | |
| 438 | + | func (x *Builder) AddObjectsFromFile(FilenameVar string, ObjectIdsVar []string) (bool, error) { | |
| 439 | 439 | var cerr *glib.Error | |
| 440 | 440 | ||
| 441 | 441 | cret := xBuilderAddObjectsFromFile(x.GoPointer(), FilenameVar, ObjectIdsVar, &cerr) | |
| @@ -446,7 +446,7 @@ func (x *Builder) AddObjectsFromFile(FilenameVar string, ObjectIdsVar uintptr) ( | |||
| 446 | 446 | ||
| 447 | 447 | } | |
| 448 | 448 | ||
| 449 | - | var xBuilderAddObjectsFromResource func(uintptr, string, uintptr, **glib.Error) bool | |
| 449 | + | var xBuilderAddObjectsFromResource func(uintptr, string, []string, **glib.Error) bool | |
| 450 | 450 | ||
| 451 | 451 | // Parses a resource file containing a UI definition, building | |
| 452 | 452 | // only the requested objects and merges them with the current | |
| @@ -459,7 +459,7 @@ var xBuilderAddObjectsFromResource func(uintptr, string, uintptr, **glib.Error) | |||
| 459 | 459 | // If you are adding an object that depends on an object that is not | |
| 460 | 460 | // its child (for instance a `GtkTreeView` that depends on its | |
| 461 | 461 | // `GtkTreeModel`), you have to explicitly list all of them in @object_ids. | |
| 462 | - | func (x *Builder) AddObjectsFromResource(ResourcePathVar string, ObjectIdsVar uintptr) (bool, error) { | |
| 462 | + | func (x *Builder) AddObjectsFromResource(ResourcePathVar string, ObjectIdsVar []string) (bool, error) { | |
| 463 | 463 | var cerr *glib.Error | |
| 464 | 464 | ||
| 465 | 465 | cret := xBuilderAddObjectsFromResource(x.GoPointer(), ResourcePathVar, ObjectIdsVar, &cerr) | |
| @@ -470,7 +470,7 @@ func (x *Builder) AddObjectsFromResource(ResourcePathVar string, ObjectIdsVar ui | |||
| 470 | 470 | ||
| 471 | 471 | } | |
| 472 | 472 | ||
| 473 | - | var xBuilderAddObjectsFromString func(uintptr, string, int, uintptr, **glib.Error) bool | |
| 473 | + | var xBuilderAddObjectsFromString func(uintptr, string, int, []string, **glib.Error) bool | |
| 474 | 474 | ||
| 475 | 475 | // Parses a string containing a UI definition, building only the | |
| 476 | 476 | // requested objects and merges them with the current contents of | |
| @@ -482,7 +482,7 @@ var xBuilderAddObjectsFromString func(uintptr, string, int, uintptr, **glib.Erro | |||
| 482 | 482 | // If you are adding an object that depends on an object that is not | |
| 483 | 483 | // its child (for instance a `GtkTreeView` that depends on its | |
| 484 | 484 | // `GtkTreeModel`), you have to explicitly list all of them in @object_ids. | |
| 485 | - | func (x *Builder) AddObjectsFromString(BufferVar string, LengthVar int, ObjectIdsVar uintptr) (bool, error) { | |
| 485 | + | func (x *Builder) AddObjectsFromString(BufferVar string, LengthVar int, ObjectIdsVar []string) (bool, error) { | |
| 486 | 486 | var cerr *glib.Error | |
| 487 | 487 | ||
| 488 | 488 | cret := xBuilderAddObjectsFromString(x.GoPointer(), BufferVar, LengthVar, ObjectIdsVar, &cerr) | |
| @@ -422,7 +422,7 @@ func (x *Builder) AddFromString(BufferVar string, LengthVar int) (bool, error) { | |||||
| 422 | 422 | ||||
| 423 | } | 423 | } | ||
| 424 | 424 | ||||
| 425 | - | var xBuilderAddObjectsFromFile func(uintptr, string, uintptr, **glib.Error) bool | 425 | + | var xBuilderAddObjectsFromFile func(uintptr, string, []string, **glib.Error) bool |
| 426 | 426 | ||||
| 427 | // Parses a file containing a UI definition building only the | 427 | // Parses a file containing a UI definition building only the | ||
| 428 | // requested objects and merges them with the current contents | 428 | // requested objects and merges them with the current contents | ||
| @@ -435,7 +435,7 @@ var xBuilderAddObjectsFromFile func(uintptr, string, uintptr, **glib.Error) bool | |||||
| 435 | // If you are adding an object that depends on an object that is not | 435 | // If you are adding an object that depends on an object that is not | ||
| 436 | // its child (for instance a `GtkTreeView` that depends on its | 436 | // its child (for instance a `GtkTreeView` that depends on its | ||
| 437 | // `GtkTreeModel`), you have to explicitly list all of them in @object_ids. | 437 | // `GtkTreeModel`), you have to explicitly list all of them in @object_ids. | ||
| 438 | - | func (x *Builder) AddObjectsFromFile(FilenameVar string, ObjectIdsVar uintptr) (bool, error) { | 438 | + | func (x *Builder) AddObjectsFromFile(FilenameVar string, ObjectIdsVar []string) (bool, error) { |
| 439 | var cerr *glib.Error | 439 | var cerr *glib.Error | ||
| 440 | 440 | ||||
| 441 | cret := xBuilderAddObjectsFromFile(x.GoPointer(), FilenameVar, ObjectIdsVar, &cerr) | 441 | cret := xBuilderAddObjectsFromFile(x.GoPointer(), FilenameVar, ObjectIdsVar, &cerr) | ||
| @@ -446,7 +446,7 @@ func (x *Builder) AddObjectsFromFile(FilenameVar string, ObjectIdsVar uintptr) ( | |||||
| 446 | 446 | ||||
| 447 | } | 447 | } | ||
| 448 | 448 | ||||
| 449 | - | var xBuilderAddObjectsFromResource func(uintptr, string, uintptr, **glib.Error) bool | 449 | + | var xBuilderAddObjectsFromResource func(uintptr, string, []string, **glib.Error) bool |
| 450 | 450 | ||||
| 451 | // Parses a resource file containing a UI definition, building | 451 | // Parses a resource file containing a UI definition, building | ||
| 452 | // only the requested objects and merges them with the current | 452 | // only the requested objects and merges them with the current | ||
| @@ -459,7 +459,7 @@ var xBuilderAddObjectsFromResource func(uintptr, string, uintptr, **glib.Error) | |||||
| 459 | // If you are adding an object that depends on an object that is not | 459 | // If you are adding an object that depends on an object that is not | ||
| 460 | // its child (for instance a `GtkTreeView` that depends on its | 460 | // its child (for instance a `GtkTreeView` that depends on its | ||
| 461 | // `GtkTreeModel`), you have to explicitly list all of them in @object_ids. | 461 | // `GtkTreeModel`), you have to explicitly list all of them in @object_ids. | ||
| 462 | - | func (x *Builder) AddObjectsFromResource(ResourcePathVar string, ObjectIdsVar uintptr) (bool, error) { | 462 | + | func (x *Builder) AddObjectsFromResource(ResourcePathVar string, ObjectIdsVar []string) (bool, error) { |
| 463 | var cerr *glib.Error | 463 | var cerr *glib.Error | ||
| 464 | 464 | ||||
| 465 | cret := xBuilderAddObjectsFromResource(x.GoPointer(), ResourcePathVar, ObjectIdsVar, &cerr) | 465 | cret := xBuilderAddObjectsFromResource(x.GoPointer(), ResourcePathVar, ObjectIdsVar, &cerr) | ||
| @@ -470,7 +470,7 @@ func (x *Builder) AddObjectsFromResource(ResourcePathVar string, ObjectIdsVar ui | |||||
| 470 | 470 | ||||
| 471 | } | 471 | } | ||
| 472 | 472 | ||||
| 473 | - | var xBuilderAddObjectsFromString func(uintptr, string, int, uintptr, **glib.Error) bool | 473 | + | var xBuilderAddObjectsFromString func(uintptr, string, int, []string, **glib.Error) bool |
| 474 | 474 | ||||
| 475 | // Parses a string containing a UI definition, building only the | 475 | // Parses a string containing a UI definition, building only the | ||
| 476 | // requested objects and merges them with the current contents of | 476 | // requested objects and merges them with the current contents of | ||
| @@ -482,7 +482,7 @@ var xBuilderAddObjectsFromString func(uintptr, string, int, uintptr, **glib.Erro | |||||
| 482 | // If you are adding an object that depends on an object that is not | 482 | // If you are adding an object that depends on an object that is not | ||
| 483 | // its child (for instance a `GtkTreeView` that depends on its | 483 | // its child (for instance a `GtkTreeView` that depends on its | ||
| 484 | // `GtkTreeModel`), you have to explicitly list all of them in @object_ids. | 484 | // `GtkTreeModel`), you have to explicitly list all of them in @object_ids. | ||
| 485 | - | func (x *Builder) AddObjectsFromString(BufferVar string, LengthVar int, ObjectIdsVar uintptr) (bool, error) { | 485 | + | func (x *Builder) AddObjectsFromString(BufferVar string, LengthVar int, ObjectIdsVar []string) (bool, error) { |
| 486 | var cerr *glib.Error | 486 | var cerr *glib.Error | ||
| 487 | 487 | ||||
| 488 | cret := xBuilderAddObjectsFromString(x.GoPointer(), BufferVar, LengthVar, ObjectIdsVar, &cerr) | 488 | cret := xBuilderAddObjectsFromString(x.GoPointer(), BufferVar, LengthVar, ObjectIdsVar, &cerr) | ||
M v4/gtk/gtkfilechooser.go +3 -3
| @@ -52,7 +52,7 @@ import ( | |||
| 52 | 52 | type FileChooser interface { | |
| 53 | 53 | GoPointer() uintptr | |
| 54 | 54 | SetGoPointer(uintptr) | |
| 55 | - | AddChoice(IdVar string, LabelVar string, OptionsVar uintptr, OptionLabelsVar uintptr) | |
| 55 | + | AddChoice(IdVar string, LabelVar string, OptionsVar []string, OptionLabelsVar []string) | |
| 56 | 56 | AddFilter(FilterVar *FileFilter) | |
| 57 | 57 | AddShortcutFolder(FolderVar gio.File) bool | |
| 58 | 58 | GetAction() FileChooserAction | |
| @@ -98,7 +98,7 @@ func (x *FileChooserBase) SetGoPointer(ptr uintptr) { | |||
| 98 | 98 | // and you can obtain the user-selected value in the | |
| 99 | 99 | // [signal@Gtk.Dialog::response] signal handler using | |
| 100 | 100 | // [method@Gtk.FileChooser.get_choice]. | |
| 101 | - | func (x *FileChooserBase) AddChoice(IdVar string, LabelVar string, OptionsVar uintptr, OptionLabelsVar uintptr) { | |
| 101 | + | func (x *FileChooserBase) AddChoice(IdVar string, LabelVar string, OptionsVar []string, OptionLabelsVar []string) { | |
| 102 | 102 | ||
| 103 | 103 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | |
| 104 | 104 | ||
| @@ -443,7 +443,7 @@ func (x *FileChooserBase) SetSelectMultiple(SelectMultipleVar bool) { | |||
| 443 | 443 | ||
| 444 | 444 | } | |
| 445 | 445 | ||
| 446 | - | var XGtkFileChooserAddChoice func(uintptr, string, string, uintptr, uintptr) | |
| 446 | + | var XGtkFileChooserAddChoice func(uintptr, string, string, []string, []string) | |
| 447 | 447 | var XGtkFileChooserAddFilter func(uintptr, uintptr) | |
| 448 | 448 | var XGtkFileChooserAddShortcutFolder func(uintptr, uintptr, **glib.Error) bool | |
| 449 | 449 | var XGtkFileChooserGetAction func(uintptr) FileChooserAction | |
| @@ -52,7 +52,7 @@ import ( | |||||
| 52 | type FileChooser interface { | 52 | type FileChooser interface { | ||
| 53 | GoPointer() uintptr | 53 | GoPointer() uintptr | ||
| 54 | SetGoPointer(uintptr) | 54 | SetGoPointer(uintptr) | ||
| 55 | - | AddChoice(IdVar string, LabelVar string, OptionsVar uintptr, OptionLabelsVar uintptr) | 55 | + | AddChoice(IdVar string, LabelVar string, OptionsVar []string, OptionLabelsVar []string) |
| 56 | AddFilter(FilterVar *FileFilter) | 56 | AddFilter(FilterVar *FileFilter) | ||
| 57 | AddShortcutFolder(FolderVar gio.File) bool | 57 | AddShortcutFolder(FolderVar gio.File) bool | ||
| 58 | GetAction() FileChooserAction | 58 | GetAction() FileChooserAction | ||
| @@ -98,7 +98,7 @@ func (x *FileChooserBase) SetGoPointer(ptr uintptr) { | |||||
| 98 | // and you can obtain the user-selected value in the | 98 | // and you can obtain the user-selected value in the | ||
| 99 | // [signal@Gtk.Dialog::response] signal handler using | 99 | // [signal@Gtk.Dialog::response] signal handler using | ||
| 100 | // [method@Gtk.FileChooser.get_choice]. | 100 | // [method@Gtk.FileChooser.get_choice]. | ||
| 101 | - | func (x *FileChooserBase) AddChoice(IdVar string, LabelVar string, OptionsVar uintptr, OptionLabelsVar uintptr) { | 101 | + | func (x *FileChooserBase) AddChoice(IdVar string, LabelVar string, OptionsVar []string, OptionLabelsVar []string) { |
| 102 | 102 | ||||
| 103 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | 103 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | ||
| 104 | 104 | ||||
| @@ -443,7 +443,7 @@ func (x *FileChooserBase) SetSelectMultiple(SelectMultipleVar bool) { | |||||
| 443 | 443 | ||||
| 444 | } | 444 | } | ||
| 445 | 445 | ||||
| 446 | - | var XGtkFileChooserAddChoice func(uintptr, string, string, uintptr, uintptr) | 446 | + | var XGtkFileChooserAddChoice func(uintptr, string, string, []string, []string) |
| 447 | var XGtkFileChooserAddFilter func(uintptr, uintptr) | 447 | var XGtkFileChooserAddFilter func(uintptr, uintptr) | ||
| 448 | var XGtkFileChooserAddShortcutFolder func(uintptr, uintptr, **glib.Error) bool | 448 | var XGtkFileChooserAddShortcutFolder func(uintptr, uintptr, **glib.Error) bool | ||
| 449 | var XGtkFileChooserGetAction func(uintptr) FileChooserAction | 449 | var XGtkFileChooserGetAction func(uintptr) FileChooserAction | ||
M v4/gtk/gtkfilechooserdialog.go +1 -1
| @@ -374,7 +374,7 @@ func (x *FileChooserDialog) GetBuildableId() string { | |||
| 374 | 374 | // and you can obtain the user-selected value in the | |
| 375 | 375 | // [signal@Gtk.Dialog::response] signal handler using | |
| 376 | 376 | // [method@Gtk.FileChooser.get_choice]. | |
| 377 | - | func (x *FileChooserDialog) AddChoice(IdVar string, LabelVar string, OptionsVar uintptr, OptionLabelsVar uintptr) { | |
| 377 | + | func (x *FileChooserDialog) AddChoice(IdVar string, LabelVar string, OptionsVar []string, OptionLabelsVar []string) { | |
| 378 | 378 | ||
| 379 | 379 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | |
| 380 | 380 | ||
| @@ -374,7 +374,7 @@ func (x *FileChooserDialog) GetBuildableId() string { | |||||
| 374 | // and you can obtain the user-selected value in the | 374 | // and you can obtain the user-selected value in the | ||
| 375 | // [signal@Gtk.Dialog::response] signal handler using | 375 | // [signal@Gtk.Dialog::response] signal handler using | ||
| 376 | // [method@Gtk.FileChooser.get_choice]. | 376 | // [method@Gtk.FileChooser.get_choice]. | ||
| 377 | - | func (x *FileChooserDialog) AddChoice(IdVar string, LabelVar string, OptionsVar uintptr, OptionLabelsVar uintptr) { | 377 | + | func (x *FileChooserDialog) AddChoice(IdVar string, LabelVar string, OptionsVar []string, OptionLabelsVar []string) { |
| 378 | 378 | ||||
| 379 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | 379 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | ||
| 380 | 380 | ||||
M v4/gtk/gtkfilechoosernative.go +1 -1
| @@ -257,7 +257,7 @@ func (c *FileChooserNative) SetGoPointer(ptr uintptr) { | |||
| 257 | 257 | // and you can obtain the user-selected value in the | |
| 258 | 258 | // [signal@Gtk.Dialog::response] signal handler using | |
| 259 | 259 | // [method@Gtk.FileChooser.get_choice]. | |
| 260 | - | func (x *FileChooserNative) AddChoice(IdVar string, LabelVar string, OptionsVar uintptr, OptionLabelsVar uintptr) { | |
| 260 | + | func (x *FileChooserNative) AddChoice(IdVar string, LabelVar string, OptionsVar []string, OptionLabelsVar []string) { | |
| 261 | 261 | ||
| 262 | 262 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | |
| 263 | 263 | ||
| @@ -257,7 +257,7 @@ func (c *FileChooserNative) SetGoPointer(ptr uintptr) { | |||||
| 257 | // and you can obtain the user-selected value in the | 257 | // and you can obtain the user-selected value in the | ||
| 258 | // [signal@Gtk.Dialog::response] signal handler using | 258 | // [signal@Gtk.Dialog::response] signal handler using | ||
| 259 | // [method@Gtk.FileChooser.get_choice]. | 259 | // [method@Gtk.FileChooser.get_choice]. | ||
| 260 | - | func (x *FileChooserNative) AddChoice(IdVar string, LabelVar string, OptionsVar uintptr, OptionLabelsVar uintptr) { | 260 | + | func (x *FileChooserNative) AddChoice(IdVar string, LabelVar string, OptionsVar []string, OptionLabelsVar []string) { |
| 261 | 261 | ||||
| 262 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | 262 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | ||
| 263 | 263 | ||||
M v4/gtk/gtkfilechooserwidget.go +1 -1
| @@ -448,7 +448,7 @@ func (x *FileChooserWidget) GetBuildableId() string { | |||
| 448 | 448 | // and you can obtain the user-selected value in the | |
| 449 | 449 | // [signal@Gtk.Dialog::response] signal handler using | |
| 450 | 450 | // [method@Gtk.FileChooser.get_choice]. | |
| 451 | - | func (x *FileChooserWidget) AddChoice(IdVar string, LabelVar string, OptionsVar uintptr, OptionLabelsVar uintptr) { | |
| 451 | + | func (x *FileChooserWidget) AddChoice(IdVar string, LabelVar string, OptionsVar []string, OptionLabelsVar []string) { | |
| 452 | 452 | ||
| 453 | 453 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | |
| 454 | 454 | ||
| @@ -448,7 +448,7 @@ func (x *FileChooserWidget) GetBuildableId() string { | |||||
| 448 | // and you can obtain the user-selected value in the | 448 | // and you can obtain the user-selected value in the | ||
| 449 | // [signal@Gtk.Dialog::response] signal handler using | 449 | // [signal@Gtk.Dialog::response] signal handler using | ||
| 450 | // [method@Gtk.FileChooser.get_choice]. | 450 | // [method@Gtk.FileChooser.get_choice]. | ||
| 451 | - | func (x *FileChooserWidget) AddChoice(IdVar string, LabelVar string, OptionsVar uintptr, OptionLabelsVar uintptr) { | 451 | + | func (x *FileChooserWidget) AddChoice(IdVar string, LabelVar string, OptionsVar []string, OptionLabelsVar []string) { |
| 452 | 452 | ||||
| 453 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | 453 | XGtkFileChooserAddChoice(x.GoPointer(), IdVar, LabelVar, OptionsVar, OptionLabelsVar) | ||
| 454 | 454 | ||||
M v4/gtk/gtkfilefilter.go +2 -2
| @@ -163,7 +163,7 @@ func (x *FileFilter) AddSuffix(SuffixVar string) { | |||
| 163 | 163 | ||
| 164 | 164 | } | |
| 165 | 165 | ||
| 166 | - | var xFileFilterGetAttributes func(uintptr) uintptr | |
| 166 | + | var xFileFilterGetAttributes func(uintptr) []string | |
| 167 | 167 | ||
| 168 | 168 | // Gets the attributes that need to be filled in for the `GFileInfo` | |
| 169 | 169 | // passed to this filter. | |
| @@ -171,7 +171,7 @@ var xFileFilterGetAttributes func(uintptr) uintptr | |||
| 171 | 171 | // This function will not typically be used by applications; | |
| 172 | 172 | // it is intended principally for use in the implementation | |
| 173 | 173 | // of `GtkFileChooser`. | |
| 174 | - | func (x *FileFilter) GetAttributes() uintptr { | |
| 174 | + | func (x *FileFilter) GetAttributes() []string { | |
| 175 | 175 | ||
| 176 | 176 | cret := xFileFilterGetAttributes(x.GoPointer()) | |
| 177 | 177 | return cret | |
| @@ -163,7 +163,7 @@ func (x *FileFilter) AddSuffix(SuffixVar string) { | |||||
| 163 | 163 | ||||
| 164 | } | 164 | } | ||
| 165 | 165 | ||||
| 166 | - | var xFileFilterGetAttributes func(uintptr) uintptr | 166 | + | var xFileFilterGetAttributes func(uintptr) []string |
| 167 | 167 | ||||
| 168 | // Gets the attributes that need to be filled in for the `GFileInfo` | 168 | // Gets the attributes that need to be filled in for the `GFileInfo` | ||
| 169 | // passed to this filter. | 169 | // passed to this filter. | ||
| @@ -171,7 +171,7 @@ var xFileFilterGetAttributes func(uintptr) uintptr | |||||
| 171 | // This function will not typically be used by applications; | 171 | // This function will not typically be used by applications; | ||
| 172 | // it is intended principally for use in the implementation | 172 | // it is intended principally for use in the implementation | ||
| 173 | // of `GtkFileChooser`. | 173 | // of `GtkFileChooser`. | ||
| 174 | - | func (x *FileFilter) GetAttributes() uintptr { | 174 | + | func (x *FileFilter) GetAttributes() []string { |
| 175 | 175 | ||||
| 176 | cret := xFileFilterGetAttributes(x.GoPointer()) | 176 | cret := xFileFilterGetAttributes(x.GoPointer()) | ||
| 177 | return cret | 177 | return cret | ||
M v4/gtk/gtkicontheme.go +2 -2
| @@ -482,7 +482,7 @@ func (x *IconTheme) LookupByGicon(IconVar gio.Icon, SizeVar int, ScaleVar int, D | |||
| 482 | 482 | return cls | |
| 483 | 483 | } | |
| 484 | 484 | ||
| 485 | - | var xIconThemeLookupIcon func(uintptr, string, uintptr, int, int, TextDirection, IconLookupFlags) uintptr | |
| 485 | + | var xIconThemeLookupIcon func(uintptr, string, []string, int, int, TextDirection, IconLookupFlags) uintptr | |
| 486 | 486 | ||
| 487 | 487 | // Looks up a named icon for a desired size and window scale, | |
| 488 | 488 | // returning a `GtkIconPaintable`. | |
| @@ -500,7 +500,7 @@ var xIconThemeLookupIcon func(uintptr, string, uintptr, int, int, TextDirection, | |||
| 500 | 500 | // Note that you probably want to listen for icon theme changes and | |
| 501 | 501 | // update the icon. This is usually done by overriding the | |
| 502 | 502 | // GtkWidgetClass.css-changed() function. | |
| 503 | - | func (x *IconTheme) LookupIcon(IconNameVar string, FallbacksVar uintptr, SizeVar int, ScaleVar int, DirectionVar TextDirection, FlagsVar IconLookupFlags) *IconPaintable { | |
| 503 | + | func (x *IconTheme) LookupIcon(IconNameVar string, FallbacksVar []string, SizeVar int, ScaleVar int, DirectionVar TextDirection, FlagsVar IconLookupFlags) *IconPaintable { | |
| 504 | 504 | var cls *IconPaintable | |
| 505 | 505 | ||
| 506 | 506 | cret := xIconThemeLookupIcon(x.GoPointer(), IconNameVar, FallbacksVar, SizeVar, ScaleVar, DirectionVar, FlagsVar) | |
| @@ -482,7 +482,7 @@ func (x *IconTheme) LookupByGicon(IconVar gio.Icon, SizeVar int, ScaleVar int, D | |||||
| 482 | return cls | 482 | return cls | ||
| 483 | } | 483 | } | ||
| 484 | 484 | ||||
| 485 | - | var xIconThemeLookupIcon func(uintptr, string, uintptr, int, int, TextDirection, IconLookupFlags) uintptr | 485 | + | var xIconThemeLookupIcon func(uintptr, string, []string, int, int, TextDirection, IconLookupFlags) uintptr |
| 486 | 486 | ||||
| 487 | // Looks up a named icon for a desired size and window scale, | 487 | // Looks up a named icon for a desired size and window scale, | ||
| 488 | // returning a `GtkIconPaintable`. | 488 | // returning a `GtkIconPaintable`. | ||
| @@ -500,7 +500,7 @@ var xIconThemeLookupIcon func(uintptr, string, uintptr, int, int, TextDirection, | |||||
| 500 | // Note that you probably want to listen for icon theme changes and | 500 | // Note that you probably want to listen for icon theme changes and | ||
| 501 | // update the icon. This is usually done by overriding the | 501 | // update the icon. This is usually done by overriding the | ||
| 502 | // GtkWidgetClass.css-changed() function. | 502 | // GtkWidgetClass.css-changed() function. | ||
| 503 | - | func (x *IconTheme) LookupIcon(IconNameVar string, FallbacksVar uintptr, SizeVar int, ScaleVar int, DirectionVar TextDirection, FlagsVar IconLookupFlags) *IconPaintable { | 503 | + | func (x *IconTheme) LookupIcon(IconNameVar string, FallbacksVar []string, SizeVar int, ScaleVar int, DirectionVar TextDirection, FlagsVar IconLookupFlags) *IconPaintable { |
| 504 | var cls *IconPaintable | 504 | var cls *IconPaintable | ||
| 505 | 505 | ||||
| 506 | cret := xIconThemeLookupIcon(x.GoPointer(), IconNameVar, FallbacksVar, SizeVar, ScaleVar, DirectionVar, FlagsVar) | 506 | cret := xIconThemeLookupIcon(x.GoPointer(), IconNameVar, FallbacksVar, SizeVar, ScaleVar, DirectionVar, FlagsVar) | ||
M v4/gtk/gtkscalebutton.go +4 -4
| @@ -33,13 +33,13 @@ func ScaleButtonNewFromInternalPtr(ptr uintptr) *ScaleButton { | |||
| 33 | 33 | return cls | |
| 34 | 34 | } | |
| 35 | 35 | ||
| 36 | - | var xNewScaleButton func(float64, float64, float64, uintptr) uintptr | |
| 36 | + | var xNewScaleButton func(float64, float64, float64, []string) uintptr | |
| 37 | 37 | ||
| 38 | 38 | // Creates a `GtkScaleButton`. | |
| 39 | 39 | // | |
| 40 | 40 | // The new scale button has a range between @min and @max, | |
| 41 | 41 | // with a stepping of @step. | |
| 42 | - | func NewScaleButton(MinVar float64, MaxVar float64, StepVar float64, IconsVar uintptr) *Widget { | |
| 42 | + | func NewScaleButton(MinVar float64, MaxVar float64, StepVar float64, IconsVar []string) *Widget { | |
| 43 | 43 | var cls *Widget | |
| 44 | 44 | ||
| 45 | 45 | cret := xNewScaleButton(MinVar, MaxVar, StepVar, IconsVar) | |
| @@ -144,10 +144,10 @@ func (x *ScaleButton) SetAdjustment(AdjustmentVar *Adjustment) { | |||
| 144 | 144 | ||
| 145 | 145 | } | |
| 146 | 146 | ||
| 147 | - | var xScaleButtonSetIcons func(uintptr, uintptr) | |
| 147 | + | var xScaleButtonSetIcons func(uintptr, []string) | |
| 148 | 148 | ||
| 149 | 149 | // Sets the icons to be used by the scale button. | |
| 150 | - | func (x *ScaleButton) SetIcons(IconsVar uintptr) { | |
| 150 | + | func (x *ScaleButton) SetIcons(IconsVar []string) { | |
| 151 | 151 | ||
| 152 | 152 | xScaleButtonSetIcons(x.GoPointer(), IconsVar) | |
| 153 | 153 | ||
| @@ -33,13 +33,13 @@ func ScaleButtonNewFromInternalPtr(ptr uintptr) *ScaleButton { | |||||
| 33 | return cls | 33 | return cls | ||
| 34 | } | 34 | } | ||
| 35 | 35 | ||||
| 36 | - | var xNewScaleButton func(float64, float64, float64, uintptr) uintptr | 36 | + | var xNewScaleButton func(float64, float64, float64, []string) uintptr |
| 37 | 37 | ||||
| 38 | // Creates a `GtkScaleButton`. | 38 | // Creates a `GtkScaleButton`. | ||
| 39 | // | 39 | // | ||
| 40 | // The new scale button has a range between @min and @max, | 40 | // The new scale button has a range between @min and @max, | ||
| 41 | // with a stepping of @step. | 41 | // with a stepping of @step. | ||
| 42 | - | func NewScaleButton(MinVar float64, MaxVar float64, StepVar float64, IconsVar uintptr) *Widget { | 42 | + | func NewScaleButton(MinVar float64, MaxVar float64, StepVar float64, IconsVar []string) *Widget { |
| 43 | var cls *Widget | 43 | var cls *Widget | ||
| 44 | 44 | ||||
| 45 | cret := xNewScaleButton(MinVar, MaxVar, StepVar, IconsVar) | 45 | cret := xNewScaleButton(MinVar, MaxVar, StepVar, IconsVar) | ||
| @@ -144,10 +144,10 @@ func (x *ScaleButton) SetAdjustment(AdjustmentVar *Adjustment) { | |||||
| 144 | 144 | ||||
| 145 | } | 145 | } | ||
| 146 | 146 | ||||
| 147 | - | var xScaleButtonSetIcons func(uintptr, uintptr) | 147 | + | var xScaleButtonSetIcons func(uintptr, []string) |
| 148 | 148 | ||||
| 149 | // Sets the icons to be used by the scale button. | 149 | // Sets the icons to be used by the scale button. | ||
| 150 | - | func (x *ScaleButton) SetIcons(IconsVar uintptr) { | 150 | + | func (x *ScaleButton) SetIcons(IconsVar []string) { |
| 151 | 151 | ||||
| 152 | xScaleButtonSetIcons(x.GoPointer(), IconsVar) | 152 | xScaleButtonSetIcons(x.GoPointer(), IconsVar) | ||
| 153 | 153 | ||||
M v4/gtk/gtkwidget.go +2 -2
| @@ -2415,11 +2415,11 @@ func (x *Widget) SetChildVisible(ChildVisibleVar bool) { | |||
| 2415 | 2415 | ||
| 2416 | 2416 | } | |
| 2417 | 2417 | ||
| 2418 | - | var xWidgetSetCssClasses func(uintptr, uintptr) | |
| 2418 | + | var xWidgetSetCssClasses func(uintptr, []string) | |
| 2419 | 2419 | ||
| 2420 | 2420 | // Clear all style classes applied to @widget | |
| 2421 | 2421 | // and replace them with @classes. | |
| 2422 | - | func (x *Widget) SetCssClasses(ClassesVar uintptr) { | |
| 2422 | + | func (x *Widget) SetCssClasses(ClassesVar []string) { | |
| 2423 | 2423 | ||
| 2424 | 2424 | xWidgetSetCssClasses(x.GoPointer(), ClassesVar) | |
| 2425 | 2425 | ||
| @@ -2415,11 +2415,11 @@ func (x *Widget) SetChildVisible(ChildVisibleVar bool) { | |||||
| 2415 | 2415 | ||||
| 2416 | } | 2416 | } | ||
| 2417 | 2417 | ||||
| 2418 | - | var xWidgetSetCssClasses func(uintptr, uintptr) | 2418 | + | var xWidgetSetCssClasses func(uintptr, []string) |
| 2419 | 2419 | ||||
| 2420 | // Clear all style classes applied to @widget | 2420 | // Clear all style classes applied to @widget | ||
| 2421 | // and replace them with @classes. | 2421 | // and replace them with @classes. | ||
| 2422 | - | func (x *Widget) SetCssClasses(ClassesVar uintptr) { | 2422 | + | func (x *Widget) SetCssClasses(ClassesVar []string) { |
| 2423 | 2423 | ||||
| 2424 | xWidgetSetCssClasses(x.GoPointer(), ClassesVar) | 2424 | xWidgetSetCssClasses(x.GoPointer(), ClassesVar) | ||
| 2425 | 2425 | ||||