| 1 |
Object Reference Counting for VFuncs and Closures |
| 2 |
================================================== |
| 3 |
|
| 4 |
Abstract |
| 5 |
-------- |
| 6 |
|
| 7 |
The following document attempts to analyse marshaling strategies for GObjects passed as in or out |
| 8 |
arguments to Python implemented vfuncs and signal closures. There are currently a number of bugs |
| 9 |
which have cropped up throughout the years regarding this topic. Fixing these bugs sometimes ends |
| 10 |
up causing problems in other areas of the bindings, or resulting in different leaks or invalid |
| 11 |
unrefs to occur. Given this, analysis is needed which attempts to take all possibilities into |
| 12 |
account. This can then be used as a basis for testing and implementation. |
| 13 |
|
| 14 |
Related Bugs |
| 15 |
~~~~~~~~~~~~ |
| 16 |
|
| 17 |
======= ============================================================================ |
| 18 |
Bug Description |
| 19 |
======= ============================================================================ |
| 20 |
638267_ gc.collect deletes __dict__ of an object in a GTK-object, Python-object cycle |
| 21 |
675726_ props accessor leaks references for properties of type G_TYPE_OBJECT |
| 22 |
687522_ Setting tool item type fails |
| 23 |
657202_ Floating refs and transfer-ownership |
| 24 |
546802_ Pygtk destroys cycle too early |
| 25 |
640868_ Wrong gobject refcount when calling introspected constructors for widgets |
| 26 |
661359_ Something is wrong with editing-started signal |
| 27 |
92955_ gc.collect() destroys __dict__? |
| 28 |
685598_ Callback closures and user_data with "call" scope type are leaked |
| 29 |
======= ============================================================================ |
| 30 |
|
| 31 |
.. _638267: http://bugzilla.gnome.org/show_bug.cgi?id=638267 |
| 32 |
.. _675726: http://bugzilla.gnome.org/show_bug.cgi?id=675726 |
| 33 |
.. _687522: http://bugzilla.gnome.org/show_bug.cgi?id=687522 |
| 34 |
.. _657202: http://bugzilla.gnome.org/show_bug.cgi?id=657202 |
| 35 |
.. _546802: http://bugzilla.gnome.org/show_bug.cgi?id=546802 |
| 36 |
.. _640868: http://bugzilla.gnome.org/show_bug.cgi?id=640868 |
| 37 |
.. _661359: http://bugzilla.gnome.org/show_bug.cgi?id=661359 |
| 38 |
.. _92955: http://bugzilla.gnome.org/show_bug.cgi?id=92955 |
| 39 |
.. _685598: http://bugzilla.gnome.org/show_bug.cgi?id=685598 |
| 40 |
|
| 41 |
Assumptions |
| 42 |
----------- |
| 43 |
|
| 44 |
Possibilities that probably don't make sense: |
| 45 |
|
| 46 |
* Inout arguments for a GObject should be considered invalid. Because GObject arguments are |
| 47 |
references to a managed object, an inout argument is ambiguous and should be a gi scanner error. |
| 48 |
|
| 49 |
* Transfer container seems ambiguous in regards to GObject arguments and should probably be a gi |
| 50 |
scanner error. |
| 51 |
|
| 52 |
Input Arguments |
| 53 |
--------------- |
| 54 |
|
| 55 |
Input Argument with Transfer Everything |
| 56 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 57 |
|
| 58 |
In this case we simply need to avoid adding an additional ref to the GObject argument and let the |
| 59 |
bindings wrappers like PyObject steal an existing ref from it. However, if an input argument is |
| 60 |
marked as transfer everything and the incoming object is floating, we should probably sink the |
| 61 |
floating ref. |
| 62 |
|
| 63 |
Input Argument with Transfer Nothing |
| 64 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 65 |
|
| 66 |
This is mostly a case of adding a new ref to the GObject which is removed upon the PyObject wrapper |
| 67 |
being destructed. However, there are cases where incoming GObjects are floating which makes things |
| 68 |
more complex. For example (from bug: 687522_) |
| 69 |
|
| 70 |
.. code-block:: python |
| 71 |
|
| 72 |
class Window(Gtk.Window): |
| 73 |
def __init__(self): |
| 74 |
Gtk.Window.__init__(self) |
| 75 |
renderer = Gtk.CellRendererText() |
| 76 |
renderer.connect('editing-started', self.on_view_label_cell_editing_started) |
| 77 |
|
| 78 |
def on_view_label_cell_editing_started(self, renderer, editable, path): |
| 79 |
print path |
| 80 |
|
| 81 |
In the above example "editable" is a floating reference which the bindings will currently sink and |
| 82 |
add a reference to which ends up leaking. This could be addressed by maintaining the GObject as |
| 83 |
floating and simply adding a new reference upon (in) argument marshaling as proposed in bug |
| 84 |
675726_. However, in addition to this proposed fix, there is also a situation where we might |
| 85 |
consider sinking the GObject within cleanup code after the Python vfunc is finished: |
| 86 |
|
| 87 |
.. code-block:: python |
| 88 |
|
| 89 |
class Window(Gtk.Window): |
| 90 |
def on_view_label_cell_editing_started(self, renderer, editable, path): |
| 91 |
self.editable = editable |
| 92 |
|
| 93 |
In this situation, Python is keeping a strong reference to what was just a temporary floating object |
| 94 |
coming in. We could detect this case by looking at the PyObject ref count and if it is greater than |
| 95 |
one, we sink the GObject because Python is basically maintaining a strong reference. |
| 96 |
|
| 97 |
Output and Return Arguments |
| 98 |
--------------------------- |
| 99 |
|
| 100 |
Output and return arguments should essentially be considered the same and behave the same in regards |
| 101 |
to reference counting between callers and callees. The only difference is the code paths will be |
| 102 |
different in the binding layer due to different APIs in gi-repository for working with them. |
| 103 |
|
| 104 |
VFunc Return with Transfer Everything |
| 105 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 106 |
|
| 107 |
This is perhaps the easiest case to deal with because bindings can simply increment the reference |
| 108 |
count of the GObject being returned and return it (a "new value reference" in Python C API |
| 109 |
terminology). Binding wrapper objects will decrement their existing reference to the GObject when |
| 110 |
their own reference count reaches zero. This will always work regardless of if the object is only |
| 111 |
temporarily created in Python and returned right back to C, or if the vfunc is returning a strong |
| 112 |
reference to an object being held elsewhere. |
| 113 |
|
| 114 |
VFunc Return with Transfer Nothing |
| 115 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 116 |
|
| 117 |
This is one of the more problematic situations due to there not being a clear indication that |
| 118 |
callers of the vfunc expect a floating reference or a borrowed reference. In Gtk for example, we |
| 119 |
might have something like this: |
| 120 |
|
| 121 |
.. code-block:: python |
| 122 |
|
| 123 |
class ToolMenuAction(Gtk.Action): |
| 124 |
def do_create_tool_item(self): |
| 125 |
return Gtk.MenuToolButton() |
| 126 |
|
| 127 |
The problem here is the creation MenuToolButton from Python will sink the initial floating |
| 128 |
reference. However, what the caller of create_tool_item really wants you to return is a floating |
| 129 |
reference. Currently the Python bindings are returning an invalid object do to the lifetime being |
| 130 |
created and destroyed all within the scope of the Python method (bug 687522_). If the bindings |
| 131 |
were to always ref return values (just like with transfer everything), it would most likely leak a |
| 132 |
reference as it would be returning a strong reference which is not owned by Python and the caller |
| 133 |
expects a floating reference. There are a number of potential solutions: |
| 134 |
|
| 135 |
1. Don't sink floating references upon object creation, but add a new reference. This would fix the |
| 136 |
immediate problem but more thought needs to be put into potential fallout. Another thing to |
| 137 |
consider is if the callee holds onto the reference it returns, we would want to sink the ref |
| 138 |
before returning the GObject. This can be detected in marshaling code by looking at the ref |
| 139 |
count of the PyObject wrapper, if it is greater than one and the GObject is floating, we sink |
| 140 |
it. This would then essentially be returning a "borrowed reference" and in this case the caller |
| 141 |
would most likely be using g_object_ref_sink which would add it's own new reference. |
| 142 |
|
| 143 |
2. A sort of opposite idea from the first one would be to always sink floating refs as we do now, |
| 144 |
but re-float and add an extra ref upon out argument marshaling if the object is derived from |
| 145 |
GInitallyUnowned and Python would otherwise destroy it (the PyObject and GObject ref counts are |
| 146 |
only one). Likewise, if the PyObject ref count is greater than one, we are returning a borrowed |
| 147 |
reference as expected and would not want to re-float the GObject. |
| 148 |
|
| 149 |
3. Always require vfuncs to use transfer full (a new value reference), this would basically solve |
| 150 |
all the problems but is unrealistic. The reason this is nice is there is really no confusion |
| 151 |
about floating refs or methods which imply returning an internal borrowed reference (something |
| 152 |
like Atk.Object.get_parent) |
| 153 |
|
| 154 |
Returning Borrowed References |
| 155 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 156 |
|
| 157 |
(transfer none with no expectation from the caller a floating ref should be returned) |
| 158 |
|
| 159 |
In regards to vfuncs which imply returning an internal borrowed reference, we can detect potential |
| 160 |
errors by again looking at the outgoing PyObject wrapper ref-count before returning the GObject. |
| 161 |
Consider the following examples: |
| 162 |
|
| 163 |
.. code-block:: python |
| 164 |
|
| 165 |
class SomethingAccessible(Atk.Object): |
| 166 |
def do_get_parent(self): |
| 167 |
return self.parent |
| 168 |
|
| 169 |
.. code-block:: python |
| 170 |
|
| 171 |
class SomethingAccessible(Atk.Object): |
| 172 |
def do_get_parent(self): |
| 173 |
return ParentObject() |
| 174 |
|
| 175 |
If the PyObject wrapper ref count is only one (latter case), it means Python would normally collect |
| 176 |
this, so we need to increment the GObject ref count to keep Python from also destroying the GObject |
| 177 |
and print a warning stating that this might be a leak. While this case may rarely happen in the |
| 178 |
real world, it is a possibility bindings need to explicitly address in order to minimize future |
| 179 |
support load. |
| 180 |
|
| 181 |
Additional Considerations |
| 182 |
------------------------- |
| 183 |
|
| 184 |
Toggle References |
| 185 |
~~~~~~~~~~~~~~~~~~ |
| 186 |
|
| 187 |
Beyond the situations given above, we also have the added complexity of toggle references in cases |
| 188 |
where we need to keep the Python wrapper alive and carried along with the GObject through its |
| 189 |
lifetime. This can occur when instance attributes are set on a PyObject wrapper: |
| 190 |
|
| 191 |
.. code-block:: python |
| 192 |
|
| 193 |
btn = Gtk.Button() |
| 194 |
btn.some_custom_py_attr = 'foo' |
| 195 |
|
| 196 |
In this case pygobject will detect the dictionary modification and add a toggle ref to keep the |
| 197 |
wrapper alive along with the GObject. |
| 198 |
|
| 199 |
Final Thoughts |
| 200 |
-------------- |
| 201 |
|
| 202 |
Importantly, unittests for all the combinations of the above situations need to be written. There is |
| 203 |
already some work being done in the following ticket to address this (687522_) |
| 204 |
|
| 205 |
Analysis |
| 206 |
-------- |
| 207 |
|
| 208 |
Some analysis of existing .gir files was accomplished by using the attached gir-query script which |
| 209 |
you can give a directory of .gir files and query them using xpath. |
| 210 |
|
| 211 |
VFuncs with Object Return |
| 212 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 213 |
|
| 214 |
This shows a variety of the possibilities talked about above. |
| 215 |
|
| 216 |
:: |
| 217 |
|
| 218 |
$ gir-query --print-closure-arg-types "Object,GObject.Object,Widget,Gtk.Widget,Atk.Object" | grep "|| in ||" |
| 219 |
|
| 220 |
============================================================== =============== =========== ============== ======== |
| 221 |
Closure Arg Closure Type Direction Arg Type Transfer |
| 222 |
============================================================== =============== =========== ============== ======== |
| 223 |
``Nautilus.LocationWidgetProvider.get_widget.window`` virtual-method in Gtk.Widget none |
| 224 |
``Nautilus.MenuProvider.get_background_items.window`` virtual-method in Gtk.Widget none |
| 225 |
``Nautilus.MenuProvider.get_file_items.window`` virtual-method in Gtk.Widget none |
| 226 |
``GcrUi.ImportButton.imported.importer`` signal in GObject.Object none |
| 227 |
``GcrUi.ImportButton.importing.importer`` signal in GObject.Object none |
| 228 |
``Gtk.Buildable.add_child.child`` virtual-method in GObject.Object none |
| 229 |
``Gtk.Buildable.custom_finished.child`` virtual-method in GObject.Object none |
| 230 |
``Gtk.Buildable.custom_tag_end.child`` virtual-method in GObject.Object none |
| 231 |
``Gtk.Buildable.custom_tag_start.child`` virtual-method in GObject.Object none |
| 232 |
``Gtk.TextTag.event.event_object`` virtual-method in GObject.Object none |
| 233 |
``Gtk.Action.connect_proxy.proxy`` virtual-method in Widget none |
| 234 |
``Gtk.Action.disconnect_proxy.proxy`` virtual-method in Widget none |
| 235 |
``Gtk.Assistant.prepare.page`` virtual-method in Widget none |
| 236 |
``Gtk.CellArea.activate.widget`` virtual-method in Widget none |
| 237 |
``Gtk.CellArea.event.widget`` virtual-method in Widget none |
| 238 |
``Gtk.CellArea.foreach_alloc.widget`` virtual-method in Widget none |
| 239 |
``Gtk.CellArea.get_preferred_height.widget`` virtual-method in Widget none |
| 240 |
``Gtk.CellArea.get_preferred_height_for_width.widget`` virtual-method in Widget none |
| 241 |
``Gtk.CellArea.get_preferred_width.widget`` virtual-method in Widget none |
| 242 |
``Gtk.CellArea.get_preferred_width_for_height.widget`` virtual-method in Widget none |
| 243 |
``Gtk.CellArea.render.widget`` virtual-method in Widget none |
| 244 |
``Gtk.CellRenderer.activate.widget`` virtual-method in Widget none |
| 245 |
``Gtk.CellRenderer.get_aligned_area.widget`` virtual-method in Widget none |
| 246 |
``Gtk.CellRenderer.get_preferred_height.widget`` virtual-method in Widget none |
| 247 |
``Gtk.CellRenderer.get_preferred_height_for_width.widget`` virtual-method in Widget none |
| 248 |
``Gtk.CellRenderer.get_preferred_width.widget`` virtual-method in Widget none |
| 249 |
``Gtk.CellRenderer.get_preferred_width_for_height.widget`` virtual-method in Widget none |
| 250 |
``Gtk.CellRenderer.get_size.widget`` virtual-method in Widget none |
| 251 |
``Gtk.CellRenderer.render.widget`` virtual-method in Widget none |
| 252 |
``Gtk.CellRenderer.start_editing.widget`` virtual-method in Widget none |
| 253 |
``Gtk.Container.add.widget`` virtual-method in Widget none |
| 254 |
``Gtk.Container.composite_name.child`` virtual-method in Widget none |
| 255 |
``Gtk.Container.get_child_property.child`` virtual-method in Widget none |
| 256 |
``Gtk.Container.get_path_for_child.child`` virtual-method in Widget none |
| 257 |
``Gtk.Container.remove.widget`` virtual-method in Widget none |
| 258 |
``Gtk.Container.set_child_property.child`` virtual-method in Widget none |
| 259 |
``Gtk.Container.set_focus_child.widget`` virtual-method in Widget none |
| 260 |
``Gtk.HandleBox.child_attached.child`` virtual-method in Widget none |
| 261 |
``Gtk.HandleBox.child_detached.child`` virtual-method in Widget none |
| 262 |
``Gtk.List.select_child.child`` virtual-method in Widget none |
| 263 |
``Gtk.List.unselect_child.child`` virtual-method in Widget none |
| 264 |
``Gtk.MenuShell.insert.child`` virtual-method in Widget none |
| 265 |
``Gtk.MenuShell.select_item.menu_item`` virtual-method in Widget none |
| 266 |
``Gtk.Notebook.create_window.page`` virtual-method in Widget none |
| 267 |
``Gtk.Notebook.insert_page.child`` virtual-method in Widget none |
| 268 |
``Gtk.Notebook.insert_page.tab_label`` virtual-method in Widget none |
| 269 |
``Gtk.Notebook.insert_page.menu_label`` virtual-method in Widget none |
| 270 |
``Gtk.Notebook.page_added.child`` virtual-method in Widget none |
| 271 |
``Gtk.Notebook.page_removed.child`` virtual-method in Widget none |
| 272 |
``Gtk.Notebook.page_reordered.child`` virtual-method in Widget none |
| 273 |
``Gtk.Notebook.switch_page.page`` virtual-method in Widget none |
| 274 |
``Gtk.Overlay.get_child_position.widget`` virtual-method in Widget none |
| 275 |
``Gtk.PrintOperation.custom_widget_apply.widget`` virtual-method in Widget none |
| 276 |
``Gtk.PrintOperation.update_custom_widget.widget`` virtual-method in Widget none |
| 277 |
``Gtk.Style.draw_arrow.widget`` virtual-method in Widget none |
| 278 |
``Gtk.Style.draw_box.widget`` virtual-method in Widget none |
| 279 |
``Gtk.Style.draw_box_gap.widget`` virtual-method in Widget none |
| 280 |
``Gtk.Style.draw_check.widget`` virtual-method in Widget none |
| 281 |
``Gtk.Style.draw_diamond.widget`` virtual-method in Widget none |
| 282 |
``Gtk.Style.draw_expander.widget`` virtual-method in Widget none |
| 283 |
``Gtk.Style.draw_extension.widget`` virtual-method in Widget none |
| 284 |
``Gtk.Style.draw_flat_box.widget`` virtual-method in Widget none |
| 285 |
``Gtk.Style.draw_focus.widget`` virtual-method in Widget none |
| 286 |
``Gtk.Style.draw_handle.widget`` virtual-method in Widget none |
| 287 |
``Gtk.Style.draw_hline.widget`` virtual-method in Widget none |
| 288 |
``Gtk.Style.draw_layout.widget`` virtual-method in Widget none |
| 289 |
``Gtk.Style.draw_option.widget`` virtual-method in Widget none |
| 290 |
``Gtk.Style.draw_polygon.widget`` virtual-method in Widget none |
| 291 |
``Gtk.Style.draw_resize_grip.widget`` virtual-method in Widget none |
| 292 |
``Gtk.Style.draw_shadow.widget`` virtual-method in Widget none |
| 293 |
``Gtk.Style.draw_shadow_gap.widget`` virtual-method in Widget none |
| 294 |
``Gtk.Style.draw_slider.widget`` virtual-method in Widget none |
| 295 |
``Gtk.Style.draw_spinner.widget`` virtual-method in Widget none |
| 296 |
``Gtk.Style.draw_string.widget`` virtual-method in Widget none |
| 297 |
``Gtk.Style.draw_tab.widget`` virtual-method in Widget none |
| 298 |
``Gtk.Style.draw_vline.widget`` virtual-method in Widget none |
| 299 |
``Gtk.Style.render_icon.widget`` virtual-method in Widget none |
| 300 |
``Gtk.TextLayout.allocate_child.child`` virtual-method in Widget none |
| 301 |
``Gtk.TipsQuery.widget_entered.widget`` virtual-method in Widget none |
| 302 |
``Gtk.TipsQuery.widget_selected.widget`` virtual-method in Widget none |
| 303 |
``Gtk.UIManager.add_widget.widget`` virtual-method in Widget none |
| 304 |
``Gtk.UIManager.connect_proxy.proxy`` virtual-method in Widget none |
| 305 |
``Gtk.UIManager.disconnect_proxy.proxy`` virtual-method in Widget none |
| 306 |
``Gtk.Widget.hierarchy_changed.previous_toplevel`` virtual-method in Widget none |
| 307 |
``Gtk.Widget.parent_set.previous_parent`` virtual-method in Widget none |
| 308 |
``Gtk.Window.set_focus.focus`` virtual-method in Widget none |
| 309 |
``Gtk.TextLayout.allocate-child.object`` signal in Object none |
| 310 |
``Gtk.AccelGroup.accel-activate.acceleratable`` signal in GObject.Object none |
| 311 |
``Gtk.TextTag.event.object`` signal in GObject.Object none |
| 312 |
``Gtk.ActionGroup.connect-proxy.proxy`` signal in Widget none |
| 313 |
``Gtk.ActionGroup.disconnect-proxy.proxy`` signal in Widget none |
| 314 |
``Gtk.Assistant.prepare.page`` signal in Widget none |
| 315 |
``Gtk.Container.add.object`` signal in Widget none |
| 316 |
``Gtk.Container.remove.object`` signal in Widget none |
| 317 |
``Gtk.Container.set-focus-child.object`` signal in Widget none |
| 318 |
``Gtk.HandleBox.child-attached.object`` signal in Widget none |
| 319 |
``Gtk.HandleBox.child-detached.object`` signal in Widget none |
| 320 |
``Gtk.List.select-child.object`` signal in Widget none |
| 321 |
``Gtk.List.unselect-child.object`` signal in Widget none |
| 322 |
``Gtk.Notebook.create-window.page`` signal in Widget none |
| 323 |
``Gtk.Notebook.page-added.child`` signal in Widget none |
| 324 |
``Gtk.Notebook.page-removed.child`` signal in Widget none |
| 325 |
``Gtk.Notebook.page-reordered.child`` signal in Widget none |
| 326 |
``Gtk.PrintOperation.custom-widget-apply.widget`` signal in Widget none |
| 327 |
``Gtk.PrintOperation.update-custom-widget.widget`` signal in Widget none |
| 328 |
``Gtk.TipsQuery.widget-entered.object`` signal in Widget none |
| 329 |
``Gtk.TipsQuery.widget-selected.object`` signal in Widget none |
| 330 |
``Gtk.UIManager.add-widget.widget`` signal in Widget none |
| 331 |
``Gtk.UIManager.connect-proxy.proxy`` signal in Widget none |
| 332 |
``Gtk.UIManager.disconnect-proxy.proxy`` signal in Widget none |
| 333 |
``Gtk.Widget.hierarchy-changed.previous_toplevel`` signal in Widget none |
| 334 |
``Gtk.Widget.parent-set.old_parent`` signal in Widget none |
| 335 |
``Gtk.Window.set-focus.object`` signal in Widget none |
| 336 |
``Gst.ControlBinding.sync_values.object`` virtual-method in GObject.Object none |
| 337 |
``Gst.Object.deep_notify.orig`` virtual-method in GObject.Object none |
| 338 |
``Gst.ChildProxy.child_added.child`` virtual-method in GObject.Object none |
| 339 |
``Gst.ChildProxy.child_removed.child`` virtual-method in GObject.Object none |
| 340 |
``Gst.Object.deep-notify.prop_object`` signal in GObject.Object none |
| 341 |
``Gst.ChildProxy.child-added.object`` signal in GObject.Object none |
| 342 |
``Gst.ChildProxy.child-removed.object`` signal in GObject.Object none |
| 343 |
``NMClient.DeviceWifi.access-point-added.ap`` signal in GObject.Object none |
| 344 |
``NMClient.DeviceWifi.access-point-removed.ap`` signal in GObject.Object none |
| 345 |
``NMClient.DeviceWimax.nsp-added.nsp`` signal in GObject.Object none |
| 346 |
``NMClient.DeviceWimax.nsp-removed.nsp`` signal in GObject.Object none |
| 347 |
``NMClient.RemoteSettings.new-connection.object`` signal in GObject.Object none |
| 348 |
``Gio.SocketService.incoming.source_object`` virtual-method in GObject.Object none |
| 349 |
``Gio.ThreadedSocketService.run.source_object`` virtual-method in GObject.Object none |
| 350 |
``Gio.SocketService.incoming.source_object`` signal in GObject.Object none |
| 351 |
``Gio.ThreadedSocketService.run.source_object`` signal in GObject.Object none |
| 352 |
``Json.Parser.object_end.object`` virtual-method in Object none |
| 353 |
``Json.Parser.object_member.object`` virtual-method in Object none |
| 354 |
``Json.Parser.object-end.object`` signal in Object none |
| 355 |
``Json.Parser.object-member.object`` signal in Object none |
| 356 |
``GnomeDesktop.BGCrossfade.finished.window`` signal in GObject.Object none |
| 357 |
``Gladeui.Widget.replace_child`` virtual-method in GObject.Object none |
| 358 |
``Gladeui.Widget.replace_child`` virtual-method in GObject.Object none |
| 359 |
``Gladeui.BaseEditor.build_child`` virtual-method in Widget none |
| 360 |
``Gladeui.BaseEditor.change_type`` virtual-method in Widget none |
| 361 |
``Gladeui.BaseEditor.child_selected`` virtual-method in Widget none |
| 362 |
``Gladeui.BaseEditor.delete_child`` virtual-method in Widget none |
| 363 |
``Gladeui.BaseEditor.delete_child`` virtual-method in Widget none |
| 364 |
``Gladeui.BaseEditor.get_display_name`` virtual-method in Widget none |
| 365 |
``Gladeui.BaseEditor.move_child`` virtual-method in Widget none |
| 366 |
``Gladeui.BaseEditor.move_child`` virtual-method in Widget none |
| 367 |
``Gladeui.Editable.load.widget`` virtual-method in Widget none |
| 368 |
``Gladeui.Project.add_object.widget`` virtual-method in Widget none |
| 369 |
``Gladeui.Project.remove_object.widget`` virtual-method in Widget none |
| 370 |
``Gladeui.Project.widget_name_changed.widget`` virtual-method in Widget none |
| 371 |
``Gladeui.Widget.add_child`` virtual-method in Widget none |
| 372 |
``Gladeui.Widget.remove_child`` virtual-method in Widget none |
| 373 |
``Gladeui.App.signal-editor-created.signal_editor`` signal in GObject.Object none |
| 374 |
``Gladeui.App.widget-adaptor-registered.adaptor`` signal in GObject.Object none |
| 375 |
``Gladeui.BaseEditor.build-child.gparent`` signal in GObject.Object none |
| 376 |
``Gladeui.BaseEditor.change-type.object`` signal in GObject.Object none |
| 377 |
``Gladeui.BaseEditor.child-selected.gchild`` signal in GObject.Object none |
| 378 |
``Gladeui.BaseEditor.delete-child.gparent`` signal in GObject.Object none |
| 379 |
``Gladeui.BaseEditor.delete-child.gchild`` signal in GObject.Object none |
| 380 |
``Gladeui.BaseEditor.get-display-name.gchild`` signal in GObject.Object none |
| 381 |
``Gladeui.BaseEditor.move-child.gparent`` signal in GObject.Object none |
| 382 |
``Gladeui.BaseEditor.move-child.gchild`` signal in GObject.Object none |
| 383 |
``Gladeui.Project.add-widget.arg1`` signal in Widget none |
| 384 |
``Gladeui.Project.remove-widget.arg1`` signal in Widget none |
| 385 |
``Gladeui.Project.widget-name-changed.arg1`` signal in Widget none |
| 386 |
``Gladeui.Project.widget-visibility-changed.widget`` signal in Widget none |
| 387 |
``Gck.Module.authenticate_object.object`` virtual-method in Object none |
| 388 |
``Gck.Module.authenticate-object.object`` signal in Object none |
| 389 |
``Soup.Session.connection-created.connection`` signal in GObject.Object none |
| 390 |
``Soup.Session.tunneling.connection`` signal in GObject.Object none |
| 391 |
``Peas.ExtensionSet.extension-added.exten`` signal in GObject.Object none |
| 392 |
``Peas.ExtensionSet.extension-removed.exten`` signal in GObject.Object none |
| 393 |
``Gcr.Collection.added.object`` virtual-method in GObject.Object none |
| 394 |
``Gcr.Collection.contains.object`` virtual-method in GObject.Object none |
| 395 |
``Gcr.Collection.removed.object`` virtual-method in GObject.Object none |
| 396 |
``Atk.Object.set_parent.parent`` virtual-method in Object none |
| 397 |
``Atk.Table.set_caption.caption`` virtual-method in Object none |
| 398 |
``Atk.Table.set_column_header.header`` virtual-method in Object none |
| 399 |
``Atk.Table.set_row_header.header`` virtual-method in Object none |
| 400 |
``Atk.Table.set_summary.accessible`` virtual-method in Object none |
| 401 |
============================================================== =============== =========== ============== ======== |
| 402 |
|
| 403 |
:: |
| 404 |
|
| 405 |
$ gir-query --print-closure-arg-types "Object,GObject.Object,Widget,Gtk.Widget,Atk.Object" | grep "|| out ||" |
| 406 |
|
| 407 |
============================================================== =============== =========== ============== ======== |
| 408 |
Closure Arg Closure Type Direction Arg Type Transfer |
| 409 |
============================================================== =============== =========== ============== ======== |
| 410 |
``GtkSource.CompletionProvider.get_info_widget`` virtual-method out Gtk.Widget none |
| 411 |
``PeasGtk.Configurable.create_configure_widget`` virtual-method out Gtk.Widget full |
| 412 |
``Nautilus.LocationWidgetProvider.get_widget`` virtual-method out Gtk.Widget none |
| 413 |
``Gtk.Buildable.construct_child`` virtual-method out GObject.Object full |
| 414 |
``Gtk.Buildable.get_internal_child`` virtual-method out GObject.Object none |
| 415 |
``Gtk.Action.create_menu`` virtual-method out Widget none |
| 416 |
``Gtk.Action.create_menu_item`` virtual-method out Widget none |
| 417 |
``Gtk.Action.create_tool_item`` virtual-method out Widget none |
| 418 |
``Gtk.PrintOperation.create_custom_widget`` virtual-method out Widget None |
| 419 |
``Gtk.UIManager.get_widget`` virtual-method out Widget none |
| 420 |
``Gtk.Widget.get_accessible`` virtual-method out Atk.Object none |
| 421 |
``Gtk.PrintOperation.create-custom-widget`` signal out GObject.Object none |
| 422 |
``Gst.ChildProxy.get_child_by_index`` virtual-method out GObject.Object full |
| 423 |
``Gst.ChildProxy.get_child_by_name`` virtual-method out GObject.Object full |
| 424 |
``Gio.AsyncResult.get_source_object`` virtual-method out GObject.Object full |
| 425 |
``Gladeui.BaseEditor.build_child`` virtual-method out Widget None |
| 426 |
``Gladeui.EditorProperty.create_input`` virtual-method out Gtk.Widget None |
| 427 |
``Gladeui.BaseEditor.build-child`` signal out GObject.Object None |
| 428 |
``Atk.Component.ref_accessible_at_point`` virtual-method out Object full |
| 429 |
``Atk.Hyperlink.get_object`` virtual-method out Object none |
| 430 |
``Atk.Object.get_parent`` virtual-method out Object none |
| 431 |
``Atk.Object.ref_child`` virtual-method out Object None |
| 432 |
``Atk.Selection.ref_selection`` virtual-method out Object full |
| 433 |
``Atk.Table.get_caption`` virtual-method out Object none |
| 434 |
``Atk.Table.get_column_header`` virtual-method out Object none |
| 435 |
``Atk.Table.get_row_header`` virtual-method out Object none |
| 436 |
``Atk.Table.get_summary`` virtual-method out Object full |
| 437 |
``Atk.Table.ref_at`` virtual-method out Object full |
| 438 |
============================================================== =============== =========== ============== ======== |