diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-12-19 23:53:31 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-12-19 23:53:31 -0500 |
commit | f792d20507b2714c964f11c576dd9a5c5be96a6d (patch) | |
tree | d14e6b2e7ef3cf4fdfe884273ad1d46b5fcc55a3 /gtk/gtkstatusbar.c | |
parent | 57dd855d103fb8f3c445f9754acbdcc02e40d4c5 (diff) | |
download | gtk+-f792d20507b2714c964f11c576dd9a5c5be96a6d.tar.gz |
statusbar: Deprecate style properties
We were not really using the shadow-type style property anyway,
so lets just deprecate it. Themes can directly theme the frame.
Diffstat (limited to 'gtk/gtkstatusbar.c')
-rw-r--r-- | gtk/gtkstatusbar.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c index b5ee3244f4..258e27dea1 100644 --- a/gtk/gtkstatusbar.c +++ b/gtk/gtkstatusbar.c @@ -165,13 +165,21 @@ gtk_statusbar_class_init (GtkStatusbarClass *class) G_TYPE_UINT, G_TYPE_STRING); + /** + * GtkStatusbar:shadow-type: + * + * The style of the bevel around the statusbar text. + * + * Deprecated: 3.20: Use CSS properties to determine the appearance, + * the value of this style property is ignored. + */ gtk_widget_class_install_style_property (widget_class, g_param_spec_enum ("shadow-type", P_("Shadow type"), P_("Style of bevel around the statusbar text"), GTK_TYPE_SHADOW_TYPE, GTK_SHADOW_IN, - GTK_PARAM_READABLE)); + GTK_PARAM_READABLE|G_PARAM_DEPRECATED)); /* Bind class to template */ @@ -188,7 +196,6 @@ static void gtk_statusbar_init (GtkStatusbar *statusbar) { GtkStatusbarPrivate *priv; - GtkShadowType shadow_type; statusbar->priv = gtk_statusbar_get_instance_private (statusbar); priv = statusbar->priv; @@ -199,10 +206,7 @@ gtk_statusbar_init (GtkStatusbar *statusbar) priv->keys = NULL; gtk_widget_init_template (GTK_WIDGET (statusbar)); - gtk_widget_set_redraw_on_allocate (GTK_WIDGET (statusbar), TRUE); - gtk_widget_style_get (GTK_WIDGET (statusbar), "shadow-type", &shadow_type, NULL); - gtk_frame_set_shadow_type (GTK_FRAME (priv->frame), shadow_type); } /** |