[gtk+] settings: Remove gtk_settings_get_for_screen()



commit ccd52a410e2f1af3286d61b8e47dd4e2e36643ab
Author: Benjamin Otte <otte redhat com>
Date:   Tue Oct 31 08:23:07 2017 +0100

    settings: Remove gtk_settings_get_for_screen()
    
    All users of it are gone now.

 docs/reference/gtk/gtk4-sections.txt |    1 -
 gtk/gtkimcontextsimple.c             |    4 ++--
 gtk/gtksettings.c                    |   18 ------------------
 gtk/gtksettings.h                    |    2 --
 4 files changed, 2 insertions(+), 23 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 3aab14d..82b90c7 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -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
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index 06bdfb4..ce3accb 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -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);
 
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 319c783..958560d 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -1268,24 +1268,6 @@ gtk_settings_get_for_display (GdkDisplay *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:
  *
  * Gets the #GtkSettings object for the default display, creating
diff --git a/gtk/gtksettings.h b/gtk/gtksettings.h
index 1bd958b..b7b5f89 100644
--- a/gtk/gtksettings.h
+++ b/gtk/gtksettings.h
@@ -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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]