aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/itip-utils.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-11-08 06:47:47 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-11-08 06:47:47 +0800
commit222645151f9ba0c906ce50af6e969d79a480f66a (patch)
tree3a256bf8980abeb7ca15c96c5df2f6656e393661 /calendar/gui/itip-utils.c
parent21528af72621f17f26b18e53eb6d22f605b9941f (diff)
downloadgsoc2013-evolution-222645151f9ba0c906ce50af6e969d79a480f66a.tar
gsoc2013-evolution-222645151f9ba0c906ce50af6e969d79a480f66a.tar.gz
gsoc2013-evolution-222645151f9ba0c906ce50af6e969d79a480f66a.tar.bz2
gsoc2013-evolution-222645151f9ba0c906ce50af6e969d79a480f66a.tar.lz
gsoc2013-evolution-222645151f9ba0c906ce50af6e969d79a480f66a.tar.xz
gsoc2013-evolution-222645151f9ba0c906ce50af6e969d79a480f66a.tar.zst
gsoc2013-evolution-222645151f9ba0c906ce50af6e969d79a480f66a.zip
Initial port of gui/ subdir to GNOME 2
2002-11-07 JP Rosevear <jpr@ximian.com> * Initial port of gui/ subdir to GNOME 2 svn path=/trunk/; revision=18648
Diffstat (limited to 'calendar/gui/itip-utils.c')
-rw-r--r--calendar/gui/itip-utils.c44
1 files changed, 20 insertions, 24 deletions
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index f5c70086c0..8a1816d499 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -26,15 +26,11 @@
#include <bonobo/bonobo-exception.h>
#include <bonobo/bonobo-object.h>
-#include <bonobo/bonobo-object-client.h>
#include <bonobo/bonobo-moniker-util.h>
-#include <bonobo-conf/bonobo-config-database.h>
-#include <libgnome/gnome-defs.h>
#include <libgnome/gnome-i18n.h>
#include <gtk/gtkwidget.h>
#include <gal/widgets/e-gui-utils.h>
#include <gal/widgets/e-unicode.h>
-#include <gal/util/e-unicode-i18n.h>
#include <gal/util/e-util.h>
#include <ical.h>
#include <Evolution-Composer.h>
@@ -459,15 +455,15 @@ comp_subject (CalComponentItipMethod method, CalComponent *comp)
else {
switch (cal_component_get_vtype (comp)) {
case CAL_COMPONENT_EVENT:
- description = U_("Event information");
+ description = _("Event information");
case CAL_COMPONENT_TODO:
- description = U_("Task information");
+ description = _("Task information");
case CAL_COMPONENT_JOURNAL:
- description = U_("Journal information");
+ description = _("Journal information");
case CAL_COMPONENT_FREEBUSY:
- description = U_("Free/Busy information");
+ description = _("Free/Busy information");
default:
- description = U_("Calendar information");
+ description = _("Calendar information");
}
}
@@ -487,13 +483,13 @@ comp_subject (CalComponentItipMethod method, CalComponent *comp)
switch (a->status) {
case ICAL_PARTSTAT_ACCEPTED:
- prefix = U_("Accepted");
+ prefix = _("Accepted");
break;
case ICAL_PARTSTAT_TENTATIVE:
- prefix = U_("Tentatively Accepted");
+ prefix = _("Tentatively Accepted");
break;
case ICAL_PARTSTAT_DECLINED:
- prefix = U_("Declined");
+ prefix = _("Declined");
break;
default:
break;
@@ -503,23 +499,23 @@ comp_subject (CalComponentItipMethod method, CalComponent *comp)
break;
case CAL_COMPONENT_METHOD_ADD:
- prefix = U_("Updated");
+ prefix = _("Updated");
break;
case CAL_COMPONENT_METHOD_CANCEL:
- prefix = U_("Cancel");
+ prefix = _("Cancel");
break;
case CAL_COMPONENT_METHOD_REFRESH:
- prefix = U_("Refresh");
+ prefix = _("Refresh");
break;
case CAL_COMPONENT_METHOD_COUNTER:
- prefix = U_("Counter-proposal");
+ prefix = _("Counter-proposal");
break;
case CAL_COMPONENT_METHOD_DECLINECOUNTER:
- prefix = U_("Declined");
+ prefix = _("Declined");
break;
default:
@@ -568,11 +564,11 @@ comp_description (CalComponent *comp)
switch (cal_component_get_vtype (comp)) {
case CAL_COMPONENT_EVENT:
- return CORBA_string_dup (U_("Event information"));
+ return CORBA_string_dup (_("Event information"));
case CAL_COMPONENT_TODO:
- return CORBA_string_dup (U_("Task information"));
+ return CORBA_string_dup (_("Task information"));
case CAL_COMPONENT_JOURNAL:
- return CORBA_string_dup (U_("Journal information"));
+ return CORBA_string_dup (_("Journal information"));
case CAL_COMPONENT_FREEBUSY:
cal_component_get_dtstart (comp, &dt);
if (dt.value) {
@@ -589,13 +585,13 @@ comp_description (CalComponent *comp)
g_free (tmp_utf);
g_free (tmp);
} else {
- description = CORBA_string_dup (U_("Free/Busy information"));
+ description = CORBA_string_dup (_("Free/Busy information"));
}
g_free (start);
g_free (end);
return description;
default:
- return CORBA_string_dup (U_("iCalendar information"));
+ return CORBA_string_dup (_("iCalendar information"));
}
}
@@ -910,7 +906,7 @@ gboolean
itip_send_comp (CalComponentItipMethod method, CalComponent *send_comp,
CalClient *client, icalcomponent *zones)
{
- BonoboObjectClient *bonobo_server;
+ BonoboObject *bonobo_server;
GNOME_Evolution_Composer composer_server;
CalComponent *comp = NULL;
icalcomponent *top_level = NULL;
@@ -928,7 +924,7 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *send_comp,
CORBA_exception_init (&ev);
/* Obtain an object reference for the Composer. */
- bonobo_server = bonobo_object_activate (GNOME_EVOLUTION_COMPOSER_OAFIID, 0);
+ bonobo_server = bonobo_activation_activate_from_id (GNOME_EVOLUTION_COMPOSER_OAFIID, 0, NULL, &ev);
g_return_val_if_fail (bonobo_server != NULL, FALSE);
composer_server = BONOBO_OBJREF (bonobo_server);