diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-03-26 19:23:17 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-03-26 19:23:17 +0000 |
commit | df2f429cff283621c463fafb2996f74cfde25043 (patch) | |
tree | 6155e9e6c0a6a0f569005c27dca3d836caca1f96 /gmain.h | |
parent | 2cfcb9fe0b3d27a9ebcfb066d08032a6a2bf9f12 (diff) |
-DG_DISABLE_DEPRECATED
Mon Mar 26 14:14:53 2001 Owen Taylor <otaylor@redhat.com>
* Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
* gmain.h timeloop.c: Surround the cruftiest stuff with
#ifndef G_DISABLE_DEPRECATED.
* gcompat.h gdate.h: Move compat defines back to
gdate.h, surround with #ifndef G_DISABLE_DEPRECATED.
Remove gcompat.h.
Diffstat (limited to 'gmain.h')
-rw-r--r-- | gmain.h | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -233,6 +233,8 @@ void g_get_current_time (GTimeVal *result); /* ============== Compat main loop stuff ================== */ +#ifndef G_DISABLE_DEPRECATED + /* Legacy names for GMainLoop functions */ #define g_main_new(is_running) g_main_loop_new (NULL, is_running); @@ -241,12 +243,6 @@ void g_get_current_time (GTimeVal *result); #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 */ -gboolean g_source_remove (guint tag); -gboolean g_source_remove_by_user_data (gpointer user_data); -gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs, - gpointer user_data); - /* Functions to manipulate the default main loop */ @@ -255,6 +251,14 @@ gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs, #define g_main_set_poll_func(func) g_main_context_set_poll_func (NULL, func) +#endif /* G_DISABLE_DEPRECATED */ + +/* Source manipulation by ID */ +gboolean g_source_remove (guint tag); +gboolean g_source_remove_by_user_data (gpointer user_data); +gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs, + gpointer user_data); + /* Idles and timeouts */ guint g_timeout_add_full (gint priority, guint interval, |