[gtk+/wip/ricotz/deprecated: 3/4] cellrenderertoggle: Remove deprecated indicator-size property



commit 44690f6882e30c4abbacaf3959e1204b6c054584
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Oct 23 17:39:31 2016 +0200

    cellrenderertoggle: Remove deprecated indicator-size property

 gtk/gtkcellrenderertoggle.c |   23 +----------------------
 1 files changed, 1 insertions(+), 22 deletions(-)
---
diff --git a/gtk/gtkcellrenderertoggle.c b/gtk/gtkcellrenderertoggle.c
index a6e94bd..0727797 100644
--- a/gtk/gtkcellrenderertoggle.c
+++ b/gtk/gtkcellrenderertoggle.c
@@ -78,8 +78,7 @@ enum {
   PROP_ACTIVATABLE,
   PROP_ACTIVE,
   PROP_RADIO,
-  PROP_INCONSISTENT,
-  PROP_INDICATOR_SIZE
+  PROP_INCONSISTENT
 };
 
 #define TOGGLE_WIDTH 16
@@ -164,16 +163,6 @@ gtk_cell_renderer_toggle_class_init (GtkCellRendererToggleClass *class)
                                                         FALSE,
                                                         GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
 
-  g_object_class_install_property (object_class,
-                                  PROP_INDICATOR_SIZE,
-                                  g_param_spec_int ("indicator-size",
-                                                    P_("Indicator size"),
-                                                    P_("Size of check or radio indicator"),
-                                                    0,
-                                                    G_MAXINT,
-                                                    0,
-                                                    
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY|G_PARAM_DEPRECATED));
-
   
   /**
    * GtkCellRendererToggle::toggled:
@@ -223,9 +212,6 @@ gtk_cell_renderer_toggle_get_property (GObject     *object,
     case PROP_RADIO:
       g_value_set_boolean (value, priv->radio);
       break;
-    case PROP_INDICATOR_SIZE:
-      g_value_set_int (value, priv->indicator_size);
-      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
       break;
@@ -272,13 +258,6 @@ gtk_cell_renderer_toggle_set_property (GObject      *object,
           g_object_notify_by_pspec (object, pspec);
         }
       break;
-    case PROP_INDICATOR_SIZE:
-      if (priv->indicator_size != g_value_get_int (value))
-        {
-          priv->indicator_size = g_value_get_int (value);
-          g_object_notify_by_pspec (object, pspec);
-        }
-      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
       break;


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