MainLoop.this

Creates a new glib.MainLoop structure.

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

Parameters

context MainContext

a glib.MainContext (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 MainLoop.run will set this to TRUE anyway.

Return Value

Throws

ConstructionException GTK+ fails to create the object.