diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-01 18:16:05 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-01 19:44:28 -0400 |
commit | feb870add3161f9c43b270fefd261654f9cf5b6f (patch) | |
tree | 81520da2b0a1a391fd90e967c2b8637ce8638155 | |
parent | a5ba92830e4308f44b333c1b0c9ad62c806ec1e6 (diff) | |
download | gtk+-feb870add3161f9c43b270fefd261654f9cf5b6f.tar.gz |
Drop gdk_screen_get_default
This function is not used anymore.
-rw-r--r-- | docs/reference/gdk/gdk4-sections.txt | 2 | ||||
-rw-r--r-- | gdk/gdkdisplaymanager.c | 24 | ||||
-rw-r--r-- | gdk/gdkscreen.h | 3 |
3 files changed, 0 insertions, 29 deletions
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index c0adfe275f..266a2bb2b3 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -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> diff --git a/gdk/gdkdisplaymanager.c b/gdk/gdkdisplaymanager.c index a21aa6766d..6d328d8b41 100644 --- a/gdk/gdkdisplaymanager.c +++ b/gdk/gdkdisplaymanager.c @@ -349,30 +349,6 @@ gdk_display_get_default (void) } /** - * 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 * @display: a #GdkDisplay diff --git a/gdk/gdkscreen.h b/gdk/gdkscreen.h index 26b89a52c9..07dac9af56 100644 --- a/gdk/gdkscreen.h +++ b/gdk/gdkscreen.h @@ -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__ */ |