From d16acb954a6919ce909c105c52e205159bf1af08 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Thu, 10 May 2001 19:06:48 +0000 Subject: Fix a crash when Update Now is clicked. svn path=/trunk/; revision=9745 --- executive-summary/ChangeLog | 7 +++++++ executive-summary/test-service/rdf-summary.c | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/executive-summary/ChangeLog b/executive-summary/ChangeLog index c32028b771..c3f306300b 100644 --- a/executive-summary/ChangeLog +++ b/executive-summary/ChangeLog @@ -1,3 +1,10 @@ +2001-05-10 Iain Holmes + + * test-service/rdf-summary.c (download_cb): Proxy clicked events to + download. + (property_control): Connect the Update Now button to the download_cb + instead of download to prevent a crash. + 2001-05-05 Gediminas Paulauskas * component/Makefile.am, evolution-services/Makefile.am: no need of diff --git a/executive-summary/test-service/rdf-summary.c b/executive-summary/test-service/rdf-summary.c index c7bf12cf0f..6c513280c0 100644 --- a/executive-summary/test-service/rdf-summary.c +++ b/executive-summary/test-service/rdf-summary.c @@ -631,6 +631,13 @@ download (RdfSummary *summary) return FALSE; } +static void +download_cb (GtkWidget *w, + RdfSummary *summary) +{ + download (summary); +} + static void get_prop (BonoboPropertyBag *bag, BonoboArg *arg, @@ -777,7 +784,7 @@ property_control (BonoboPropertyControl *property_control, button = gtk_button_new_with_label (_("Update now")); gtk_signal_connect (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (download), summary); + GTK_SIGNAL_FUNC (download_cb), summary); gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (container), hbox, FALSE, FALSE, 0); -- cgit v1.2.3