[gtk+] cellrendererpixbuf: Remove :follow-state



commit a06d34aaffa93fca5f04cd838e5287cd1466b6c2
Author: Timm Bäder <mail baedert org>
Date:   Sat Oct 22 19:32:25 2016 +0200

    cellrendererpixbuf: Remove :follow-state

 gtk/gtkcellrendererpixbuf.c |   29 -----------------------------
 1 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 466f482..621c979 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -78,7 +78,6 @@ enum {
   PROP_SURFACE,
   PROP_STOCK_SIZE,
   PROP_STOCK_DETAIL,
-  PROP_FOLLOW_STATE,
   PROP_ICON_NAME,
   PROP_GICON
 };
@@ -92,8 +91,6 @@ struct _GtkCellRendererPixbufPrivate
   GdkPixbuf *pixbuf_expander_open;
   GdkPixbuf *pixbuf_expander_closed;
 
-  gboolean follow_state;
-
   gchar *stock_detail;
 };
 
@@ -109,7 +106,6 @@ gtk_cell_renderer_pixbuf_init (GtkCellRendererPixbuf *cellpixbuf)
 
   priv->image_def = gtk_image_definition_new_empty ();
   priv->icon_size = GTK_ICON_SIZE_MENU;
-  priv->follow_state = TRUE;
 }
 
 static void
@@ -217,25 +213,6 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
                                                        GTK_PARAM_READWRITE));
 
   /**
-   * GtkCellRendererPixbuf:follow-state:
-   *
-   * Specifies whether the rendered pixbuf should be colorized
-   * according to the #GtkCellRendererState.
-   *
-   * Since: 2.8
-   *
-   * Deprecated: 3.16: Cell renderers always follow state.
-   */
-  g_object_class_install_property (object_class,
-                                  PROP_FOLLOW_STATE,
-                                  g_param_spec_boolean ("follow-state",
-                                                        P_("Follow State"),
-                                                        P_("Whether the rendered pixbuf should be "
-                                                           "colorized according to the state"),
-                                                        TRUE,
-                                                        GTK_PARAM_READWRITE | G_PARAM_DEPRECATED));
-
-  /**
    * GtkCellRendererPixbuf:gicon:
    *
    * The GIcon representing the icon to display.
@@ -286,9 +263,6 @@ gtk_cell_renderer_pixbuf_get_property (GObject        *object,
     case PROP_STOCK_DETAIL:
       g_value_set_string (value, priv->stock_detail);
       break;
-    case PROP_FOLLOW_STATE:
-      g_value_set_boolean (value, priv->follow_state);
-      break;
     case PROP_ICON_NAME:
       g_value_set_string (value, gtk_image_definition_get_icon_name (priv->image_def));
       break;
@@ -385,9 +359,6 @@ gtk_cell_renderer_pixbuf_set_property (GObject      *object,
     case PROP_ICON_NAME:
       take_image_definition (cellpixbuf, gtk_image_definition_new_icon_name (g_value_get_string (value)));
       break;
-    case PROP_FOLLOW_STATE:
-      priv->follow_state = g_value_get_boolean (value);
-      break;
     case PROP_GICON:
       take_image_definition (cellpixbuf, gtk_image_definition_new_gicon (g_value_get_object (value)));
       break;


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