forked from AuroraMiddleware/gtk
gdk: Remove deprecated gdk_get_display
This commit is contained in:
parent
16ded8d47b
commit
b12e3b5cf2
@ -16,9 +16,6 @@ gdk_set_allowed_backends
|
||||
gdk_get_program_class
|
||||
gdk_set_program_class
|
||||
|
||||
<SUBSECTION>
|
||||
gdk_get_display
|
||||
|
||||
<SUBSECTION>
|
||||
gdk_flush
|
||||
|
||||
|
18
gdk/gdk.c
18
gdk/gdk.c
@ -401,24 +401,6 @@ gdk_parse_args (int *argc,
|
||||
GDK_NOTE (MISC, g_message ("progname: \"%s\"", g_get_prgname ()));
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_get_display:
|
||||
*
|
||||
* Gets the name of the display, which usually comes from the
|
||||
* `DISPLAY` environment variable or the
|
||||
* `--display` command line option.
|
||||
*
|
||||
* Returns: the name of the display.
|
||||
*
|
||||
* Deprecated: 3.8: Call gdk_display_get_name (gdk_display_get_default ()))
|
||||
* instead.
|
||||
*/
|
||||
gchar *
|
||||
gdk_get_display (void)
|
||||
{
|
||||
return g_strdup (gdk_display_get_name (gdk_display_get_default ()));
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_get_display_arg_name:
|
||||
*
|
||||
|
@ -78,9 +78,6 @@ void gdk_error_trap_pop_ignored (void);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
const gchar * gdk_get_display_arg_name (void);
|
||||
|
||||
GDK_DEPRECATED_IN_3_8_FOR(gdk_display_get_name (gdk_display_get_default ()))
|
||||
gchar* gdk_get_display (void);
|
||||
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gdk_set_double_click_time (guint msec);
|
||||
|
Loading…
Reference in New Issue
Block a user