From ff397723acca6d1bc6ed38727d07bb8ff32cd0cb Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 4 Oct 2010 13:25:15 -0400 Subject: Fix distcheck errors. --- shell/test/e-test-shell-view.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'shell/test/e-test-shell-view.c') diff --git a/shell/test/e-test-shell-view.c b/shell/test/e-test-shell-view.c index b4464cc68f..4ecda3035c 100644 --- a/shell/test/e-test-shell-view.c +++ b/shell/test/e-test-shell-view.c @@ -74,6 +74,7 @@ test_shell_view_constructed (GObject *object) EShellBackend *shell_backend; EShellView *shell_view; EActivity *activity; + GCancellable *cancellable; GtkWidget *widget; /* Chain up to parent's constructed() method. */ @@ -94,9 +95,12 @@ test_shell_view_constructed (GObject *object) gtk_container_add (GTK_CONTAINER (shell_sidebar), widget); gtk_widget_show (widget); - activity = e_activity_new ("Test Activity"); - e_activity_set_allow_cancel (activity, TRUE); + activity = e_activity_new (); + cancellable = g_cancellable_new (); + e_activity_set_cancellable (activity, cancellable); + e_activity_set_primary_text (activity, "Test Activity"); e_shell_backend_add_activity (shell_backend, activity); + g_object_unref (cancellable); priv->activity = activity; } -- cgit