diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-05-11 03:32:33 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-05-11 03:32:33 +0800 |
commit | db264cc52e48ec5025e2c76b26502dba6358073f (patch) | |
tree | 376673ec1f419c38fe7e591c60fc196729ee6dd5 /executive-summary/test-service/rdf-summary.c | |
parent | aafa7e89665dca63dda4a68cc64730b33b6ce5a3 (diff) | |
download | gsoc2013-evolution-db264cc52e48ec5025e2c76b26502dba6358073f.tar gsoc2013-evolution-db264cc52e48ec5025e2c76b26502dba6358073f.tar.gz gsoc2013-evolution-db264cc52e48ec5025e2c76b26502dba6358073f.tar.bz2 gsoc2013-evolution-db264cc52e48ec5025e2c76b26502dba6358073f.tar.lz gsoc2013-evolution-db264cc52e48ec5025e2c76b26502dba6358073f.tar.xz gsoc2013-evolution-db264cc52e48ec5025e2c76b26502dba6358073f.tar.zst gsoc2013-evolution-db264cc52e48ec5025e2c76b26502dba6358073f.zip |
Make the time section work
svn path=/trunk/; revision=9747
Diffstat (limited to 'executive-summary/test-service/rdf-summary.c')
-rw-r--r-- | executive-summary/test-service/rdf-summary.c | 7 |
1 files changed, 5 insertions, 2 deletions
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")); |