gdk: Shuffle code around
Make implementation, header and documentation be at the correct place.
This commit is contained in:
15
gdk/gdk.c
15
gdk/gdk.c
@ -325,6 +325,21 @@ gdk_parse_args (int *argc,
|
|||||||
GDK_NOTE (MISC, g_message ("progname: \"%s\"", g_get_prgname ()));
|
GDK_NOTE (MISC, g_message ("progname: \"%s\"", g_get_prgname ()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gdk_get_display:
|
||||||
|
*
|
||||||
|
* Gets the name of the display, which usually comes from the
|
||||||
|
* <envar>DISPLAY</envar> environment variable or the
|
||||||
|
* <option>--display</option> command line option.
|
||||||
|
*
|
||||||
|
* Returns: the name of the display.
|
||||||
|
*/
|
||||||
|
gchar *
|
||||||
|
gdk_get_display (void)
|
||||||
|
{
|
||||||
|
return g_strdup (gdk_display_get_name (gdk_display_get_default ()));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gdk_get_display_arg_name:
|
* gdk_get_display_arg_name:
|
||||||
*
|
*
|
||||||
|
|||||||
@ -1415,12 +1415,6 @@ gdk_display_get_name (GdkDisplay *display)
|
|||||||
return GDK_DISPLAY_GET_CLASS (display)->get_name (display);
|
return GDK_DISPLAY_GET_CLASS (display)->get_name (display);
|
||||||
}
|
}
|
||||||
|
|
||||||
gchar *
|
|
||||||
gdk_get_display (void)
|
|
||||||
{
|
|
||||||
return g_strdup (gdk_display_get_name (gdk_display_get_default ()));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gdk_display_get_n_screens:
|
* gdk_display_get_n_screens:
|
||||||
* @display: a #GdkDisplay
|
* @display: a #GdkDisplay
|
||||||
|
|||||||
@ -65,15 +65,6 @@ void gdk_error_trap_pop_ignored (void);
|
|||||||
|
|
||||||
const gchar * gdk_get_display_arg_name (void);
|
const gchar * gdk_get_display_arg_name (void);
|
||||||
|
|
||||||
/**
|
|
||||||
* gdk_get_display:
|
|
||||||
*
|
|
||||||
* Gets the name of the display, which usually comes from the
|
|
||||||
* <envar>DISPLAY</envar> environment variable or the
|
|
||||||
* <option>--display</option> command line option.
|
|
||||||
*
|
|
||||||
* Returns: the name of the display.
|
|
||||||
*/
|
|
||||||
gchar* gdk_get_display (void);
|
gchar* gdk_get_display (void);
|
||||||
|
|
||||||
#ifndef GDK_MULTIDEVICE_SAFE
|
#ifndef GDK_MULTIDEVICE_SAFE
|
||||||
|
|||||||
Reference in New Issue
Block a user