From 31f7447f6cef8ea08fd323e4d56e76a1999431a5 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Tue, 10 Oct 2000 00:03:25 +0000 Subject: Added an icon parameter to the create_view methods. 2000-10-09 Iain Holmes * idl/SummaryComponent.idl: Added an icon parameter to the create_view methods. * evolution-services/executive-summary-component.c: Implement the icon parameter. * evolution-services/executive-summary-component-client.c: Ditto * component/e-summary.c: Draw the specified icon. * component/e-summary-factory.c: Use the icon parameter svn path=/trunk/; revision=5805 --- executive-summary/test-service/main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'executive-summary/test-service') diff --git a/executive-summary/test-service/main.c b/executive-summary/test-service/main.c index 626f179289..2f2fcb32b0 100644 --- a/executive-summary/test-service/main.c +++ b/executive-summary/test-service/main.c @@ -44,12 +44,15 @@ view_destroyed (GtkWidget *widget, static BonoboObject* create_view (ExecutiveSummaryComponent *component, char **title, + char **icon, void *closure) { BonoboControl *control; GtkWidget *button; *title = g_strdup ("This is the test bonobo service"); + *icon = g_strdup ("gnome-clock.png"); + button = gtk_button_new_with_label ("A test service with a whole button"); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (clicked_cb), NULL); @@ -68,9 +71,12 @@ create_view (ExecutiveSummaryComponent *component, static char * create_html (ExecutiveSummaryComponent *component, char **title, + char **icon, void *closure) { *title = g_strdup ("The Magic Counter"); + *icon = g_strdup ("gnome-clock.png"); + gtk_timeout_add (1000, clicked_cb, component); return g_strdup ("Since you started this service
0

seconds have passed."); } -- cgit