[gnome-shell] [StWidget] Clean up private member variables
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [StWidget] Clean up private member variables
- Date: Wed, 26 May 2010 12:37:16 +0000 (UTC)
commit d05cf2445db8959a8f43f4d645be666bce29f8f6
Author: Florian Müllner <fmuellner src gnome org>
Date: Tue May 18 20:51:44 2010 +0200
[StWidget] Clean up private member variables
When moving the drawing code into StThemeNode, most private members
of StWidget became obsolete, so remove them.
https://bugzilla.gnome.org/show_bug.cgi?id=619025
src/st/st-widget.c | 32 --------------------------------
1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/src/st/st-widget.c b/src/st/st-widget.c
index 80da31e..e3b0547 100644
--- a/src/st/st-widget.c
+++ b/src/st/st-widget.c
@@ -53,20 +53,6 @@ struct _StWidgetPrivate
gchar *style_class;
gchar *inline_style;
- ClutterActor *border_image;
- ClutterActor *background_image;
- ClutterColor bg_color;
-
- guint border_width;
- ClutterColor border_color;
-
- StGradientType bg_gradient_type;
- ClutterColor bg_gradient_end;
-
- ClutterActorBox background_allocation;
- gdouble shadow_xoffset;
- gdouble shadow_yoffset;
-
gboolean is_stylable : 1;
gboolean has_tooltip : 1;
gboolean is_style_dirty : 1;
@@ -243,12 +229,6 @@ st_widget_dispose (GObject *gobject)
priv->theme = NULL;
}
- if (priv->border_image)
- {
- clutter_actor_unparent (priv->border_image);
- priv->border_image = NULL;
- }
-
if (priv->theme_node)
{
g_object_run_dispose (G_OBJECT (priv->theme_node));
@@ -404,12 +384,6 @@ st_widget_map (ClutterActor *actor)
st_widget_ensure_style ((StWidget*) actor);
- if (priv->border_image)
- clutter_actor_map (priv->border_image);
-
- if (priv->background_image)
- clutter_actor_map (priv->background_image);
-
if (priv->tooltip)
clutter_actor_map ((ClutterActor *) priv->tooltip);
}
@@ -421,12 +395,6 @@ st_widget_unmap (ClutterActor *actor)
CLUTTER_ACTOR_CLASS (st_widget_parent_class)->unmap (actor);
- if (priv->border_image)
- clutter_actor_unmap (priv->border_image);
-
- if (priv->background_image)
- clutter_actor_unmap (priv->background_image);
-
if (priv->tooltip)
clutter_actor_unmap ((ClutterActor *) priv->tooltip);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]