From d45d970144fe0fd6422fab873a6c20335ca096b9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 28 Aug 2010 17:20:53 -0400 Subject: [PATCH] Remove deprecated 'shadow' properties in GtkFrame and GtkHandleBox --- gtk/gtkframe.c | 10 ---------- gtk/gtkhandlebox.c | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c index 8817111c97..8afb35ac98 100644 --- a/gtk/gtkframe.c +++ b/gtk/gtkframe.c @@ -55,7 +55,6 @@ enum { PROP_LABEL, PROP_LABEL_XALIGN, PROP_LABEL_YALIGN, - PROP_SHADOW, PROP_SHADOW_TYPE, PROP_LABEL_WIDGET }; @@ -156,13 +155,6 @@ gtk_frame_class_init (GtkFrameClass *class) 1.0, 0.5, GTK_PARAM_READWRITE)); - g_object_class_install_property (gobject_class, - PROP_SHADOW, - g_param_spec_enum ("shadow", NULL, - P_("Deprecated property, use shadow_type instead"), - GTK_TYPE_SHADOW_TYPE, - GTK_SHADOW_ETCHED_IN, - GTK_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_SHADOW_TYPE, g_param_spec_enum ("shadow-type", @@ -249,7 +241,6 @@ gtk_frame_set_property (GObject *object, gtk_frame_set_label_align (frame, priv->label_xalign, g_value_get_float (value)); break; - case PROP_SHADOW: case PROP_SHADOW_TYPE: gtk_frame_set_shadow_type (frame, g_value_get_enum (value)); break; @@ -282,7 +273,6 @@ gtk_frame_get_property (GObject *object, case PROP_LABEL_YALIGN: g_value_set_float (value, priv->label_yalign); break; - case PROP_SHADOW: case PROP_SHADOW_TYPE: g_value_set_enum (value, priv->shadow_type); break; diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c index 7153beb92a..3769b69568 100644 --- a/gtk/gtkhandlebox.c +++ b/gtk/gtkhandlebox.c @@ -69,7 +69,6 @@ struct _GtkHandleBoxPrivate enum { PROP_0, - PROP_SHADOW, PROP_SHADOW_TYPE, PROP_HANDLE_POSITION, PROP_SNAP_EDGE, @@ -184,13 +183,6 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class) gobject_class->set_property = gtk_handle_box_set_property; gobject_class->get_property = gtk_handle_box_get_property; - g_object_class_install_property (gobject_class, - PROP_SHADOW, - g_param_spec_enum ("shadow", NULL, - P_("Deprecated property, use shadow_type instead"), - GTK_TYPE_SHADOW_TYPE, - GTK_SHADOW_OUT, - GTK_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_SHADOW_TYPE, g_param_spec_enum ("shadow-type", @@ -306,7 +298,6 @@ gtk_handle_box_set_property (GObject *object, switch (prop_id) { - case PROP_SHADOW: case PROP_SHADOW_TYPE: gtk_handle_box_set_shadow_type (handle_box, g_value_get_enum (value)); break; @@ -337,7 +328,6 @@ gtk_handle_box_get_property (GObject *object, switch (prop_id) { - case PROP_SHADOW: case PROP_SHADOW_TYPE: g_value_set_enum (value, priv->shadow_type); break;