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.gz
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 ();
3 22:20:25 +0800'>2013-04-231-6/+2 * Switch from libglut to freeglut and retire libglut. Libglut hasn't beenkwm2012-08-051-5/+7 * Fix build with pkgconfbapt2012-07-301-2/+2 * new devel/pkgconf added to replace devel/pkg-config. new version of pkg-configbapt2012-07-261-1/+1 * For the ports that are maintained by ports@ that have pkgconfig as theirdougb2012-07-231-1/+1 * - update png to 1.5.10dinoex2012-06-011-1/+1 * - Update devel/sdl12 to 1.2.15mva2012-02-181-0/+1 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-2/+2 * Update to 0.0.10ehaupt2011-08-112-21/+16 * - Get Rid MD5 supportmiwi2011-03-191-1/+0 * - Reassign ports to heaptabthorpe2011-02-271-1/+1 * - update to 1.4.1dinoex2010-03-281-1/+1 * - update to jpeg-8dinoex2010-02-051-1/+1 * - Update devel/sdl12 to version 1.2.14.mva2010-01-301-1/+1