summaryrefslogtreecommitdiff
path: root/gmain.h
diff options
context:
space:
mode:
Diffstat (limited to 'gmain.h')
-rw-r--r--gmain.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gmain.h b/gmain.h
index dd500c6e8..193876f2f 100644
--- a/gmain.h
+++ b/gmain.h
@@ -174,7 +174,8 @@ GMainLoop *g_main_loop_new (GMainContext *context,
gboolean is_running);
void g_main_loop_run (GMainLoop *loop);
void g_main_loop_quit (GMainLoop *loop);
-void g_main_loop_destroy (GMainLoop *loop);
+GMainLoop *g_main_loop_ref (GMainLoop *loop);
+void g_main_loop_unref (GMainLoop *loop);
gboolean g_main_loop_is_running (GMainLoop *loop);
/* GSource: */
@@ -237,7 +238,7 @@ void g_get_current_time (GTimeVal *result);
#define g_main_new(is_running) g_main_loop_new (NULL, is_running);
#define g_main_run(loop) g_main_loop_run(loop)
#define g_main_quit(loop) g_main_loop_quit(loop)
-#define g_main_destroy(loop) g_main_loop_destroy(loop)
+#define g_main_destroy(loop) g_main_loop_unref(loop)
#define g_main_is_running(loop) g_main_loop_is_running(loop)
/* Source manipulation by ID */