Deprecate gdk_set_locale and gtk_set_locale

This commit is contained in:
Matthias Clasen 2010-12-17 01:22:47 -05:00
parent 6250c1dbe1
commit e65e208d40
6 changed files with 7 additions and 4 deletions

View File

@ -100,6 +100,7 @@ locale.
@void:
@Returns: the resulting locale.
@Deprecated:2.24: Use setlocale() directly
<!-- ##### FUNCTION gdk_set_sm_client_id ##### -->

View File

@ -77,8 +77,8 @@ 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);
#endif /* GDK_DISABLE_DEPRECATED */
G_CONST_RETURN char *gdk_get_program_class (void);
void gdk_set_program_class (const char *program_class);

View File

@ -95,10 +95,10 @@ gdk_display_pointer_is_grabbed
#ifndef GDK_DISABLE_DEPRECATED
gdk_mbstowcs
gdk_wcstombs
#endif
gdk_set_locale
#endif
#endif
#endif
#if IN_HEADER(__GDK_H__)
#if IN_FILE(__GDK_EVENTS_X11_C__)

View File

@ -2439,6 +2439,7 @@ gtk_get_current_event_state
gtk_get_current_event_time
#ifndef GTK_DISABLE_DEPRECATED
gtk_exit
gtk_set_locale
gtk_idle_add
gtk_idle_add_full
gtk_idle_add_priority
@ -2454,7 +2455,6 @@ gtk_false G_GNUC_CONST
gtk_true G_GNUC_CONST
gtk_events_pending
gtk_disable_setlocale
gtk_set_locale
gtk_check_version
gtk_get_default_language
gtk_get_event_widget

View File

@ -1118,6 +1118,8 @@ gtk_exit (gint errorcode)
* result of the setlocale(); it is also used on other machines, such as
* Windows, where the C library returns a different result. The string is
* owned by GTK+ and should not be modified or freed.
*
* Deprecated: 2.24: Use setlocale() directly
**/
gchar *
gtk_set_locale (void)

View File

@ -129,10 +129,10 @@ gboolean gtk_init_check_abi_check (int *argc,
#ifndef GTK_DISABLE_DEPRECATED
void gtk_exit (gint error_code);
gchar * gtk_set_locale (void);
#endif /* GTK_DISABLE_DEPRECATED */
void gtk_disable_setlocale (void);
gchar * gtk_set_locale (void);
PangoLanguage *gtk_get_default_language (void);
gboolean gtk_events_pending (void);