[glade] Added extra check in glade_project_verify_signal_internal() because it the widget could not have an
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Added extra check in glade_project_verify_signal_internal() because it the widget could not have an
- Date: Mon, 16 Sep 2013 19:08:26 +0000 (UTC)
commit 44362e08e5e449e9e6e3598fa2b94debc0d430ad
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Mon Sep 16 14:28:54 2013 -0300
Added extra check in glade_project_verify_signal_internal()
because it the widget could not have an associated project.
gladeui/glade-project.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index a2881ea..d586269 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -2907,6 +2907,7 @@ glade_project_verify_signal_internal (GladeWidget *widget,
GladeWidgetAdaptor *adaptor;
gint target_major, target_minor;
gchar *catalog;
+ GladeProject *project;
signal_class =
glade_widget_adaptor_get_signal_class (glade_widget_get_adaptor (widget),
@@ -2916,10 +2917,13 @@ glade_project_verify_signal_internal (GladeWidget *widget,
return;
adaptor = glade_signal_class_get_adaptor (signal_class);
+ project = glade_widget_get_project (widget);
+
+ if (!project)
+ return;
g_object_get (adaptor, "catalog", &catalog, NULL);
- glade_project_target_version_for_adaptor (glade_widget_get_project (widget),
- adaptor,
+ glade_project_target_version_for_adaptor (project, adaptor,
&target_major, &target_minor);
if ((flags & GLADE_VERIFY_VERSIONS) != 0 &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]