Commit 767f9532 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte
Browse files

Fix tests.

parent 29f75fee
Pipeline #218216 passed with stages
in 4 minutes and 47 seconds
......@@ -59,7 +59,7 @@ glade_gtk_action_bar_post_create (GladeWidgetAdaptor *adaptor,
GladeWidget *gwidget = glade_widget_get_from_gobject (container);
GladeProject *project = glade_widget_get_project (gwidget);
if (glade_project_is_loading (project))
if (project && glade_project_is_loading (project))
g_signal_connect_object (project, "parse-finished",
G_CALLBACK (glade_gtk_action_bar_parse_finished),
container,
......
......@@ -201,7 +201,7 @@ glade_gtk_assistant_post_create (GladeWidgetAdaptor *adaptor,
/* Chain Up first */
GLADE_WIDGET_ADAPTOR_GET_ADAPTOR_CLASS (GTK_TYPE_WINDOW)->post_create (adaptor, object, reason);
if (glade_project_is_loading (project))
if (project && glade_project_is_loading (project))
{
g_signal_connect_object (project, "parse-finished",
G_CALLBACK (glade_gtk_assistant_parse_finished),
......
......@@ -87,7 +87,7 @@ glade_gtk_box_post_create (GladeWidgetAdaptor *adaptor,
g_signal_connect (G_OBJECT (gwidget), "configure-end",
G_CALLBACK (glade_gtk_box_configure_end), container);
if (glade_project_is_loading (project))
if (project && glade_project_is_loading (project))
{
g_signal_connect_object (project, "parse-finished",
G_CALLBACK (glade_gtk_box_parse_finished),
......
......@@ -210,7 +210,7 @@ glade_gtk_grid_post_create (GladeWidgetAdaptor *adaptor,
g_signal_connect (G_OBJECT (gwidget), "configure-end",
G_CALLBACK (glade_gtk_grid_configure_end), container);
if (glade_project_is_loading (project))
if (project && glade_project_is_loading (project))
g_signal_connect_object (project, "parse-finished",
G_CALLBACK (glade_gtk_grid_parse_finished),
container,
......
......@@ -83,7 +83,7 @@ glade_gtk_header_bar_post_create (GladeWidgetAdaptor *adaptor,
GladeWidget *parent = glade_widget_get_from_gobject (container);
GladeProject *project = glade_widget_get_project (parent);
if (glade_project_is_loading (project))
if (project && glade_project_is_loading (project))
{
g_signal_connect_object (project, "parse-finished",
G_CALLBACK (glade_gtk_header_bar_parse_finished),
......
......@@ -186,7 +186,7 @@ glade_gtk_listbox_post_create (GladeWidgetAdaptor *adaptor,
GladeWidget *gwidget = glade_widget_get_from_gobject (container);
GladeProject *project = glade_widget_get_project (gwidget);
if (glade_project_is_loading (project))
if (project && glade_project_is_loading (project))
{
g_signal_connect_object (project, "parse-finished",
G_CALLBACK (glade_gtk_listbox_parse_finished),
......
......@@ -414,7 +414,7 @@ glade_gtk_notebook_post_create (GladeWidgetAdaptor *adaptor,
g_signal_connect (G_OBJECT (notebook), "switch-page",
G_CALLBACK (glade_gtk_notebook_switch_page), NULL);
if (glade_project_is_loading (project))
if (project && glade_project_is_loading (project))
g_signal_connect_object (project, "parse-finished",
G_CALLBACK (glade_gtk_notebook_parse_finished),
notebook,
......
......@@ -167,7 +167,7 @@ glade_gtk_popover_menu_post_create (GladeWidgetAdaptor *adaptor,
GladeWidget *parent = glade_widget_get_from_gobject (container);
GladeProject *project = glade_widget_get_project (parent);
if (glade_project_is_loading (project))
if (project && glade_project_is_loading (project))
g_signal_connect_object (project, "parse-finished",
G_CALLBACK (glade_gtk_popover_menu_parse_finished),
container,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment