diff options
author | Iain Holmes <iain@helixcode.com> | 2000-10-10 08:03:25 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2000-10-10 08:03:25 +0800 |
commit | 31f7447f6cef8ea08fd323e4d56e76a1999431a5 (patch) | |
tree | 944d4845786e9d96b764291b431c0a0f78392770 /executive-summary/test-service | |
parent | 24926636e65df9318a9e688f885b34fccdb77cd6 (diff) | |
download | gsoc2013-evolution-31f7447f6cef8ea08fd323e4d56e76a1999431a5.tar.gz gsoc2013-evolution-31f7447f6cef8ea08fd323e4d56e76a1999431a5.tar.zst gsoc2013-evolution-31f7447f6cef8ea08fd323e4d56e76a1999431a5.zip |
Added an icon parameter to the create_view methods.
2000-10-09 Iain Holmes <iain@helixcode.com>
* 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
Diffstat (limited to 'executive-summary/test-service')
-rw-r--r-- | executive-summary/test-service/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
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<br><center>0</center><br>seconds have passed."); } |