From db264cc52e48ec5025e2c76b26502dba6358073f Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Thu, 10 May 2001 19:32:33 +0000 Subject: Make the time section work svn path=/trunk/; revision=9747 --- executive-summary/ChangeLog | 7 +++++++ executive-summary/test-service/rdf-summary.c | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/executive-summary/ChangeLog b/executive-summary/ChangeLog index 118409dbdc..67ecb2630b 100644 --- a/executive-summary/ChangeLog +++ b/executive-summary/ChangeLog @@ -1,3 +1,10 @@ +2001-05-10 Iain Holmes + + * test-service/rdf-summary.c (load_from_stream): Set the time, not the + timeout id. (duh!) + (summary_to_string): Get the time, not the timeout id. (DUH!) + (property_control): Connect the spin button to the item_changed callback. + 2001-05-10 Iain Holmes * test-service/rdf-summary.c (property_control): Don't let the spinner diff --git a/executive-summary/test-service/rdf-summary.c b/executive-summary/test-service/rdf-summary.c index 10715cb799..1024b57662 100644 --- a/executive-summary/test-service/rdf-summary.c +++ b/executive-summary/test-service/rdf-summary.c @@ -390,7 +390,7 @@ load_from_stream (BonoboPersistStream *ps, if (strcasecmp (children->name, "timer") == 0) { xml_str = xmlNodeListGetString (doc, children->childs, 1); - summary->timer = atoi (xml_str); + summary->time = atoi (xml_str); xmlFree (xml_str); children = children->next; @@ -431,7 +431,7 @@ summary_to_string (RdfSummary *summary) xmlNewChild (doc->root, ns, "usetimer", tmp_str); g_free (tmp_str); - tmp_str = g_strdup_printf ("%d", summary->timer); + tmp_str = g_strdup_printf ("%d", summary->time); xmlNewChild (doc->root, ns, "timer", tmp_str); g_free (tmp_str); @@ -798,6 +798,9 @@ property_control (BonoboPropertyControl *property_control, summary->adjustment = GTK_ADJUSTMENT(gtk_adjustment_new (summary->time / 1000 / 60, 1.0, 1000.0, 1.0, 10.0, 1.0)); spinner = gtk_spin_button_new (summary->adjustment, 1.0, 0); + gtk_signal_connect (GTK_OBJECT (spinner), "changed", + GTK_SIGNAL_FUNC (item_changed), summary); + gtk_box_pack_start (GTK_BOX (hbox), spinner, FALSE, FALSE, 0); label = gtk_label_new (_("minutes")); -- cgit v1.2.3