aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-03-12 16:37:12 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-03-12 16:37:12 +0800
commit6e515d204a3477cabe2d5dd934ee45406c528ab5 (patch)
treef40b26b7618d2213d021ce5069307c12be7fc2cf /calendar/gui/gnome-cal.c
parent1f7ba945b16cd5f8c01641dd864a9671d791a651 (diff)
downloadgsoc2013-evolution-6e515d204a3477cabe2d5dd934ee45406c528ab5.tar
gsoc2013-evolution-6e515d204a3477cabe2d5dd934ee45406c528ab5.tar.gz
gsoc2013-evolution-6e515d204a3477cabe2d5dd934ee45406c528ab5.tar.bz2
gsoc2013-evolution-6e515d204a3477cabe2d5dd934ee45406c528ab5.tar.lz
gsoc2013-evolution-6e515d204a3477cabe2d5dd934ee45406c528ab5.tar.xz
gsoc2013-evolution-6e515d204a3477cabe2d5dd934ee45406c528ab5.tar.zst
gsoc2013-evolution-6e515d204a3477cabe2d5dd934ee45406c528ab5.zip
Removed function now that it is no CORBA server in the GUI.
2000-03-12 Federico Mena Quintero <federico@helixcode.com> * gui/main.c (gnome_calendar_locate): Removed function now that it is no CORBA server in the GUI. (save_default_calendar): Removed function. Now the personal calendar server will take care of saving modified calendars when appropriate. (close_cmd): Do not call unregister_calendar_services(). * gui/eventedit.c (ee_ok): Do not save the calendar. * gui/gncal-day-panel.c (day_view_range_activated): Likewise. * gui/gncal-todo.c (ok_button): Likewise. (delete_todo): Likewise. * gui/gncal-full-day.c (delete_occurance): Likewise. (delete_appointment): Likewise. (unrecur_appointment): Likewise. (child_focus_out): Likewise. (update_from_drag_info): Likewise. * gui/gnome-cal.c (gnome_calendar_new): Removed obsolete call to create the CORBA server. * gui/gnome-cal.h (GnomeCalendar): Renamed `calc' field to `client'. * cal-client/cal-client.h (CalClient): Removed filename and corba_server fields. svn path=/trunk/; revision=2102
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 408f6b5396..5abcb46b29 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -4,22 +4,25 @@
*
* Author: Miguel de Icaza (miguel@kernel.org)
*/
+
#include <config.h>
-#include <gnome.h>
#include <unistd.h>
#include <signal.h>
#include <sys/wait.h>
#include <fcntl.h>
+#include <gtk/gtkmain.h>
+#include <gtk/gtknotebook.h>
+#include <libgnomeui/gnome-messagebox.h>
+#include <cal-util/timeutil.h>
#include "alarm.h"
-/* #include "calendar.h" DELETE */
#include "gnome-cal.h"
#include "gncal-day-panel.h"
#include "gncal-week-view.h"
#include "month-view.h"
#include "year-view.h"
-#include "cal-util/timeutil.h"
#include "main.h"
-#include "corba-cal.h"
+
+
GnomeApp *parent_class;
@@ -229,9 +232,8 @@ gnome_calendar_new (char *title)
gcal->current_display = time_day_begin (time (NULL));
/*gcal->cal = calendar_new (title, CALENDAR_INIT_ALARMS); DELETE */
- gcal->calc = cal_client_new ();
+ gcal->client = cal_client_new ();
setup_widgets (gcal);
- gnome_calendar_create_corba_server (gcal);
return retval;
}
@@ -252,8 +254,12 @@ gnome_calendar_load (GnomeCalendar *gcal, char *file)
g_return_val_if_fail (GNOME_IS_CALENDAR (gcal), 0);
g_return_val_if_fail (file != NULL, 0);
+ /* FIXME: connect to the cal_loaded signal fo the CalClient and get the
+ * asynchronous notification properly!
+ */
+
/* if ((r = calendar_load (gcal->cal, file)) != NULL){ DELETE */
- if (cal_client_load_calendar (gcal->calc, file) == FALSE){
+ if (cal_client_load_calendar (gcal->client, file) == FALSE){
printf ("Error loading calendar: %s\n", file);
return 0;
}
@@ -271,7 +277,7 @@ gnome_calendar_add_object (GnomeCalendar *gcal, iCalObject *obj)
/*calendar_add_object (gcal->cal, obj); DELETE */
obj_string = ical_object_to_string (obj);
- cal_client_update_object (gcal->calc, obj->uid, obj_string);
+ cal_client_update_object (gcal->client, obj->uid, obj_string);
g_free (obj_string);
gnome_calendar_update_all (gcal, obj, CHANGE_NEW);
}
@@ -286,7 +292,7 @@ gnome_calendar_remove_object (GnomeCalendar *gcal, iCalObject *obj)
g_return_if_fail (obj != NULL);
/* calendar_remove_object (gcal->cal, obj); DELETE */
- r = cal_client_remove_object (gcal->calc, obj->uid);
+ r = cal_client_remove_object (gcal->client, obj->uid);
gnome_calendar_update_all (gcal, obj, CHANGE_ALL);
}
@@ -297,7 +303,7 @@ gnome_calendar_object_changed (GnomeCalendar *gcal, iCalObject *obj, int flags)
g_return_if_fail (GNOME_IS_CALENDAR (gcal));
g_return_if_fail (obj != NULL);
- /* FIX ME -- i don't know what to do here */
+ /* FIXME -- i don't know what to do here */
/* gcal->cal->modified = TRUE; */
gnome_calendar_update_all (gcal, obj, flags);
@@ -621,5 +627,3 @@ gnome_calendar_todo_properties_changed (GnomeCalendar *gcal)
todo_style_changed = 1;
todo_list_properties_changed (GNCAL_DAY_PANEL (gcal->day_view));
}
-
-