zii-dmg

Results 21 comments of zii-dmg

System.Timers.Timer elapsed is invoked on thread pool, you can't access gtk from not main thread. Use `Gtk.Application.Invoke` to move to gtk main thread: ```csharp timer.Elapsed += (o, a) => {...

If you using latest version and Gtk.Builder you should change getting handle from this: ```csharp private MainWindow(Builder builder) : base(builder.GetObject("MainWindow").Handle) ``` to this: ```csharp private MainWindow(Builder builder) : base(builder.GetRawOwnedObject("MainWindow")) ```

Isn't crash is because memory double free? I thought latest code fixed something so we should not call `GetObject` for toplevels. I don't understand gobject memory model (floating, toggleref, normal...

Create some windows (toplevel), not save managed reference to them, show them and close them by 'X' button, then call garbage collection - get access violation or glib assertion 'g_object_remove_toggle_ref:...

I don't understand much but this commit https://github.com/zii-dmg/GtkSharp/commit/8b7240b4d80e94e2a2d312ca39915f45bad55eac fixes above code crash. But maybe introduces memory leak?

This GtkSharp doesn't have xml documentation. Don't know where tooltip text comes from. Are you sure you are using the [this nuget](https://www.nuget.org/packages/GtkSharp/) package? Or it is some bug in Visual...

Strange, commit https://github.com/GtkSharp/GtkSharp/commit/f43292c19c9cfb18a6b495f2fba530be221617ff commented `UnmanagedFunctionPointer` generation in `CallbackGen.cs` although in other places it was added.

I downloaded latest msys2 and `mingw-w64-i686-gtk3` and `mingw-w64-i686-gtksourceview4` packages. Added `msys64-install-dir\mingw32\bin` to `PATH` environment variable so .NET can find GTK libraries. Added section to Samples project with TreeView, TreeStore, events...

Sample pull request #263. But you need manually change target platform to `x86` in project properties to test GTK x86.

Can't reproduce with this code: ```csharp var store = new ListStore(typeof(int), typeof(string), typeof(Gdk.Pixbuf)); store.AppendValues(1, "Item", null); ``` I am using Windows 10 21H1 x64, .NET platform x86, target framework net5.0....