diff options
author | Iain Holmes <iain@src.gnome.org> | 2000-12-11 23:47:01 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2000-12-11 23:47:01 +0800 |
commit | b3ce14cf25ba9ea7d7a6f297c1cd479d26f64894 (patch) | |
tree | f49a6a85d2d8d455cdf9c94fd6ae3d8ce3aa69df /executive-summary/test-service | |
parent | 96fb2423d02a5ca60fa61765c63817c816ee267f (diff) | |
download | gsoc2013-evolution-b3ce14cf25ba9ea7d7a6f297c1cd479d26f64894.tar.gz gsoc2013-evolution-b3ce14cf25ba9ea7d7a6f297c1cd479d26f64894.tar.zst gsoc2013-evolution-b3ce14cf25ba9ea7d7a6f297c1cd479d26f64894.zip |
Changes to the HTML file to add an entry box.
Changed to use the new BonoboPropertyControl methods, and changed
executive-summary-html-view to use the same idea.
Added rdf-summary to the .cvsignore, and put a timeout so that it can return
imediatly if there is a hold up on the connection.
svn path=/trunk/; revision=6905
Diffstat (limited to 'executive-summary/test-service')
-rw-r--r-- | executive-summary/test-service/.cvsignore | 3 | ||||
-rw-r--r-- | executive-summary/test-service/rdf-summary.c | 18 |
2 files changed, 16 insertions, 5 deletions
diff --git a/executive-summary/test-service/.cvsignore b/executive-summary/test-service/.cvsignore index 2473a602c4..24785c988a 100644 --- a/executive-summary/test-service/.cvsignore +++ b/executive-summary/test-service/.cvsignore @@ -3,4 +3,5 @@ Makefile core .deps .libs -test-service
\ No newline at end of file +test-service +rdf-summary diff --git a/executive-summary/test-service/rdf-summary.c b/executive-summary/test-service/rdf-summary.c index 9596472a58..48b4b8ece0 100644 --- a/executive-summary/test-service/rdf-summary.c +++ b/executive-summary/test-service/rdf-summary.c @@ -300,6 +300,7 @@ download (RdfSummary *summary) /* Then parse it */ /* The update it */ + g_print ("Starting download\n"); view = EXECUTIVE_SUMMARY_HTML_VIEW (summary->view); result = gnome_vfs_open (&handle, summary->location, GNOME_VFS_OPEN_READ); @@ -353,6 +354,8 @@ download (RdfSummary *summary) tree_walk (doc->root, summary, html); executive_summary_html_view_set_html (view, html->str); g_string_free (html, TRUE); + + g_print ("Finished Download\n"); return FALSE; } @@ -495,7 +498,7 @@ create_view (ExecutiveSummaryComponentFactory *_factory, void *closure) { RdfSummary *summary; - BonoboObject *component, *view, *bag, *property; + BonoboObject *component, *view, *bag, *property, *event_source; char *html = "<b>Loading RDF file. . .<br>Please wait</b>"; summary = g_new (RdfSummary, 1); @@ -510,7 +513,12 @@ create_view (ExecutiveSummaryComponentFactory *_factory, summary->component = component; - view = executive_summary_html_view_new (); + /* Share the event source between the ExecutiveSummaryHtmlView and the + BonoboPropertyControl as we can only have one Bonobo::EventSource + interface aggregated */ + event_source = bonobo_event_source_new (); + + view = executive_summary_html_view_new_full (BONOBO_EVENT_SOURCE (event_source)); summary->view = view; executive_summary_html_view_set_html (EXECUTIVE_SUMMARY_HTML_VIEW (view), html); @@ -528,7 +536,9 @@ create_view (ExecutiveSummaryComponentFactory *_factory, "The icon for this component's window", 0); bonobo_object_add_interface (component, bag); - property = bonobo_property_control_new (property_control, 1, summary); + property = bonobo_property_control_new_full (property_control, 1, + BONOBO_EVENT_SOURCE (event_source), + summary); summary->property_control = property; gtk_signal_connect (GTK_OBJECT (property), "action", @@ -537,7 +547,7 @@ create_view (ExecutiveSummaryComponentFactory *_factory, bonobo_object_add_interface (component, property); running_views++; - g_idle_add (download, summary); + gtk_timeout_add (5000, download, summary); return component; } |