aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/main.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-22 13:19:51 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-22 13:19:51 +0800
commit821548d922e719881f5dff34a34b3d6285b10855 (patch)
tree54c20eeb1fc960a4a0d5ea864741efb8215d09e5 /calendar/main.c
parent6b159ed2c33a1a208395f9b57b7d61d7c1d04842 (diff)
downloadgsoc2013-evolution-821548d922e719881f5dff34a34b3d6285b10855.tar
gsoc2013-evolution-821548d922e719881f5dff34a34b3d6285b10855.tar.gz
gsoc2013-evolution-821548d922e719881f5dff34a34b3d6285b10855.tar.bz2
gsoc2013-evolution-821548d922e719881f5dff34a34b3d6285b10855.tar.lz
gsoc2013-evolution-821548d922e719881f5dff34a34b3d6285b10855.tar.xz
gsoc2013-evolution-821548d922e719881f5dff34a34b3d6285b10855.tar.zst
gsoc2013-evolution-821548d922e719881f5dff34a34b3d6285b10855.zip
1. Calendar property configuration is finally here with nice live-updates.
1. Calendar property configuration is finally here with nice live-updates. 2. Double clicking on week view jumps to that day in the day view; Context menu allows adding an appointment on that day. Miguel. svn path=/trunk/; revision=182
Diffstat (limited to 'calendar/main.c')
-rw-r--r--calendar/main.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/calendar/main.c b/calendar/main.c
index 77abc20866..581004ac82 100644
--- a/calendar/main.c
+++ b/calendar/main.c
@@ -93,11 +93,11 @@ init_calendar (void)
{
init_username ();
user_calendar_file = g_concat_dir_and_file (gnome_util_user_home (), ".gnome/user-cal.vcf");
- calendar_settings = g_copy_strings ("=", gnome_util_user_home (), ".gnome/calendar=", NULL);
gnome_config_push_prefix (calendar_settings);
- day_begin = range_check_hour (gnome_config_get_int ("/Calendar/Day start=8"));
- day_end = range_check_hour (gnome_config_get_int ("/Calendar/Day end=17"));
+ day_begin = range_check_hour (gnome_config_get_int ("/calendar/Calendar/Day start=8"));
+ day_end = range_check_hour (gnome_config_get_int ("/calendar/Calendar/Day end=17"));
+ am_pm_flag = range_check_hour (gnome_config_get_bool ("/calendar/Calendar/AM PM flag=0"));
if (day_end < day_begin){
day_begin = 8;
@@ -155,6 +155,21 @@ close_cmd (GtkWidget *widget, GnomeCalendar *gcal)
gtk_main_quit ();
}
+/*
+ * Updates all of the open calendars when the day_begin/day_end values have changed
+ */
+void
+day_range_changed (void)
+{
+ GList *l;
+
+ for (l = all_calendars; l; l = l->next){
+ GnomeCalendar *cal = GNOME_CALENDAR (l->data);
+
+ gtk_widget_queue_draw (cal->notebook);
+ }
+}
+
static void
quit_cmd (GtkWidget *widget, GnomeCalendar *gcal)
{
@@ -306,6 +321,8 @@ static GnomeUIInfo gnome_cal_about_menu [] = {
static GnomeUIInfo gnome_cal_edit_menu [] = {
{ GNOME_APP_UI_ITEM, N_("New appointment"), NULL, display_objedit },
+ { GNOME_APP_UI_ITEM, N_("Properties"), NULL, properties, NULL, NULL,
+ GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_PROP },
GNOMEUIINFO_END
};
@@ -490,7 +507,7 @@ main(int argc, char *argv[])
bindtextdomain(PACKAGE, GNOMELOCALEDIR);
textdomain(PACKAGE);
- gnome_init ("gncal", &parser, argc, argv, 0, NULL);
+ gnome_init ("calendar", &parser, argc, argv, 0, NULL);
process_dates ();
alarm_init ();