[gtk+] Remove gdk_setting_get



commit 209f24f962d98533d6ff9c76bc72b61b2a224f4b
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 30 15:31:02 2017 -0400

    Remove gdk_setting_get
    
    This is a minor convenience api, and it is unused.

 docs/reference/gdk/gdk4-sections.txt |    3 ---
 gdk/gdkevents.c                      |   18 ------------------
 gdk/gdkevents.h                      |    4 ----
 3 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 3939f6c..869592d 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -809,9 +809,6 @@ gdk_event_set_source_device
 gdk_event_get_device_tool
 gdk_event_set_device_tool
 
-<SUBSECTION>
-gdk_setting_get
-
 <SUBSECTION Standard>
 GDK_TYPE_EVENT_MASK
 GDK_TYPE_EVENT_TYPE
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 139ff48..466ab54 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -2319,24 +2319,6 @@ G_DEFINE_BOXED_TYPE (GdkEventSequence, gdk_event_sequence,
                      gdk_event_sequence_free)
 
 /**
- * gdk_setting_get:
- * @name: the name of the setting.
- * @value: location to store the value of the setting.
- *
- * Obtains a desktop-wide setting, such as the double-click time,
- * for the default screen. See gdk_screen_get_setting().
- *
- * Returns: %TRUE if the setting existed and a value was stored
- *   in @value, %FALSE otherwise.
- **/
-gboolean
-gdk_setting_get (const gchar *name,
-                GValue      *value)
-{
-  return gdk_screen_get_setting (gdk_screen_get_default (), name, value);
-}
-
-/**
  * gdk_event_get_event_type:
  * @event: a #GdkEvent
  *
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index 448a542..41e8ff2 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -687,10 +687,6 @@ void         gdk_set_show_events           (gboolean        show_events);
 GDK_AVAILABLE_IN_ALL
 gboolean  gdk_get_show_events          (void);
 
-GDK_AVAILABLE_IN_ALL
-gboolean gdk_setting_get                (const gchar    *name,
-                                         GValue         *value);
-
 GDK_AVAILABLE_IN_3_22
 GdkDeviceTool *gdk_event_get_device_tool (const GdkEvent *event);
 


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