diff options
author | JP Rosevear <jpr@ximian.com> | 2003-10-29 23:41:47 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-10-29 23:41:47 +0800 |
commit | 26f77b16e1f8a3207554e607e2ee18bb7b14c97d (patch) | |
tree | 91eaf2ffa63b732a4888afcac459faab263648da /calendar/gui/calendar-commands.c | |
parent | 6c743503b1f747c50e28c05aed4ad4c620a3912e (diff) | |
download | gsoc2013-evolution-26f77b16e1f8a3207554e607e2ee18bb7b14c97d.tar gsoc2013-evolution-26f77b16e1f8a3207554e607e2ee18bb7b14c97d.tar.gz gsoc2013-evolution-26f77b16e1f8a3207554e607e2ee18bb7b14c97d.tar.bz2 gsoc2013-evolution-26f77b16e1f8a3207554e607e2ee18bb7b14c97d.tar.lz gsoc2013-evolution-26f77b16e1f8a3207554e607e2ee18bb7b14c97d.tar.xz gsoc2013-evolution-26f77b16e1f8a3207554e607e2ee18bb7b14c97d.tar.zst gsoc2013-evolution-26f77b16e1f8a3207554e607e2ee18bb7b14c97d.zip |
no need to update config settings everywhere explicitly
2003-10-29 JP Rosevear <jpr@ximian.com>
* gui/dialogs/cal-prefs-dialog.c (update_config): no need to
update config settings everywhere explicitly
* gui/tasks-component.c (update_uris_for_selection): cast the
widget
* gui/gnome-cal.h: remove proto
* gui/gnome-cal.c (setup_widgets): don't update config settings
explicitly
(gnome_calendar_update_config_settings): kill
* gui/e-week-view.c: remove null chars
* gui/e-tasks.h: remove proto
* gui/e-tasks.c (set_timezone): set the timezone on the client
(timezone_changed_cb): changed timezone callback
(setup_config): setup config stuff
(e_tasks_init): setup config and widgets here
(e_tasks_new): construct is dead, no need to track all widgets
(cal_opened_cb): set the timezone upon opening
(e_tasks_update_all_config_settings): kill
* gui/control-factory.c (control_factory_new_control): create the
calendar ourselves
* gui/calendar-config.c (on_timezone_set): don't update the
settings everywhere here, we have config managers now
* gui/calendar-component.c (impl_createControls): create the
calendar ourselves
* gui/calendar-commands.h: remove protos
* gui/calendar-commands.c: remove dead functions
svn path=/trunk/; revision=23117
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r-- | calendar/gui/calendar-commands.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index 77305098bc..5dbce1ec54 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -63,9 +63,6 @@ #include "itip-utils.h" #include "evolution-shell-component-utils.h" -/* A list of all of the calendars started */ -static GList *all_calendars = NULL; - /* Focusing information for the calendar view. We have to keep track of this * ourselves because with Bonobo controls, we may get unpaired focus_out events. */ @@ -188,18 +185,6 @@ file_print_preview_cb (BonoboUIComponent *uic, gpointer data, const char *path) print (gcal, TRUE); } -/* This iterates over each calendar telling them to update their config - settings. */ -void -update_all_config_settings (void) -{ - GList *l; - - for (l = all_calendars; l; l = l->next) - gnome_calendar_update_config_settings (GNOME_CALENDAR (l->data), FALSE); -} - - /* Sets a clock cursor for the specified calendar window */ static void set_clock_cursor (GnomeCalendar *gcal) @@ -993,30 +978,3 @@ calendar_control_deactivate (BonoboControl *control, GnomeCalendar *gcal) bonobo_ui_component_rm (uic, "/", NULL); bonobo_ui_component_unset_container (uic, NULL); } - -/* Removes a calendar from our list of all calendars when it is destroyed. */ -static void -on_calendar_destroyed (GnomeCalendar *gcal) -{ - all_calendars = g_list_remove (all_calendars, gcal); -} - -GnomeCalendar * -new_calendar (void) -{ - GtkWidget *gcal; - - gcal = gnome_calendar_new (); - if (!gcal) { - gnome_warning_dialog (_("Could not create the calendar view. Please check your " - "ORBit and OAF setup.")); - return NULL; - } - - g_signal_connect (gcal, "destroy", - G_CALLBACK (on_calendar_destroyed), NULL); - - all_calendars = g_list_prepend (all_calendars, gcal); - - return GNOME_CALENDAR (gcal); -} |