mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Drop gdk_screen_get_default
This function is not used anymore.
This commit is contained in:
parent
a5ba92830e
commit
feb870add3
@ -95,7 +95,6 @@ GdkDisplay
|
||||
gdk_display_open
|
||||
gdk_display_get_default
|
||||
gdk_display_get_name
|
||||
gdk_display_get_default_screen
|
||||
gdk_display_get_device_manager
|
||||
gdk_display_device_is_grabbed
|
||||
gdk_display_beep
|
||||
@ -171,7 +170,6 @@ gdk_display_manager_get_type
|
||||
<FILE>gdkscreen</FILE>
|
||||
<TITLE>GdkScreen</TITLE>
|
||||
GdkScreen
|
||||
gdk_screen_get_default
|
||||
gdk_screen_get_display
|
||||
|
||||
<SUBSECTION Standard>
|
||||
|
@ -348,30 +348,6 @@ gdk_display_get_default (void)
|
||||
return gdk_display_manager_get_default_display (gdk_display_manager_get ());
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_screen_get_default:
|
||||
*
|
||||
* Gets the default screen for the default display. (See
|
||||
* gdk_display_get_default ()).
|
||||
*
|
||||
* Returns: (nullable) (transfer none): a #GdkScreen, or %NULL if
|
||||
* there is no default display.
|
||||
*
|
||||
* Since: 2.2
|
||||
*/
|
||||
GdkScreen *
|
||||
gdk_screen_get_default (void)
|
||||
{
|
||||
GdkDisplay *display;
|
||||
|
||||
display = gdk_display_get_default ();
|
||||
|
||||
if (display)
|
||||
return GDK_DISPLAY_GET_CLASS (display)->get_default_screen (display);
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_display_manager_set_default_display:
|
||||
* @manager: a #GdkDisplayManager
|
||||
|
@ -44,9 +44,6 @@ GType gdk_screen_get_type (void) G_GNUC_CONST;
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkDisplay * gdk_screen_get_display (GdkScreen *screen);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkScreen *gdk_screen_get_default (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GDK_SCREEN_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user