forked from AuroraMiddleware/gtk
Remove deprecated gdk_exit() function
This commit is contained in:
parent
902628f593
commit
c6a789998a
@ -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
|
||||
|
||||
|
@ -109,20 +109,6 @@ locale.
|
||||
@sm_client_id:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gdk_exit ##### -->
|
||||
<para>
|
||||
Exits the application using the <function>exit()</function> system call.
|
||||
</para>
|
||||
<para>
|
||||
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()).
|
||||
</para>
|
||||
|
||||
@error_code: the error code to pass to the <function>exit()</function> call.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gdk_notify_startup_complete ##### -->
|
||||
<para>
|
||||
|
||||
|
25
gdk/gdk.c
25
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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user