forked from AuroraMiddleware/gtk
Remove deprecated 'shadow' properties in GtkFrame and GtkHandleBox
This commit is contained in:
parent
f733ab0e75
commit
d45d970144
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user