MainLoop.this

Creates a new #GMainLoop structure.

  1. this(GMainLoop* gMainLoop, bool ownedRef)
  2. this(MainContext context, bool isRunning)
    class MainLoop

Parameters

context MainContext

a #GMainContext (if %NULL, the default context will be used).

isRunning bool

set to %TRUE to indicate that the loop is running. This is not very important since calling g_main_loop_run() will set this to %TRUE anyway.

Return Value

a new #GMainLoop.

Throws

ConstructionException GTK+ fails to create the object.

Meta