From: Javier Jardón Date: Wed, 12 May 2010 01:41:45 +0000 (+0200) Subject: Remove deprecated gdk_exit() function X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=c6a789998a48d1a1d8a7e1675b873f2b2f440c93;p=~andy%2Fgtk Remove deprecated gdk_exit() function --- diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt index b25cebaa9..065a670e4 100644 --- a/docs/reference/gdk/gdk3-sections.txt +++ b/docs/reference/gdk/gdk3-sections.txt @@ -10,7 +10,6 @@ gdk_parse_args gdk_get_display_arg_name gdk_set_locale gdk_set_sm_client_id -gdk_exit gdk_notify_startup_complete gdk_notify_startup_complete_with_id diff --git a/docs/reference/gdk/tmpl/general.sgml b/docs/reference/gdk/tmpl/general.sgml index eaaf818ab..40dd4b6ec 100644 --- a/docs/reference/gdk/tmpl/general.sgml +++ b/docs/reference/gdk/tmpl/general.sgml @@ -109,20 +109,6 @@ locale. @sm_client_id: - - -Exits the application using the exit() system call. - - -This routine is provided mainly for backwards compatibility, since it used to -perform tasks necessary to exit the application cleanly. Those tasks are now -performed in a function which is automatically called on exit (via the use -of g_atexit()). - - -@error_code: the error code to pass to the exit() call. - - diff --git a/gdk/gdk.c b/gdk/gdk.c index 110d662dc..8fe3c450d 100644 --- a/gdk/gdk.c +++ b/gdk/gdk.c @@ -386,31 +386,6 @@ gdk_init (int *argc, char ***argv) } } -/* - *-------------------------------------------------------------- - * gdk_exit - * - * Restores the library to an un-itialized state and exits - * the program using the "exit" system call. - * - * Arguments: - * "errorcode" is the error value to pass to "exit". - * - * Results: - * Allocated structures are freed and the program exits - * cleanly. - * - * Side effects: - * - *-------------------------------------------------------------- - */ - -void -gdk_exit (gint errorcode) -{ - exit (errorcode); -} - void gdk_threads_enter (void) { diff --git a/gdk/gdk.h b/gdk/gdk.h index d834bb162..219298e2c 100644 --- a/gdk/gdk.h +++ b/gdk/gdk.h @@ -75,9 +75,6 @@ gboolean gdk_init_check (gint *argc, void gdk_add_option_entries_libgtk_only (GOptionGroup *group); void gdk_pre_parse_libgtk_only (void); -#ifndef GDK_DISABLE_DEPRECATED -void gdk_exit (gint error_code); -#endif /* GDK_DISABLE_DEPRECATED */ gchar* gdk_set_locale (void); G_CONST_RETURN char *gdk_get_program_class (void); diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols index b95fe78b3..992d27603 100644 --- a/gdk/gdk.symbols +++ b/gdk/gdk.symbols @@ -132,9 +132,6 @@ gdk_get_display_arg_name gdk_get_program_class gdk_init gdk_init_check -#ifndef GDK_DISABLE_DEPRECATED -gdk_exit -#endif gdk_pre_parse_libgtk_only gdk_parse_args gdk_set_program_class