[gtk+] entry: Ignore the icon-prelight style property



commit 46b7b0ac9f757aa27845d06f1c6a09d834d0c619
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Nov 16 06:12:24 2015 -0500

    entry: Ignore the icon-prelight style property
    
    The icon prelight effect can be controlled with regular CSS,
    so deprecate and ignore this style property.

 gtk/gtkentry.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 251edd8..710962d 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -1496,6 +1496,9 @@ gtk_entry_class_init (GtkEntryClass *class)
    * icons prelight on mouseover.
    *
    * Since: 2.16
+   *
+   * Deprecated: 3.20: Use CSS to control the appearance of prelighted icons;
+   *     the value of this style property is ignored.
    */
   gtk_widget_class_install_style_property (widget_class,
                                            g_param_spec_boolean ("icon-prelight",
@@ -1521,7 +1524,7 @@ gtk_entry_class_init (GtkEntryClass *class)
                                                                P_("Border around the progress bar"),
                                                                GTK_TYPE_BORDER,
                                                                GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-  
+
   /**
    * GtkEntry:invisible-char:
    *
@@ -3772,7 +3775,6 @@ should_prelight (GtkEntry             *entry,
 {
   GtkEntryPrivate *priv = entry->priv;
   EntryIconInfo *icon_info = priv->icons[icon_pos];
-  gboolean prelight;
 
   if (!icon_info)
     return FALSE;
@@ -3783,11 +3785,7 @@ should_prelight (GtkEntry             *entry,
   if (icon_info->pressed)
     return FALSE;
 
-  gtk_widget_style_get (GTK_WIDGET (entry),
-                        "icon-prelight", &prelight,
-                        NULL);
-
-  return prelight;
+  return TRUE;
 }
 
 static void


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