mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
widgetpath: Use ref/unref in boxed function
This way we avoid lots of copying when using widget paths as properties. Keeping this as a separate patch so bugs where people were modifying a structure they shouldn't are easily visible.
This commit is contained in:
parent
03eb4c38c9
commit
f0e5b57699
@ -82,7 +82,7 @@
|
||||
**/
|
||||
|
||||
G_DEFINE_BOXED_TYPE (GtkWidgetPath, gtk_widget_path,
|
||||
gtk_widget_path_copy, gtk_widget_path_free)
|
||||
gtk_widget_path_ref, gtk_widget_path_unref)
|
||||
|
||||
|
||||
typedef struct GtkPathElement GtkPathElement;
|
||||
|
Loading…
Reference in New Issue
Block a user