[glade] 2011-10-11 Johannes Schmid <jhs gnome org>
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] 2011-10-11 Johannes Schmid <jhs gnome org>
- Date: Tue, 11 Oct 2011 20:16:01 +0000 (UTC)
commit 2af8a582ee19062e8b3495e80092cf94974a7490
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Tue Oct 11 16:18:44 2011 -0400
2011-10-11 Johannes Schmid <jhs gnome org>
* gladeui/glade-project.c: Avoid crashing if glade-previewer is not installed, bug 650899.
ChangeLog | 4 ++++
gladeui/glade-project.c | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bc0acc2..0f422b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-11 Johannes Schmid <jhs gnome org>
+
+ * gladeui/glade-project.c: Avoid crashing if glade-previewer is not installed, bug 650899.
+
2011-10-11 Tristan Van Berkom <tvb gnome org>
* gladeui/glade-app.h: Make Glade 3.10 use new environment variables for proper
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index b0244c0..9dea0a7 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -2013,7 +2013,9 @@ glade_project_preview (GladeProject *project, GladeWidget *gwidget)
if (!preview)
{
+ /* If the previewer program is somehow missing, this can return NULL */
preview = glade_preview_launch (gwidget, text);
+ g_return_if_fail (GLADE_IS_PREVIEW (preview));
/* Leave project data on the preview */
g_object_set_data (G_OBJECT (preview), "project", project);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]