[gnome-shell] trivial: st-widget: Remove super old 'stylable' property
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] trivial: st-widget: Remove super old 'stylable' property
- Date: Tue, 5 Nov 2013 14:12:34 +0000 (UTC)
commit 5c0ee02251ebd21f72ee8d32b93d707547a06803
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Nov 4 16:03:16 2013 -0500
trivial: st-widget: Remove super old 'stylable' property
I don't think we ever used this, even way back in 3.0...
https://bugzilla.gnome.org/show_bug.cgi?id=644306
src/st/st-widget.c | 35 -----------------------------------
1 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/src/st/st-widget.c b/src/st/st-widget.c
index 9b1226e..f1b6ec7 100644
--- a/src/st/st-widget.c
+++ b/src/st/st-widget.c
@@ -59,7 +59,6 @@ struct _StWidgetPrivate
StThemeNodeTransition *transition_animation;
- gboolean is_stylable : 1;
gboolean is_style_dirty : 1;
gboolean draw_bg_color : 1;
gboolean draw_border_internal : 1;
@@ -105,7 +104,6 @@ enum
PROP_PSEUDO_CLASS,
PROP_STYLE_CLASS,
PROP_STYLE,
- PROP_STYLABLE,
PROP_TRACK_HOVER,
PROP_HOVER,
PROP_CAN_FOCUS,
@@ -164,14 +162,6 @@ st_widget_set_property (GObject *gobject,
st_widget_set_style (actor, g_value_get_string (value));
break;
- case PROP_STYLABLE:
- if (actor->priv->is_stylable != g_value_get_boolean (value))
- {
- actor->priv->is_stylable = g_value_get_boolean (value);
- clutter_actor_queue_relayout ((ClutterActor *) gobject);
- }
- break;
-
case PROP_TRACK_HOVER:
st_widget_set_track_hover (actor, g_value_get_boolean (value));
break;
@@ -229,10 +219,6 @@ st_widget_get_property (GObject *gobject,
g_value_set_string (value, priv->inline_style);
break;
- case PROP_STYLABLE:
- g_value_set_boolean (value, priv->is_stylable);
- break;
-
case PROP_TRACK_HOVER:
g_value_set_boolean (value, priv->track_hover);
break;
@@ -538,12 +524,6 @@ notify_children_of_style_change (ClutterActor *self)
static void
st_widget_real_style_changed (StWidget *self)
{
- StWidgetPrivate *priv = ST_WIDGET (self)->priv;
-
- /* application has request this widget is not stylable */
- if (!priv->is_stylable)
- return;
-
clutter_actor_queue_redraw ((ClutterActor *) self);
notify_children_of_style_change ((ClutterActor *) self);
}
@@ -930,20 +910,6 @@ st_widget_class_init (StWidgetClass *klass)
ST_PARAM_READWRITE));
/**
- * StWidget:stylable:
- *
- * Enable or disable styling of the widget
- */
- pspec = g_param_spec_boolean ("stylable",
- "Stylable",
- "Whether the table should be styled",
- TRUE,
- ST_PARAM_READWRITE);
- g_object_class_install_property (gobject_class,
- PROP_STYLABLE,
- pspec);
-
- /**
* StWidget:track-hover:
*
* Determines whether the widget tracks pointer hover state. If
@@ -1533,7 +1499,6 @@ st_widget_init (StWidget *actor)
int i;
actor->priv = priv = ST_WIDGET_GET_PRIVATE (actor);
- priv->is_stylable = TRUE;
priv->transition_animation = NULL;
priv->local_state_set = atk_state_set_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]