[glide] Fix some warnings with null selection
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Fix some warnings with null selection
- Date: Sun, 2 May 2010 08:11:25 +0000 (UTC)
commit 809ffaf4c9fadf86664971c537059c5418fbf6c9
Author: Robert Carr <racarr Valentine localdomain>
Date: Sun May 2 02:13:25 2010 -0400
Fix some warnings with null selection
src/glide-inspector-actor.c | 3 +++
src/glide-inspector-animation.c | 2 ++
src/glide-inspector-image.c | 3 +++
src/glide-inspector-slide.c | 3 +++
src/glide-inspector-text.c | 2 ++
5 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/glide-inspector-actor.c b/src/glide-inspector-actor.c
index 139d385..eae6531 100644
--- a/src/glide-inspector-actor.c
+++ b/src/glide-inspector-actor.c
@@ -417,6 +417,9 @@ glide_inspector_actor_set_actor (GlideInspectorActor *inspector,
}
inspector->priv->actor = actor;
+ if (!actor)
+ return;
+
if (GLIDE_IS_SLIDE (actor))
{
gtk_widget_set_sensitive (GTK_WIDGET (inspector), FALSE);
diff --git a/src/glide-inspector-animation.c b/src/glide-inspector-animation.c
index 48c9a90..06ec67e 100644
--- a/src/glide-inspector-animation.c
+++ b/src/glide-inspector-animation.c
@@ -414,6 +414,8 @@ glide_inspector_animation_set_actor (GlideInspectorAnimation *inspector,
GlideActor *actor)
{
inspector->priv->actor = actor;
+ if (!actor)
+ return;
if (!GLIDE_IS_SLIDE (actor))
{
diff --git a/src/glide-inspector-image.c b/src/glide-inspector-image.c
index 43c73ad..f38b5e4 100644
--- a/src/glide-inspector-image.c
+++ b/src/glide-inspector-image.c
@@ -198,6 +198,9 @@ glide_inspector_image_set_actor (GlideInspectorImage *inspector,
{
inspector->priv->actor = actor;
+ if (!actor)
+ return;
+
if (!GLIDE_IS_IMAGE (actor))
{
gtk_widget_set_sensitive (GTK_WIDGET (inspector), FALSE);
diff --git a/src/glide-inspector-slide.c b/src/glide-inspector-slide.c
index 1df76db..61d7255 100644
--- a/src/glide-inspector-slide.c
+++ b/src/glide-inspector-slide.c
@@ -284,6 +284,9 @@ glide_inspector_slide_set_actor (GlideInspectorSlide *inspector,
}
inspector->priv->actor = actor;
+ if (!actor)
+ return;
+
if (!GLIDE_IS_SLIDE (actor))
{
gtk_widget_set_sensitive (GTK_WIDGET (inspector), FALSE);
diff --git a/src/glide-inspector-text.c b/src/glide-inspector-text.c
index 644be52..35e9284 100644
--- a/src/glide-inspector-text.c
+++ b/src/glide-inspector-text.c
@@ -204,6 +204,8 @@ glide_inspector_text_set_actor (GlideInspectorText *inspector,
inspector->priv->font_notify_id = 0;
}
inspector->priv->actor = actor;
+ if (!actor)
+ return;
if (!GLIDE_IS_TEXT (actor))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]