[gtk+] Remove deprecated gdk_exit() function
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove deprecated gdk_exit() function
- Date: Wed, 12 May 2010 01:50:14 +0000 (UTC)
commit c6a789998a48d1a1d8a7e1675b873f2b2f440c93
Author: Javier Jardón <jjardon gnome org>
Date: Wed May 12 03:41:45 2010 +0200
Remove deprecated gdk_exit() function
docs/reference/gdk/gdk3-sections.txt | 1 -
docs/reference/gdk/tmpl/general.sgml | 14 --------------
gdk/gdk.c | 25 -------------------------
gdk/gdk.h | 3 ---
gdk/gdk.symbols | 3 ---
5 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt
index b25ceba..065a670 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 eaaf818..40dd4b6 100644
--- a/docs/reference/gdk/tmpl/general.sgml
+++ b/docs/reference/gdk/tmpl/general.sgml
@@ -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>
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 110d662..8fe3c45 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 d834bb1..219298e 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 b95fe78..992d276 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]