[gtk+] widget: Remove gtk_widget_class_list_style_properties



commit 6c6ed7496c10e95ba159c141c24d57f7ccd3435f
Author: Timm Bäder <mail baedert org>
Date:   Thu Jan 26 18:58:10 2017 +0100

    widget: Remove gtk_widget_class_list_style_properties
    
    Unused.

 docs/reference/gtk/gtk4-sections.txt |    1 -
 gtk/gtkwidget.c                      |   29 -----------------------------
 gtk/gtkwidget.h                      |    3 ---
 3 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 0275499..f511ab6 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4560,7 +4560,6 @@ gtk_widget_set_redraw_on_allocate
 gtk_widget_mnemonic_activate
 gtk_widget_class_install_style_property
 gtk_widget_class_find_style_property
-gtk_widget_class_list_style_properties
 gtk_widget_send_focus_change
 gtk_widget_style_get
 gtk_widget_style_get_valist
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index fb3b6f8..fcfcdc3 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11410,35 +11410,6 @@ gtk_widget_class_find_style_property (GtkWidgetClass *klass,
 }
 
 /**
- * gtk_widget_class_list_style_properties:
- * @klass: a #GtkWidgetClass
- * @n_properties: (out): location to return the number of style properties found
- *
- * Returns all style properties of a widget class.
- *
- * Returns: (array length=n_properties) (transfer container): a
- *     newly allocated array of #GParamSpec*. The array must be
- *     freed with g_free().
- *
- * Since: 2.2
- */
-GParamSpec**
-gtk_widget_class_list_style_properties (GtkWidgetClass *klass,
-                                       guint          *n_properties)
-{
-  GParamSpec **pspecs;
-  guint n;
-
-  pspecs = g_param_spec_pool_list (style_property_spec_pool,
-                                  G_OBJECT_CLASS_TYPE (klass),
-                                  &n);
-  if (n_properties)
-    *n_properties = n;
-
-  return pspecs;
-}
-
-/**
  * gtk_widget_style_get_valist:
  * @widget: a #GtkWidget
  * @first_property_name: the name of the first property to get
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index f9045c0..0be1d03 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -975,9 +975,6 @@ GDK_AVAILABLE_IN_ALL
 GParamSpec*  gtk_widget_class_find_style_property   (GtkWidgetClass     *klass,
                                                     const gchar        *property_name);
 GDK_AVAILABLE_IN_ALL
-GParamSpec** gtk_widget_class_list_style_properties (GtkWidgetClass     *klass,
-                                                    guint              *n_properties);
-GDK_AVAILABLE_IN_ALL
 void gtk_widget_style_get_valist   (GtkWidget       *widget,
                                    const gchar    *first_property_name,
                                    va_list         var_args);


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