[gtk+/wip/otte/gtk4: 97/121] entry: Remove deprecated style properties
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/gtk4: 97/121] entry: Remove deprecated style properties
- Date: Fri, 7 Oct 2016 04:10:16 +0000 (UTC)
commit b93948ca7a2096dfacfca1ab6a55cb59cd49f63a
Author: Timm Bäder <mail baedert org>
Date: Tue Oct 4 19:14:38 2016 +0200
entry: Remove deprecated style properties
gtk/gtkentry.c | 69 --------------------------------------------------------
1 files changed, 0 insertions(+), 69 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index fcec7c9..f397e84 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -340,7 +340,6 @@ enum {
PROP_TEXT,
PROP_XALIGN,
PROP_TRUNCATE_MULTILINE,
- PROP_SHADOW_TYPE,
PROP_OVERWRITE_MODE,
PROP_TEXT_LENGTH,
PROP_INVISIBLE_CHAR_SET,
@@ -955,25 +954,6 @@ gtk_entry_class_init (GtkEntryClass *class)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
/**
- * GtkEntry:shadow-type:
- *
- * Which kind of shadow to draw around the entry when
- * #GtkEntry:has-frame is set to %TRUE.
- *
- * Deprecated: 3.20: Use CSS to determine the style of the border;
- * the value of this style property is ignored.
- *
- * Since: 2.12
- */
- entry_props[PROP_SHADOW_TYPE] =
- g_param_spec_enum ("shadow-type",
- P_("Shadow type"),
- P_("Which kind of shadow to draw around the entry when has-frame is set"),
- GTK_TYPE_SHADOW_TYPE,
- GTK_SHADOW_IN,
- GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY|G_PARAM_DEPRECATED);
-
- /**
* GtkEntry:overwrite-mode:
*
* If text is overwritten when typing in the #GtkEntry.
@@ -1461,42 +1441,6 @@ gtk_entry_class_init (GtkEntryClass *class)
g_object_class_install_properties (gobject_class, NUM_PROPERTIES, entry_props);
/**
- * GtkEntry:icon-prelight:
- *
- * The prelight style property determines whether activatable
- * 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",
- P_("Icon Prelight"),
- P_("Whether activatable icons should
prelight when hovered"),
- TRUE,
- GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
- /**
- * GtkEntry:progress-border:
- *
- * The border around the progress bar in the entry.
- *
- * Since: 2.16
- *
- * Deprecated: 3.4: Use the standard margin CSS property (through objects
- * like #GtkStyleContext and #GtkCssProvider); the value of this style
- * property is ignored.
- */
- gtk_widget_class_install_style_property (widget_class,
- g_param_spec_boxed ("progress-border",
- P_("Progress Border"),
- P_("Border around the progress bar"),
- GTK_TYPE_BORDER,
- GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
- /**
* GtkEntry:invisible-char:
*
* The invisible character is used when masking entry contents (in
@@ -2111,14 +2055,6 @@ gtk_entry_set_property (GObject *object,
}
break;
- case PROP_SHADOW_TYPE:
- if (priv->shadow_type != g_value_get_enum (value))
- {
- priv->shadow_type = g_value_get_enum (value);
- g_object_notify_by_pspec (object, pspec);
- }
- break;
-
case PROP_OVERWRITE_MODE:
gtk_entry_set_overwrite_mode (entry, g_value_get_boolean (value));
break;
@@ -2357,10 +2293,6 @@ gtk_entry_get_property (GObject *object,
g_value_set_boolean (value, priv->truncate_multiline);
break;
- case PROP_SHADOW_TYPE:
- g_value_set_enum (value, priv->shadow_type);
- break;
-
case PROP_OVERWRITE_MODE:
g_value_set_boolean (value, priv->overwrite_mode);
break;
@@ -2584,7 +2516,6 @@ gtk_entry_init (GtkEntry *entry)
priv->max_width_chars = -1;
priv->editing_canceled = FALSE;
priv->truncate_multiline = FALSE;
- priv->shadow_type = GTK_SHADOW_IN;
priv->xalign = 0.0;
priv->caps_lock_warning = TRUE;
priv->caps_lock_warning_shown = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]