aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-05-11 03:32:33 +0800
committerIain Holmes <iain@src.gnome.org>2001-05-11 03:32:33 +0800
commitdb264cc52e48ec5025e2c76b26502dba6358073f (patch)
tree376673ec1f419c38fe7e591c60fc196729ee6dd5
parentaafa7e89665dca63dda4a68cc64730b33b6ce5a3 (diff)
downloadgsoc2013-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
-rw-r--r--executive-summary/ChangeLog7
-rw-r--r--executive-summary/test-service/rdf-summary.c7
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,5 +1,12 @@
2001-05-10 Iain Holmes <iain@ximian.com>
+ * 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 <iain@ximian.com>
+
* test-service/rdf-summary.c (property_control): Don't let the spinner
be set to 0
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"));