[glade/glade-3-16] Added extra check in glade_project_verify_signal_internal() because it the widget could not have an



commit da561f30499da3e9ed97be2386ba6a2a993a6de7
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 1f427ef..2f76862 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]