summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-09-15 17:05:30 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-09-15 17:05:30 +0200
commit78a5ac09f8071a5d98eecf946d615652cc435c18 (patch)
tree33d2fc9a06e432307fca9e2c90f9f8513541de8f
parent9622511df0ee3fed5d87609ff04ffb515fc11bec (diff)
elementary: convert to new ownership
-rw-r--r--src/lib/elementary/efl_config_global.eo4
-rw-r--r--src/lib/elementary/efl_ui_focus_manager.eo2
-rw-r--r--src/lib/elementary/efl_ui_win.eo2
-rw-r--r--src/lib/elementary/elm_box.eo2
-rw-r--r--src/lib/elementary/elm_dayselector.eo2
-rw-r--r--src/lib/elementary/elm_entry.eo2
-rw-r--r--src/lib/elementary/elm_gengrid.eo2
-rw-r--r--src/lib/elementary/elm_gengrid_item.eo2
-rw-r--r--src/lib/elementary/elm_genlist.eo4
-rw-r--r--src/lib/elementary/elm_genlist_item.eo2
-rw-r--r--src/lib/elementary/elm_grid.eo2
-rw-r--r--src/lib/elementary/elm_interface_atspi_accessible.eo4
-rw-r--r--src/lib/elementary/elm_interface_atspi_action.eo2
-rw-r--r--src/lib/elementary/elm_interface_atspi_text.eo12
-rw-r--r--src/lib/elementary/elm_naviframe.eo2
-rw-r--r--src/lib/elementary/elm_web.eo4
-rw-r--r--src/lib/elementary/elm_widget_item.eo2
17 files changed, 26 insertions, 26 deletions
diff --git a/src/lib/elementary/efl_config_global.eo b/src/lib/elementary/efl_config_global.eo
index 83edbeefe1..a28f3fe020 100644
--- a/src/lib/elementary/efl_config_global.eo
+++ b/src/lib/elementary/efl_config_global.eo
@@ -50,7 +50,7 @@ class Efl.Config.Global (Efl.Object, Efl.Config)
50 hidden: bool @optional; [[If $true, gets the full list of profiles, 50 hidden: bool @optional; [[If $true, gets the full list of profiles,
51 including those stored in hidden files.]] 51 including those stored in hidden files.]]
52 } 52 }
53 return: free(own(iterator<string>), eina_iterator_free); [[Iterator to profiles]] 53 return: iterator<string> @owned; [[Iterator to profiles]]
54 } 54 }
55 profile_exists { 55 profile_exists {
56 [[Returns whether a profile exists or not.]] 56 [[Returns whether a profile exists or not.]]
@@ -66,7 +66,7 @@ class Efl.Config.Global (Efl.Object, Efl.Config)
66 is_user: bool; [[$true to lookup for a user profile or $false for 66 is_user: bool; [[$true to lookup for a user profile or $false for
67 a system one.]] 67 a system one.]]
68 } 68 }
69 return: own(string); [[Directory of the profile, free after use.]] 69 return: string @owned; [[Directory of the profile, free after use.]]
70 } 70 }
71 profile_derived_add @protected { 71 profile_derived_add @protected {
72 [[Add a new profile of the given name to be derived from the current 72 [[Add a new profile of the given name to be derived from the current
diff --git a/src/lib/elementary/efl_ui_focus_manager.eo b/src/lib/elementary/efl_ui_focus_manager.eo
index b2265d4b3c..62142e3a1d 100644
--- a/src/lib/elementary/efl_ui_focus_manager.eo
+++ b/src/lib/elementary/efl_ui_focus_manager.eo
@@ -124,7 +124,7 @@ interface Efl.Ui.Focus.Manager {
124 params { 124 params {
125 child : Efl.Ui.Focus.Object; [[The child object to inspect.]] 125 child : Efl.Ui.Focus.Object; [[The child object to inspect.]]
126 } 126 }
127 return : own(ptr(Efl.Ui.Focus.Relations)); [[The list of relations 127 return : ptr(Efl.Ui.Focus.Relations) @owned; [[The list of relations
128 starting from $child.]] 128 starting from $child.]]
129 } 129 }
130 logical_end { 130 logical_end {
diff --git a/src/lib/elementary/efl_ui_win.eo b/src/lib/elementary/efl_ui_win.eo
index e5bda283e1..6fd70db5f0 100644
--- a/src/lib/elementary/efl_ui_win.eo
+++ b/src/lib/elementary/efl_ui_win.eo
@@ -368,7 +368,7 @@ class Efl.Ui.Win (Elm.Widget, Efl.Canvas, Efl.Access.Window,
368 type @Efl.Canvas.Image or @Efl.Ui.Image are allowed. 368 type @Efl.Canvas.Image or @Efl.Ui.Image are allowed.
369 ]] 369 ]]
370 values { 370 values {
371 icon: own(Efl.Canvas.Object) @nullable; 371 icon: Efl.Canvas.Object @owned @nullable;
372 [[The image object to use for an icon.]] 372 [[The image object to use for an icon.]]
373 } 373 }
374 } 374 }
diff --git a/src/lib/elementary/elm_box.eo b/src/lib/elementary/elm_box.eo
index 0269d84945..93b0ca81e0 100644
--- a/src/lib/elementary/elm_box.eo
+++ b/src/lib/elementary/elm_box.eo
@@ -102,7 +102,7 @@ class Elm.Box (Elm.Widget)
102 You must free this list with eina_list_free() once you are done with it. 102 You must free this list with eina_list_free() once you are done with it.
103 103
104 ]] 104 ]]
105 return: free(own(list<Efl.Canvas.Object>), eina_list_free) @warn_unused; [[List of children]] 105 return: list<Efl.Canvas.Object> @owned @warn_unused; [[List of children]]
106 } 106 }
107 } 107 }
108 pack_end { 108 pack_end {
diff --git a/src/lib/elementary/elm_dayselector.eo b/src/lib/elementary/elm_dayselector.eo
index 432ebe6269..97b12d2ffd 100644
--- a/src/lib/elementary/elm_dayselector.eo
+++ b/src/lib/elementary/elm_dayselector.eo
@@ -123,7 +123,7 @@ class Elm.Dayselector (Efl.Ui.Layout)
123 123
124 @since 1.8 124 @since 1.8
125 ]] 125 ]]
126 return: own(list<own(stringshare)>) @warn_unused; [[A list of seven strings to be used as weekday names.]] 126 return: list<stringshare @owned> @owned @warn_unused; [[A list of seven strings to be used as weekday names.]]
127 } 127 }
128 day_selected_set { 128 day_selected_set {
129 [[Set the state of given Dayselector_Day. 129 [[Set the state of given Dayselector_Day.
diff --git a/src/lib/elementary/elm_entry.eo b/src/lib/elementary/elm_entry.eo
index 70d5eb615a..11f2af6be9 100644
--- a/src/lib/elementary/elm_entry.eo
+++ b/src/lib/elementary/elm_entry.eo
@@ -632,7 +632,7 @@ class Elm.Entry (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
632 Only the text is returned, any format that may exist will not be part 632 Only the text is returned, any format that may exist will not be part
633 of the return value. You must free the string when done with \@ref free. 633 of the return value. You must free the string when done with \@ref free.
634 ]] 634 ]]
635 return: own(ptr(char)) @warn_unused; [[Character]] 635 return: string @owned @warn_unused; [[Character]]
636 } 636 }
637 } 637 }
638 @property selection { 638 @property selection {
diff --git a/src/lib/elementary/elm_gengrid.eo b/src/lib/elementary/elm_gengrid.eo
index 54aaf5a817..e413912373 100644
--- a/src/lib/elementary/elm_gengrid.eo
+++ b/src/lib/elementary/elm_gengrid.eo
@@ -302,7 +302,7 @@ class Elm.Gengrid (Efl.Ui.Layout, Elm.Interface_Scrollable,
302 in the list are only valid so long as those items are not 302 in the list are only valid so long as those items are not
303 deleted or the gengrid is not deleted. 303 deleted or the gengrid is not deleted.
304 ]] 304 ]]
305 return: free(own(list<ptr(Elm_Gen_Item)>), eina_list_free) @warn_unused; [[ 305 return: list<ptr(Elm_Gen_Item)> @owned @warn_unused; [[
306 The list of realized items or $null if none are realized. 306 The list of realized items or $null if none are realized.
307 ]] 307 ]]
308 } 308 }
diff --git a/src/lib/elementary/elm_gengrid_item.eo b/src/lib/elementary/elm_gengrid_item.eo
index 42313eba58..dc63ed3333 100644
--- a/src/lib/elementary/elm_gengrid_item.eo
+++ b/src/lib/elementary/elm_gengrid_item.eo
@@ -234,7 +234,7 @@ class Elm.Gengrid.Item(Elm.Widget.Item)
234 @since 1.18 234 @since 1.18
235 ]] 235 ]]
236 params { 236 params {
237 @out l: own(list<own(Efl.Canvas.Object)>); [[The contents list to return.]] 237 @out l: list<Efl.Canvas.Object @owned> @owned; [[The contents list to return.]]
238 } 238 }
239 } 239 }
240 } 240 }
diff --git a/src/lib/elementary/elm_genlist.eo b/src/lib/elementary/elm_genlist.eo
index 1fc8fc30ff..6f98d31b3c 100644
--- a/src/lib/elementary/elm_genlist.eo
+++ b/src/lib/elementary/elm_genlist.eo
@@ -305,7 +305,7 @@ class Elm.Genlist (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
305 item pointers in the list are only valid so long as those 305 item pointers in the list are only valid so long as those
306 items are not deleted or the genlist is not deleted. 306 items are not deleted or the genlist is not deleted.
307 ]] 307 ]]
308 return: free(own(list<ptr(Elm_Gen_Item)>), eina_list_free) @warn_unused; [[List of realized items]] 308 return: list<ptr(Elm_Gen_Item)> @owned @warn_unused; [[List of realized items]]
309 } 309 }
310 } 310 }
311 @property selected_items { 311 @property selected_items {
@@ -425,7 +425,7 @@ class Elm.Genlist (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
425 Return NULL if filter is not set. Application must take care 425 Return NULL if filter is not set. Application must take care
426 of the case while calling the API. Must be freed after use. 426 of the case while calling the API. Must be freed after use.
427 ]] 427 ]]
428 return: free(own(iterator<ptr(Elm_Gen_Item)>), eina_iterator_free); [[Iterator on genlist]] 428 return: iterator<ptr(Elm_Gen_Item)> @owned; [[Iterator on genlist]]
429 } 429 }
430 filtered_items_count @const { 430 filtered_items_count @const {
431 [[Return how many items have passed the filter currently. 431 [[Return how many items have passed the filter currently.
diff --git a/src/lib/elementary/elm_genlist_item.eo b/src/lib/elementary/elm_genlist_item.eo
index 4aea700bc5..a6ef85d3d1 100644
--- a/src/lib/elementary/elm_genlist_item.eo
+++ b/src/lib/elementary/elm_genlist_item.eo
@@ -334,7 +334,7 @@ class Elm.Genlist.Item(Elm.Widget.Item)
334 elsewhere if the user wants to. 334 elsewhere if the user wants to.
335 ]] 335 ]]
336 params { 336 params {
337 @out l: own(list<own(Efl.Canvas.Object)>); [[The contents list to return.]] 337 @out l: list<Efl.Canvas.Object @owned> @owned; [[The contents list to return.]]
338 } 338 }
339 } 339 }
340 update { 340 update {
diff --git a/src/lib/elementary/elm_grid.eo b/src/lib/elementary/elm_grid.eo
index f13264360b..b635fad7e9 100644
--- a/src/lib/elementary/elm_grid.eo
+++ b/src/lib/elementary/elm_grid.eo
@@ -26,7 +26,7 @@ class Elm.Grid (Elm.Widget)
26 It's possible to remove objects from the grid when walking this 26 It's possible to remove objects from the grid when walking this
27 list, but these removals won't be reflected on it. 27 list, but these removals won't be reflected on it.
28 ]] 28 ]]
29 return: free(own(list<Efl.Canvas.Object>), eina_list_free) @warn_unused; [[List of children]] 29 return: list<Efl.Canvas.Object> @owned @warn_unused; [[List of children]]
30 } 30 }
31 } 31 }
32 clear { 32 clear {
diff --git a/src/lib/elementary/elm_interface_atspi_accessible.eo b/src/lib/elementary/elm_interface_atspi_accessible.eo
index 7b2330d78f..c8cea4247b 100644
--- a/src/lib/elementary/elm_interface_atspi_accessible.eo
+++ b/src/lib/elementary/elm_interface_atspi_accessible.eo
@@ -282,7 +282,7 @@ mixin Elm.Interface.Atspi_Accessible (Efl.Interface, Efl.Object)
282 get { 282 get {
283 } 283 }
284 values { 284 values {
285 children: free(own(list<Elm.Interface.Atspi_Accessible>), eina_list_free); [[List of widget's children]] 285 children: list<Elm.Interface.Atspi_Accessible> @owned; [[List of widget's children]]
286 } 286 }
287 } 287 }
288 @property role_name @protected { 288 @property role_name @protected {
@@ -298,7 +298,7 @@ mixin Elm.Interface.Atspi_Accessible (Efl.Interface, Efl.Object)
298 get { 298 get {
299 } 299 }
300 values { 300 values {
301 attributes: free(own(list<own(ptr(Elm.Atspi.Attribute))>), elm_atspi_attributes_list_free); [[List of object attributes]] 301 attributes: free(list<ptr(Elm.Atspi.Attribute) @owned>, elm_atspi_attributes_list_free) @owned; [[List of object attributes]]
302 } 302 }
303 } 303 }
304 @property index_in_parent @protected { 304 @property index_in_parent @protected {
diff --git a/src/lib/elementary/elm_interface_atspi_action.eo b/src/lib/elementary/elm_interface_atspi_action.eo
index 86737001f5..9cdb190c6a 100644
--- a/src/lib/elementary/elm_interface_atspi_action.eo
+++ b/src/lib/elementary/elm_interface_atspi_action.eo
@@ -60,7 +60,7 @@ mixin Elm.Interface.Atspi_Action ()
60 params { 60 params {
61 @in id: int; [[ID for widget]] 61 @in id: int; [[ID for widget]]
62 } 62 }
63 return: own(ptr(char)) @warn_unused; [[Should be freed by the user.]] 63 return: string @owned @warn_unused; [[Should be freed by the user.]]
64 } 64 }
65 } 65 }
66} 66}
diff --git a/src/lib/elementary/elm_interface_atspi_text.eo b/src/lib/elementary/elm_interface_atspi_text.eo
index f3cbf3d631..4cad503f9f 100644
--- a/src/lib/elementary/elm_interface_atspi_text.eo
+++ b/src/lib/elementary/elm_interface_atspi_text.eo
@@ -70,7 +70,7 @@ interface Elm.Interface.Atspi.Text ()
70 end_offset: ptr(int); [[Offset indicating end of string according to given granularity. -1 in case of error.]] 70 end_offset: ptr(int); [[Offset indicating end of string according to given granularity. -1 in case of error.]]
71 } 71 }
72 values { 72 values {
73 string: own(ptr(char)); [[Newly allocated UTF-8 encoded string. Must be free by a user.]] 73 string: string @owned; [[Newly allocated UTF-8 encoded string. Must be free by a user.]]
74 } 74 }
75 } 75 }
76 @property text @protected { 76 @property text @protected {
@@ -82,7 +82,7 @@ interface Elm.Interface.Atspi.Text ()
82 end_offset: int; [[End offset of text.]] 82 end_offset: int; [[End offset of text.]]
83 } 83 }
84 values { 84 values {
85 text: own(ptr(char)); [[UTF-8 encoded text.]] 85 text: string @owned; [[UTF-8 encoded text.]]
86 } 86 }
87 } 87 }
88 @property caret_offset @protected { 88 @property caret_offset @protected {
@@ -108,7 +108,7 @@ interface Elm.Interface.Atspi.Text ()
108 end_offset: ptr(int); [[Position in text to which given attribute is set.]] 108 end_offset: ptr(int); [[Position in text to which given attribute is set.]]
109 } 109 }
110 values { 110 values {
111 value: own(ptr(char)); [[Value of text attribute. Should be free()]] 111 value: string @owned; [[Value of text attribute. Should be free()]]
112 } 112 }
113 } 113 }
114 @property attributes @protected { 114 @property attributes @protected {
@@ -120,7 +120,7 @@ interface Elm.Interface.Atspi.Text ()
120 end_offset: ptr(int); [[End offset]] 120 end_offset: ptr(int); [[End offset]]
121 } 121 }
122 values { 122 values {
123 attributes: own(list<own(ptr(Elm.Atspi_Text.Attribute))>); [[List of text attributes]] 123 attributes: list<ptr(Elm.Atspi_Text.Attribute) @owned> @owned; [[List of text attributes]]
124 } 124 }
125 } 125 }
126 @property default_attributes @protected { 126 @property default_attributes @protected {
@@ -128,7 +128,7 @@ interface Elm.Interface.Atspi.Text ()
128 get { 128 get {
129 } 129 }
130 values { 130 values {
131 attributes: own(list<own(ptr(Elm.Atspi_Text.Attribute))>); [[List of default attributes]] 131 attributes: list<ptr(Elm.Atspi_Text.Attribute) @owned> @owned; [[List of default attributes]]
132 } 132 }
133 } 133 }
134 @property character_extents @protected { 134 @property character_extents @protected {
@@ -176,7 +176,7 @@ interface Elm.Interface.Atspi.Text ()
176 yclip: Elm.Atspi_Text.Clip_Type; [[AT-SPI yclip]] 176 yclip: Elm.Atspi_Text.Clip_Type; [[AT-SPI yclip]]
177 } 177 }
178 values { 178 values {
179 ranges: own(list<own(ptr(Elm.Atspi_Text.Range))>); [[List of ranges]] 179 ranges: list<ptr(Elm.Atspi_Text.Range) @owned> @owned; [[List of ranges]]
180 } 180 }
181 } 181 }
182 @property range_extents @protected { 182 @property range_extents @protected {
diff --git a/src/lib/elementary/elm_naviframe.eo b/src/lib/elementary/elm_naviframe.eo
index f526919c00..4dd9469aa7 100644
--- a/src/lib/elementary/elm_naviframe.eo
+++ b/src/lib/elementary/elm_naviframe.eo
@@ -46,7 +46,7 @@ class Elm.Naviframe (Efl.Ui.Layout, Elm.Interface.Atspi_Widget_Action)
46 get { 46 get {
47 [[Get a list of all the naviframe items.]] 47 [[Get a list of all the naviframe items.]]
48 48
49 return: free(own(list<Elm.Widget.Item>), eina_list_free) @warn_unused; [[A list of naviframe items, @Elm.Widget.Item, or $NULL on failure. Note: The returned list MUST be freed.]] 49 return: list<Elm.Widget.Item> @owned @warn_unused; [[A list of naviframe items, @Elm.Widget.Item, or $NULL on failure. Note: The returned list MUST be freed.]]
50 } 50 }
51 } 51 }
52 @property top_item { 52 @property top_item {
diff --git a/src/lib/elementary/elm_web.eo b/src/lib/elementary/elm_web.eo
index b1e37d3e0e..f00b64cb3a 100644
--- a/src/lib/elementary/elm_web.eo
+++ b/src/lib/elementary/elm_web.eo
@@ -339,7 +339,7 @@ class Elm.Web (Elm.Widget)
339 The string returned must be freed by the user when it's done 339 The string returned must be freed by the user when it's done
340 with it. 340 with it.
341 ]] 341 ]]
342 return: own(string) @warn_unused; [[A newly allocated string, or 342 return: string @owned @warn_unused; [[A newly allocated string, or
343 $null if nothing is selected 343 $null if nothing is selected
344 or an error occurred.]] 344 or an error occurred.]]
345 } 345 }
@@ -351,7 +351,7 @@ class Elm.Web (Elm.Widget)
351 The returned string must not be freed and is guaranteed to be 351 The returned string must not be freed and is guaranteed to be
352 stringshared. 352 stringshared.
353 ]] 353 ]]
354 return: free(own(string), eina_stringshare_del) @warn_unused; [[ 354 return: stringshare @owned @warn_unused; [[
355 A stringshared internal string with the current title, or $null on 355 A stringshared internal string with the current title, or $null on
356 failure. 356 failure.
357 ]] 357 ]]
diff --git a/src/lib/elementary/elm_widget_item.eo b/src/lib/elementary/elm_widget_item.eo
index 822a4e5a01..e1778dd620 100644
--- a/src/lib/elementary/elm_widget_item.eo
+++ b/src/lib/elementary/elm_widget_item.eo
@@ -197,7 +197,7 @@ class Elm.Widget.Item(Efl.Object, Elm.Interface.Atspi_Accessible,
197 197
198 @since 1.8]] 198 @since 1.8]]
199 params { 199 params {
200 @in objs: own(list<Efl.Canvas.Object>); [[Order of objects to pass highlight]] 200 @in objs: list<Efl.Canvas.Object> @owned; [[Order of objects to pass highlight]]
201 } 201 }
202 } 202 }
203 widget_get @const { 203 widget_get @const {