[gtk+/wip/otte/gtk4: 83/127] Remove some deprecated GdkColor style properties



commit 0e76a0bdfd1bfcbf960a655ee9a35795b6038458
Author: Timm Bäder <mail baedert org>
Date:   Tue Oct 4 17:56:06 2016 +0200

    Remove some deprecated GdkColor style properties

 gtk/gtkiconview.c                       |   17 -----------
 gtk/gtktexttag.c                        |   47 -------------------------------
 testsuite/reftests/textview-tags.ref.ui |    8 ++--
 testsuite/reftests/textview-tags.ui     |    8 ++--
 4 files changed, 8 insertions(+), 72 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 54d8982..24031c0 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -673,23 +673,6 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
   g_object_class_override_property (gobject_class, PROP_HSCROLL_POLICY, "hscroll-policy");
   g_object_class_override_property (gobject_class, PROP_VSCROLL_POLICY, "vscroll-policy");
 
-  /* Style properties */
-  /**
-   * GtkIconView:selection-box-color:
-   *
-   * The color of the selection box.
-   *
-   * Deprecated: 3.20: The color of the selection box is determined by CSS;
-   *     the value of this style property is ignored.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_boxed ("selection-box-color",
-                                                               P_("Selection Box Color"),
-                                                               P_("Color of the selection box"),
-                                                               g_type_from_name ("GdkColor"),
-                                                               GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
-
   /**
    * GtkIconView:selection-box-alpha:
    *
diff --git a/gtk/gtktexttag.c b/gtk/gtktexttag.c
index cbc1a2f..eeeb116 100644
--- a/gtk/gtktexttag.c
+++ b/gtk/gtktexttag.c
@@ -218,21 +218,6 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
                                                         GTK_PARAM_WRITABLE));
 
   /**
-   * GtkTextTag:background-gdk:
-   *
-   * Background color as a #GdkColor.
-   *
-   * Deprecated: 3.4: Use #GtkTextTag:background-rgba instead.
-   */
-  g_object_class_install_property (object_class,
-                                   PROP_BACKGROUND_GDK,
-                                   g_param_spec_boxed ("background-gdk",
-                                                       P_("Background color"),
-                                                       P_("Background color as a GdkColor"),
-                                                       g_type_from_name ("GdkColor"),
-                                                       GTK_PARAM_READWRITE | G_PARAM_DEPRECATED));
-
-  /**
    * GtkTextTag:background-rgba:
    *
    * Background color as a #GdkRGBA.
@@ -264,21 +249,6 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
                                                         GTK_PARAM_WRITABLE));
 
   /**
-   * GtkTextTag:foreground-gdk:
-   *
-   * Foreground color as a #GdkColor.
-   *
-   * Deprecated: 3.4: Use #GtkTextTag:foreground-rgba instead.
-   */
-  g_object_class_install_property (object_class,
-                                   PROP_FOREGROUND_GDK,
-                                   g_param_spec_boxed ("foreground-gdk",
-                                                       P_("Foreground color"),
-                                                       P_("Foreground color as a GdkColor"),
-                                                       g_type_from_name ("GdkColor"),
-                                                       GTK_PARAM_READWRITE | G_PARAM_DEPRECATED));
-
-  /**
    * GtkTextTag:foreground-rgba:
    *
    * Foreground color as a #GdkRGBA.
@@ -615,23 +585,6 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
                                                         GTK_PARAM_WRITABLE));
 
   /**
-   * GtkTextTag:paragraph-background-gdk:
-   *
-   * The paragraph background color as a #GdkColor.
-   *
-   * Since: 2.8
-   *
-   * Deprecated: 3.4: Use #GtkTextTag:paragraph-background-rgba instead.
-   */
-  g_object_class_install_property (object_class,
-                                   PROP_PARAGRAPH_BACKGROUND_GDK,
-                                   g_param_spec_boxed ("paragraph-background-gdk",
-                                                       P_("Paragraph background color"),
-                                                       P_("Paragraph background color as a GdkColor"),
-                                                       g_type_from_name ("GdkColor"),
-                                                       GTK_PARAM_READWRITE | G_PARAM_DEPRECATED));
-
-  /**
    * GtkTextTag:paragraph-background-rgba:
    *
    * The paragraph background color as a #GdkRGBA.
diff --git a/testsuite/reftests/textview-tags.ref.ui b/testsuite/reftests/textview-tags.ref.ui
index 8b9fede..97c0896 100644
--- a/testsuite/reftests/textview-tags.ref.ui
+++ b/testsuite/reftests/textview-tags.ref.ui
@@ -5,28 +5,28 @@
     <child type="tag">
       <object class="GtkTextTag">
         <property name="name">red</property>
-        <property name="foreground">red</property>
+        <property name="foreground-rgba">red</property>
         <property name="font">Normal</property>
       </object>
     </child>
     <child type="tag">
       <object class="GtkTextTag">
         <property name="name">blue</property>
-        <property name="foreground">blue</property>
+        <property name="foreground-rgba">blue</property>
         <property name="font">Normal</property>
       </object>
     </child>
     <child type="tag">
       <object class="GtkTextTag">
         <property name="name">black</property>
-        <property name="foreground">black</property>
+        <property name="foreground-rgba">black</property>
         <property name="font">Normal</property>
       </object>
     </child>
     <child type="tag">
       <object class="GtkTextTag">
         <property name="name">white</property>
-        <property name="foreground">white</property>
+        <property name="foreground-rgba">white</property>
         <property name="font">Normal</property>
       </object>
     </child>
diff --git a/testsuite/reftests/textview-tags.ui b/testsuite/reftests/textview-tags.ui
index c04ebf0..622a08a 100644
--- a/testsuite/reftests/textview-tags.ui
+++ b/testsuite/reftests/textview-tags.ui
@@ -5,28 +5,28 @@
     <child type="tag">
       <object class="GtkTextTag">
         <property name="name">red</property>
-        <property name="foreground">red</property>
+        <property name="foreground-rgba">red</property>
         <property name="font">Normal</property>
       </object>
     </child>
     <child type="tag">
       <object class="GtkTextTag">
         <property name="name">blue</property>
-        <property name="foreground">blue</property>
+        <property name="foreground-rgba">blue</property>
         <property name="font">Normal</property>
       </object>
     </child>
     <child type="tag">
       <object class="GtkTextTag">
         <property name="name">black</property>
-        <property name="foreground">black</property>
+        <property name="foreground-rgba">black</property>
         <property name="font">Normal</property>
       </object>
     </child>
     <child type="tag">
       <object class="GtkTextTag">
         <property name="name">white</property>
-        <property name="foreground">white</property>
+        <property name="foreground-rgba">white</property>
         <property name="font">Normal</property>
       </object>
     </child>


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