aboutsummaryrefslogtreecommitdiffstats
path: root/executive-summary/evolution-services/executive-summary-client.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2000-10-26 07:03:33 +0800
committerIain Holmes <iain@src.gnome.org>2000-10-26 07:03:33 +0800
commit20394851919f80269d11aa460e60f2bd1e46b7dc (patch)
tree6b3fc7cd84913f288434f58e5a4a9cb86604b073 /executive-summary/evolution-services/executive-summary-client.c
parent8ab09706d1ddaa55f1e76dc395fdee2104e4d105 (diff)
downloadgsoc2013-evolution-20394851919f80269d11aa460e60f2bd1e46b7dc.tar
gsoc2013-evolution-20394851919f80269d11aa460e60f2bd1e46b7dc.tar.gz
gsoc2013-evolution-20394851919f80269d11aa460e60f2bd1e46b7dc.tar.bz2
gsoc2013-evolution-20394851919f80269d11aa460e60f2bd1e46b7dc.tar.lz
gsoc2013-evolution-20394851919f80269d11aa460e60f2bd1e46b7dc.tar.xz
gsoc2013-evolution-20394851919f80269d11aa460e60f2bd1e46b7dc.tar.zst
gsoc2013-evolution-20394851919f80269d11aa460e60f2bd1e46b7dc.zip
Summary is back in :D
Fixed a silly size issue for composer file selectors. svn path=/trunk/; revision=6187
Diffstat (limited to 'executive-summary/evolution-services/executive-summary-client.c')
-rw-r--r--executive-summary/evolution-services/executive-summary-client.c41
1 files changed, 27 insertions, 14 deletions
diff --git a/executive-summary/evolution-services/executive-summary-client.c b/executive-summary/evolution-services/executive-summary-client.c
index f608b0908f..88796d1753 100644
--- a/executive-summary/evolution-services/executive-summary-client.c
+++ b/executive-summary/evolution-services/executive-summary-client.c
@@ -95,18 +95,16 @@ E_MAKE_TYPE (executive_summary_client, "ExecutiveSummaryClient",
void
executive_summary_client_set_title (ExecutiveSummaryClient *client,
- ExecutiveSummaryComponent *component,
+ int id,
const char *title)
{
Evolution_Summary summary;
- Evolution_SummaryComponent corba_object;
CORBA_Environment ev;
CORBA_exception_init (&ev);
summary = bonobo_object_corba_objref (BONOBO_OBJECT (client));
- corba_object = bonobo_object_corba_objref (BONOBO_OBJECT (component));
- Evolution_Summary_set_title (summary, corba_object, title, &ev);
+ Evolution_Summary_set_title (summary, id, title, &ev);
if (ev._major != CORBA_NO_EXCEPTION) {
g_warning ("Error setting title to %s:%s", title, CORBA_exception_id (&ev));
@@ -116,18 +114,36 @@ executive_summary_client_set_title (ExecutiveSummaryClient *client,
}
void
+executive_summary_client_set_icon (ExecutiveSummaryClient *client,
+ int id,
+ const char *icon)
+{
+ Evolution_Summary summary;
+ CORBA_Environment ev;
+
+ CORBA_exception_init (&ev);
+ summary = bonobo_object_corba_objref (BONOBO_OBJECT (client));
+
+ Evolution_Summary_set_icon (summary, id, icon, &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("Error setting icon to %s:%s", icon, CORBA_exception_id (&ev));
+ }
+
+ CORBA_exception_free (&ev);
+}
+
+void
executive_summary_client_flash (ExecutiveSummaryClient *client,
- ExecutiveSummaryComponent *component)
+ int id)
{
Evolution_Summary summary;
- Evolution_SummaryComponent corba_object;
CORBA_Environment ev;
CORBA_exception_init (&ev);
summary = bonobo_object_corba_objref (BONOBO_OBJECT (client));
- corba_object = bonobo_object_corba_objref (BONOBO_OBJECT (component));
- Evolution_Summary_flash (summary, corba_object, &ev);
+ Evolution_Summary_flash (summary, id, &ev);
if (ev._major != CORBA_NO_EXCEPTION) {
g_warning ("Error flashing");
@@ -138,19 +154,16 @@ executive_summary_client_flash (ExecutiveSummaryClient *client,
void
executive_summary_client_update (ExecutiveSummaryClient *client,
- ExecutiveSummaryComponent *component,
- char *html)
+ int id,
+ const char *html)
{
Evolution_Summary summary;
- Evolution_SummaryComponent corba_object;
CORBA_Environment ev;
CORBA_exception_init (&ev);
summary = bonobo_object_corba_objref (BONOBO_OBJECT (client));
- corba_object = bonobo_object_corba_objref (BONOBO_OBJECT (component));
- Evolution_Summary_update_html_component (summary, corba_object,
- html, &ev);
+ Evolution_Summary_update_component (summary, id, html, &ev);
if (ev._major != CORBA_NO_EXCEPTION) {
g_warning ("Error updating the component");
}