[glade3] * gladeui/glade-widget.c: Fix bug 585860
- From: James Liggett <jrliggett src gnome org>
- To: svn-commits-list gnome org
- Subject: [glade3] * gladeui/glade-widget.c: Fix bug 585860
- Date: Thu, 18 Jun 2009 16:27:49 -0400 (EDT)
commit 020ae58855c7affdfa8c5c748ea69514a41e1631
Author: James Liggett <jrliggett cox net>
Date: Thu Jun 18 13:20:54 2009 -0700
* gladeui/glade-widget.c: Fix bug 585860
Make sure that the project view is not NULL in glade_widget_show.
ChangeLog | 5 +++++
gladeui/glade-widget.c | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 101514f..86bd85f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-18 James Liggett <jrliggett cox net>
+
+ * gladeui/glade-widget.c: Make sure that the project view is not
+ NULL in glade_widget_show. (bug 585860)
+
2009-06-15 Tristan Van Berkom <tvb gnome org>
* plugins/gtk+/gtk+.xml.in: Make assistant page-titles translatable (bug 503146), marked since 2.10 on
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index b938bb5..2e216db 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -1962,6 +1962,10 @@ glade_widget_show (GladeWidget *widget)
view = glade_design_view_get_from_project (glade_widget_get_project (widget));
+
+ if (!view)
+ return;
+
layout = GTK_WIDGET (glade_design_view_get_layout (view));
if (!layout)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]