diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-04-18 07:22:50 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-18 07:22:50 +0800 |
commit | 4b926012c0cae01569d71d178dc651d9e4b2c8e8 (patch) | |
tree | 0e8bb67d40b658bd6b867b15e909db1846d76908 /calendar/year-view.c | |
parent | 470866a2577773301742e2c1c83413c83249328a (diff) | |
download | gsoc2013-evolution-4b926012c0cae01569d71d178dc651d9e4b2c8e8.tar.gz gsoc2013-evolution-4b926012c0cae01569d71d178dc651d9e4b2c8e8.tar.zst gsoc2013-evolution-4b926012c0cae01569d71d178dc651d9e4b2c8e8.zip |
The event dialog is beautified, recurrences are saner.
1998-04-17 Federico Mena Quintero <federico@nuclecu.unam.mx>
* eventedit.c (ee_init_recurrence_page): New function that creates
the recurrence page in the toplevel notebook.
(ee_store_recur_values_to_ical): Now we can also store the recurrences.
svn path=/trunk/; revision=151
Diffstat (limited to 'calendar/year-view.c')
-rw-r--r-- | calendar/year-view.c | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/calendar/year-view.c b/calendar/year-view.c index a8972a7558..a922ac2748 100644 --- a/calendar/year-view.c +++ b/calendar/year-view.c @@ -9,11 +9,23 @@ */ #include "gncal-year-view.h" +#include "calendar.h" #include "timeutil.h" static void gncal_year_view_init (GncalYearView *yview); static void +double_click(GtkWidget *widget, gpointer data) +{ + printf("Recieved double click.\n"); +} + +static void +do_nothing(GtkCalendarClass *c) +{ +} + +static void select_day(GtkWidget *widget, gpointer data) { int i; @@ -68,6 +80,7 @@ gncal_year_view_init (GncalYearView *yview) yview->handler [i] = 0; } + yview->gcal = NULL; yview->year_label = NULL; yview->year = 0; } @@ -102,16 +115,19 @@ gncal_year_view_new (GnomeCalendar *calendar, time_t date) i = y * 3 + x; yview->calendar[i] = gtk_calendar_new(); - gtk_calendar_display_options(GTK_CALENDAR(yview->calendar[i]), GTK_CALENDAR_SHOW_DAY_NAMES); + gtk_calendar_display_options(GTK_CALENDAR(yview->calendar[i]), + GTK_CALENDAR_SHOW_DAY_NAMES | + GTK_CALENDAR_NO_MONTH_CHANGE); frame = gtk_frame_new(NULL); vbox = gtk_vbox_new(0,0); yview->handler[i] = - gtk_signal_connect(GTK_OBJECT(yview->calendar[i]), - "day_selected", - GTK_SIGNAL_FUNC(select_day), - (gpointer *) yview); + gtk_signal_connect(GTK_OBJECT(yview->calendar[i]), "day_selected", + GTK_SIGNAL_FUNC(select_day), (gpointer *) yview); + gtk_signal_connect(GTK_OBJECT(yview->calendar[i]), "day_selected_double_click", + GTK_SIGNAL_FUNC(double_click), (gpointer *) yview); + my_tm.tm_mon = i; strftime(monthbuff, 40, "%B", &my_tm); label = gtk_label_new(monthbuff); |