Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
E.Z. Hart 505a855cad
Move GetNativeSize to PlatformServices, remove IPlatform (#4235) 2018-10-31 15:12:22 -06:00
Andoni Morales Alastruey 491947606d [GTK] Fix several memory leaks in the GTK backend (#4112)
* [GTK] Don't recreate master or detail if it didn't change

* [GTK] Fix several memory leaks using the Destroy pattern

Gtk objects must be disposed using the Destroy function that will
automatically iterate over the children and destroy them too:
https://developer.gnome.org/gtk2/stable/GtkWidget.html#gtk-widget-destroy

The gtk-sharp bindings discourage the use of Dispose and don't even call
the base class, leaving it without effect:
https://github.com/mono/gtk-sharp/blob/gtk-sharp-2-12-branch/gtk/Object.custom#L98

In the Controls, that inherits directly from native Gtk objects, the
overrides of the Dispose function are changed to override the Destroy
function.  In the Renderers, that inherit from VisualElementRenderer,
the Destroy funtion is called in the dispose implementation so
subclasses only have to override Dispose (bool disposing) as they do
now.

* [GTK] Don't recreate the toolbar on each change

* [GTK] Fix leak connecting to the PropertyChanged event twice
2018-10-30 11:06:47 -06:00
Andoni Morales Alastruey 717db0dba1 [GTK] Fix transparent background in visual elements (#3744) 2018-10-04 18:24:22 -07:00
Andoni Morales Alastruey b5b9404bda [GTK] Fix visibility of hidden pages in the stack (#3904)
When navigating to a new page, we should hide the previous
content and show the new one so that the previous page
renderer is not taken in account for redraws and resizes
2018-10-02 12:45:16 -06:00
Andoni Morales Alastruey 94747d21d7 Fix spaces to tabs indentation to match the coding style (#3745) 2018-09-20 12:11:20 -07:00
Frank A. Krueger e07e446a27 Use GetHandlerForObject instead of GetHandler (#1713)
* Use GetHandlerForObject instead of GetHandler

This allows IReflectableTypes to be used.

* Update Registrar docs

- fixes #1712
2018-01-30 09:06:35 +01:00
Javier Suárez Ruiz 8e41144700 Xamarin.Forms.Platform.GTK 2017-09-28 13:52:27 +02:00