GLib.MainContext.ref (original) (raw)

GLib

API Version: 2.0

Library Version: 2.85.0

Type

MainContext

Methods

acquire add_poll check dispatch find_source_by_funcs_user_data find_source_by_id find_source_by_user_data get_poll_func invoke invoke_full is_owner iteration pending pop_thread_default prepare push_thread_default pusher_new query ref release remove_poll set_poll_func unref wait wakeup

Generated by gi-docgen 2024.1

Method

GLibMainContextref

Declaration [src]


GMainContext*
g_main_context_ref (
  GMainContext* context
)

Description [src]

Increases the reference count on a GMainContext object by one.

Return value

Type: GMainContext

The context that was passed in (since 2.6).

The caller of the method takes ownership of the returned data, and is responsible for freeing it.