settings: Remove gtk_settings_get_for_screen()

All users of it are gone now.
This commit is contained in:
Benjamin Otte 2017-10-31 08:23:07 +01:00
parent 648d040395
commit ccd52a410e
4 changed files with 2 additions and 23 deletions

View File

@ -2642,7 +2642,6 @@ GtkSettings
GtkSettingsValue
gtk_settings_get_default
gtk_settings_get_for_display
gtk_settings_get_for_screen
gtk_rc_property_parse_color
gtk_rc_property_parse_enum
gtk_rc_property_parse_flags

View File

@ -1017,10 +1017,10 @@ check_emoji (GtkIMContextSimple *context_simple,
static void
beep_window (GdkWindow *window)
{
GdkScreen *screen = gdk_window_get_screen (window);
GdkDisplay *display = gdk_window_get_display (window);
gboolean beep;
g_object_get (gtk_settings_get_for_screen (screen),
g_object_get (gtk_settings_get_for_display (display),
"gtk-error-bell", &beep,
NULL);

View File

@ -1267,24 +1267,6 @@ gtk_settings_get_for_display (GdkDisplay *display)
return gtk_settings_create_for_display (display);
}
/**
* gtk_settings_get_for_screen:
* @screen: a #GdkScreen.
*
* Gets the #GtkSettings object for @screen, creating it if necessary.
*
* Returns: (transfer none): a #GtkSettings object.
*
* Since: 2.2
*/
GtkSettings *
gtk_settings_get_for_screen (GdkScreen *screen)
{
g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
return gtk_settings_get_for_display (gdk_screen_get_display (screen));
}
/**
* gtk_settings_get_default:
*

View File

@ -89,8 +89,6 @@ GDK_AVAILABLE_IN_ALL
GType gtk_settings_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_ALL
GtkSettings* gtk_settings_get_default (void);
GDK_AVAILABLE_IN_ALL
GtkSettings* gtk_settings_get_for_screen (GdkScreen *screen);
GDK_AVAILABLE_IN_3_94
GtkSettings* gtk_settings_get_for_display (GdkDisplay *display);