aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-05-11 03:06:48 +0800
committerIain Holmes <iain@src.gnome.org>2001-05-11 03:06:48 +0800
commitd16acb954a6919ce909c105c52e205159bf1af08 (patch)
treedfd22320964cb685f9708dcb3741abe2cc317f6b
parentdd04e750f24f2e0300bc45e4916dddf6d492024c (diff)
downloadgsoc2013-evolution-d16acb954a6919ce909c105c52e205159bf1af08.tar
gsoc2013-evolution-d16acb954a6919ce909c105c52e205159bf1af08.tar.gz
gsoc2013-evolution-d16acb954a6919ce909c105c52e205159bf1af08.tar.bz2
gsoc2013-evolution-d16acb954a6919ce909c105c52e205159bf1af08.tar.lz
gsoc2013-evolution-d16acb954a6919ce909c105c52e205159bf1af08.tar.xz
gsoc2013-evolution-d16acb954a6919ce909c105c52e205159bf1af08.tar.zst
gsoc2013-evolution-d16acb954a6919ce909c105c52e205159bf1af08.zip
Fix a crash when Update Now is clicked.
svn path=/trunk/; revision=9745
-rw-r--r--executive-summary/ChangeLog7
-rw-r--r--executive-summary/test-service/rdf-summary.c9
2 files changed, 15 insertions, 1 deletions
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 <iain@ximian.com>
+
+ * 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 <menesis@delfi.lt>
* 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
@@ -632,6 +632,13 @@ download (RdfSummary *summary)
}
static void
+download_cb (GtkWidget *w,
+ RdfSummary *summary)
+{
+ download (summary);
+}
+
+static void
get_prop (BonoboPropertyBag *bag,
BonoboArg *arg,
guint arg_id,
@@ -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);