Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <glib/gmain.h>
Go to the source code of this file.
Macros | |
#define | g_main_new(is_running) g_main_loop_new (NULL, is_running) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_loop_new) |
#define | g_main_run(loop) g_main_loop_run(loop) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_loop_run) |
#define | g_main_quit(loop) g_main_loop_quit(loop) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_loop_quit) |
#define | g_main_destroy(loop) g_main_loop_unref(loop) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_loop_unref) |
#define | g_main_is_running(loop) g_main_loop_is_running(loop) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_loop_is_running) |
#define | g_main_iteration(may_block) g_main_context_iteration (NULL, may_block) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_context_iteration) |
#define | g_main_pending() g_main_context_pending (NULL) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_context_pending) |
#define | g_main_set_poll_func(func) g_main_context_set_poll_func (NULL, func) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_context_set_poll_func) |
#define g_main_destroy | ( | loop | ) | g_main_loop_unref(loop) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_loop_unref) |
g_main_destroy: @loop: a GMainLoop
Frees the memory allocated for the GMainLoop.
Deprecated: 2.2: Use g_main_loop_unref() instead
Definition at line 83 of file deprecated/gmain.h.
#define g_main_is_running | ( | loop | ) | g_main_loop_is_running(loop) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_loop_is_running) |
g_main_is_running: @loop: a GMainLoop
Checks if the main loop is running.
Returns: TRUE if the main loop is running
Deprecated: 2.2: Use g_main_loop_is_running() instead
Definition at line 95 of file deprecated/gmain.h.
#define g_main_iteration | ( | may_block | ) | g_main_context_iteration (NULL, may_block) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_context_iteration) |
g_main_iteration: @may_block: set to TRUE if it should block (i.e. wait) until an event source becomes ready. It will return after an event source has been processed. If set to FALSE it will return immediately if no event source is ready to be processed.
Runs a single iteration for the default GMainContext.
Returns: TRUE if more events are pending.
Deprecated: 2.2: Use g_main_context_iteration() instead.
Definition at line 110 of file deprecated/gmain.h.
#define g_main_new | ( | is_running | ) | g_main_loop_new (NULL, is_running) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_loop_new) |
g_main_new: @is_running: set to TRUE to indicate that the loop is running. This is not very important since calling g_main_run() will set this to TRUE anyway.
Creates a new GMainLoop for th default main context.
Returns: a new GMainLoop
Deprecated: 2.2: Use g_main_loop_new() instead
Definition at line 52 of file deprecated/gmain.h.
#define g_main_pending | ( | ) | g_main_context_pending (NULL) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_context_pending) |
g_main_pending:
Checks if any events are pending for the default GMainContext (i.e. ready to be processed).
Returns: TRUE if any events are pending.
Deprecated: 2.2: Use g_main_context_pending() instead.
Definition at line 122 of file deprecated/gmain.h.
#define g_main_quit | ( | loop | ) | g_main_loop_quit(loop) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_loop_quit) |
g_main_quit: @loop: a GMainLoop
Stops the GMainLoop. If g_main_run() was called to run the GMainLoop, it will now return.
Deprecated: 2.2: Use g_main_loop_quit() instead
Definition at line 73 of file deprecated/gmain.h.
#define g_main_run | ( | loop | ) | g_main_loop_run(loop) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_loop_run) |
g_main_run: @loop: a GMainLoop
Runs a main loop until it stops running.
Deprecated: 2.2: Use g_main_loop_run() instead
Definition at line 62 of file deprecated/gmain.h.
#define g_main_set_poll_func | ( | func | ) | g_main_context_set_poll_func (NULL, func) GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_main_context_set_poll_func) |
g_main_set_poll_func: @func: the function to call to poll all file descriptors
Sets the function to use for the handle polling of file descriptors for the default main context.
Deprecated: 2.2: Use g_main_context_set_poll_func() again
Definition at line 133 of file deprecated/gmain.h.