Commit graph

50 commits

Author SHA1 Message Date
Sebastien Pouliot fd3eb0c839 Add FileChooserDialog to samples app
This shows the original issue on macOS/arm64 (if the rest of the PR is
not applied)

```
GLib.GException: Invalid byte sequence in conversion input
   at GLib.Marshaller.FilenamePtrToString(IntPtr ptr) in /Users/poupou/git/external/GtkSharp/Source/Libs/GLibSharp/Marshaller.cs:line 62
   at GLib.Marshaller.FilenamePtrToStringGFree(IntPtr ptr) in /Users/poupou/git/external/GtkSharp/Source/Libs/GLibSharp/Marshaller.cs:line 68
   at Gtk.FileChooserDialog.get_Filename() in /Users/poupou/git/external/GtkSharp/Source/Libs/GtkSharp/Generated/Gtk/FileChooserDialog.cs:line 222
   at Samples.FileChooserDialogDemo.OnPressed() in /Users/poupou/git/external/GtkSharp/Source/Samples/Sections/Dialogs/FileChooserDialogSection.cs:line 28
   at Gtk.Button.Pressed_cb(IntPtr inst) in /Users/poupou/git/external/GtkSharp/Source/Libs/GtkSharp/Generated/Gtk/Button.cs:line 388
   at GLib.ExceptionManager.RaiseUnhandledException(Exception e, Boolean is_terminal) in /Users/poupou/git/external/GtkSharp/Source/Libs/GLibSharp/ExceptionManager.cs:line 58
   at Gtk.Button.Pressed_cb(IntPtr inst) in /Users/poupou/git/external/GtkSharp/Source/Libs/GtkSharp/Generated/Gtk/Button.cs:line 388
   at Gtk.Application.Run() in /Users/poupou/git/external/GtkSharp/Source/Libs/GtkSharp/Application.cs:line 115
   at Samples.Program.Main(String[] args) in /Users/poupou/git/external/GtkSharp/Source/Samples/Program.cs:line 44
```
2022-04-24 11:18:36 -04:00
zii-dmg 0c5bd3f471
Fixed glib source double removal (#327)
Fixed glib source double removal then using Source.Remove (Timeout.Remove, Idle.Remove).
I don't know if fix is correct or safe, but it solves problem that you can test in TimerDemo section from samples.

Repro:
If on Windows you should enable console in samples: <OutputType>Exe</OutputType>
Go to TimerDemo section and press buttons:

1. Add timer
2. Remove timer by handler
3. GC - no error in console

1. Add timer
2. Remove timer
3. GC - error in console "GLib-CRITICAL **: 20:29:41.579: Source ID 123 was not found when attempting to remove it"
2022-01-27 21:49:10 +01:00
dmg afc7ab450b Fixed containers child properties
* Fixed marshaling for reading child properties.
* Enabled child properties for Box, Grid, Stack in api xml.
* Added sample/test for using child properties (ChildPropertiesSection).
2022-01-25 19:41:30 +01:00
dmg 7ff80bcc8f Fixed sample for ListStore spinner
Spinner was not spining - should use SetValue, not SetValues.
Also fixed sln - VS2019 not want to open sln by double click in explorer - added empty line.
Also fixed sample project - VS2019 not showing all sources.
2022-01-25 19:41:09 +01:00
Andrii Kurdiumov 84f337b046
Update to .NET 6 (#315)
* Update to .NET 6

I update not only samples, but also codegen tools, because .NET 5 is not LTS and in 4 month would be out

Closes #306

* Add .NET 6.0 support to actual templates

* Dont forget about FSharp and VB.NET

* Revert choice option in parameters
2022-01-25 19:24:27 +01:00
Igor Vornovskii 1add3d8868 Implemented Editable Cells from gtk3-demo 2022-01-11 15:11:08 +01:00
Igor Vornovskii e82b07ede1 Implemented List Store from gtk3-demo 2022-01-11 15:11:08 +01:00
lytico 69531abb9c Samples.csproj: WebviewSection: check for WebKit.Global.IsSupported 2021-07-20 01:52:18 +02:00
lytico b56ef3b246
Merge pull request #271 from lytico/lytico/webkit2
Webkit2 -Support
2021-07-20 01:31:41 +02:00
lytico 48e2c06649 Samples.csproj: WebviewSection.cs: track api changes for WebView2 2021-07-20 01:24:53 +02:00
lytico 6d40ae2437 Samples.csproj: add WebkitGtkSharp - sample 2021-07-19 18:11:36 +02:00
dmg 110d783540 Added TreeView sample
Features:
* Sort on header click.
* Add, edit, remove value in store (name column).
* Children items.
* Handlers for store events.
2021-06-20 14:18:34 +03:00
lytico b6b2183954 PixbufSection.cs: ajdust writetestfile to work on windows 2021-03-18 21:04:37 +01:00
lytico c4da085925 add test for https://github.com/GtkSharp/GtkSharp/issues/226 2021-03-18 19:01:48 +01:00
Harry 7f5e81cf47
Bump up dependencies (#221) 2021-03-07 12:31:19 +01:00
Cameron White 7d5190865e Add a simple demo for using Gdk.Seat to query the mouse position. 2021-01-08 22:47:47 +01:00
harry-cpp be0a863b50
Rename SourceView > GtkSourceSharp 2020-07-22 19:32:38 +02:00
Benjamin Quinn c3f768c537 Update SourceView to return SourceView.Buffer
Add syntax highlighting to sample application.
2020-07-13 21:11:17 -04:00
Drew Holzworth 6d3c0cf744
Changed sample project to show line numbers in sourceview
Just to make it a bit more obvious that the widget is a SourceView and
not a TextView.
2020-07-13 13:04:02 +10:00
Drew Holzworth 5f27d9f903
Changed SourceView namespace to GtkSource. 2020-07-13 10:02:59 +10:00
Drew Holzworth 865bd0dac4
Changed samples project to show code in sourceview. 2020-07-07 10:08:21 +10:00
cra0zy 884b2a473a minnor fixes 2020-05-18 20:20:54 +02:00
lytico 87bdffacc7 Samples: add CustomCellRenderer, adopted from https://github.com/mono/gtk-sharp/blob/master/sample/CustomCellRenderer.cs 2020-04-21 18:51:12 +02:00
Harry 7054da77af
Merge pull request #151 from lytico/lytico_overridechain
Fix overide chain
2020-04-16 21:49:54 +02:00
lytico fa5cf6b85e Samples: add ImageDrawn-Widget to test the override-chain 2020-04-06 22:42:35 +02:00
lytico 926062eb69 Samples: add PolarFixed-Sample 2020-04-06 22:01:49 +02:00
Css-IanM 187ea11809 Add Range Section (#120)
* Add Range Examples

* use var and cleanup
2019-11-22 19:21:22 +01:00
awittaker b23b9f72c5
[Samples] New DrawingArea sample 2019-07-15 10:58:36 +01:00
Pedro Larouca ff82c2ab4a [Samples] applied fix proposal 2018-03-21 22:50:28 +00:00
Pedro Larouca ed53817b99 [Samples] ComboBox samples, still missing some major combo features. 2018-03-21 02:27:44 +00:00
Pedro Larouca 9366140544 [Samples] fix pulse progressbar comment on code 2018-03-21 02:26:32 +00:00
Pedro Larouca 178b18aaeb [Samples] Fix the completion entry code, Matchfunc was not correctly used. Added insensitive entry sample. 2018-03-21 02:25:53 +00:00
Pedro Larouca eec217a5c5 [Samples] some more widgets (#13)
[Samples] Label, LevelBar, ProgressBar and Spinner sections
2018-01-29 14:39:29 +01:00
cra0zy 7c9efe3fe6 [Samples] Update section name handling 2018-01-27 21:47:02 +01:00
Pedro Larouca bc8aead471 Separeted widgets into files 2018-01-27 19:12:24 +00:00
Pedro Larouca 18f4b191fd Some more buttons 2018-01-27 03:44:15 +00:00
Pedro Larouca 5f76dca449 [Samples] Entry code cleanup 2018-01-26 00:33:32 +00:00
Harry 09c0ee598e
Merge pull request #6 from GtkSharp/setvisiblefalse
[Samples] Hide embedded resources
2018-01-26 01:02:17 +01:00
cra0zy d4209c3674 [Samples] Hide embedded resources 2018-01-26 00:55:45 +01:00
Harry 94de43eeb8
Merge pull request #5 from GtkSharp/samplesreadme
Release samples to public domain
2018-01-26 00:44:32 +01:00
Pedro Larouca 1e814045f2 [Samples] Entry demo - part2 (#4)
[Samples] More entry demos
2018-01-26 00:43:55 +01:00
cra0zy cb00498693 Release samples to public domain 2018-01-26 00:13:36 +01:00
Pedro Larouca d511aa2672 [Samples] Entry demo (#2)
[Samples] Add entry section
2018-01-23 15:15:17 +01:00
cra0zy 9774c66a68 [Samples] Add code viewing 2018-01-21 20:44:00 +01:00
cra0zy 687b070ea2 [Samples] Setup more of base + add button examples 2018-01-21 19:54:58 +01:00
cra0zy 69716243b9 [Samples] Setup ApplicationOutput for catching events 2018-01-21 00:40:47 +01:00
cra0zy 31e120a9de Setup Samples base 2018-01-20 20:09:27 +01:00
cra0zy a224a9e161 Fix up more of the residual errors that came with the switch 2018-01-19 01:29:05 +01:00
cra0zy af97186201 Reorganize the build system a bit 2018-01-18 20:41:31 +01:00
cra0zy 9cc0767772 Setup samples base 2018-01-18 20:41:03 +01:00