[glide] Fix trashing the theme preview borders
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Fix trashing the theme preview borders
- Date: Sat, 5 Jun 2010 22:36:34 +0000 (UTC)
commit cf8f93885c12e9e552ce334399fb82f68393f4a1
Author: Robert Carr <racarr Valentine localdomain>
Date: Sat Jun 5 18:38:08 2010 -0400
Fix trashing the theme preview borders
libglide/glide-theme-preview-actor.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libglide/glide-theme-preview-actor.c b/libglide/glide-theme-preview-actor.c
index e3511c0..8f5a903 100644
--- a/libglide/glide-theme-preview-actor.c
+++ b/libglide/glide-theme-preview-actor.c
@@ -54,6 +54,9 @@ glide_theme_preview_actor_update_texture (GlideThemePreviewActor *preview)
static void
glide_theme_preview_actor_finalize (GObject *object)
{
+ GlideThemePreviewActor *preview = (GlideThemePreviewActor *)object;
+
+ g_object_unref (G_OBJECT (preview->priv->border));
}
static void
@@ -113,7 +116,7 @@ glide_theme_preview_actor_add_border (GlideThemePreviewActor *preview)
clutter_actor_set_size (border, 160, 120);
clutter_actor_set_position (border, 0, 0);
- preview->priv->border = border;
+ preview->priv->border = (ClutterActor *)g_object_ref ((GObject *)border);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]