diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1998-04-02 15:57:58 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-02 15:57:58 +0800 |
commit | f865d886f5aae9279d44f726a0b8093316a40e09 (patch) | |
tree | f397fa0ffb407d2ae4c15c61335bac25cb68d2a0 /calendar/main.c | |
parent | 33b0ab0d0f19c405445315446fd584748538a1ed (diff) | |
download | gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.gz gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.zst gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.zip |
New main program that uses our new datatypes and objects.
1998-04-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c: New main program that uses our new datatypes and
objects.
* calendar.c (calendar_load_from_vobject, calendar_load):
Implement loading of vCalendar objects and vCalendar files.
* calobj.c (ical_object_create_from_vobject): Implement loading of
vCalendar event and todo objects.
* timeutil.c (isodate_from_time_t): New function.
* gnome-cal.c, gnome-cal.h: Implement a toplevel widget, derived
from GnomeApp. It holds all of the day views and arbitrates the
display.
svn path=/trunk/; revision=93
Diffstat (limited to 'calendar/main.c')
-rw-r--r-- | calendar/main.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/calendar/main.c b/calendar/main.c index 941efe1c2b..be54ba2d81 100644 --- a/calendar/main.c +++ b/calendar/main.c @@ -173,10 +173,25 @@ GnomeUIInfo gnome_cal_menu [] = { GNOMEUIINFO_END }; +GnomeUIInfo gnome_toolbar [] = { + { GNOME_APP_UI_ITEM, N_("Prev"), N_("Previous"), /*previous_clicked*/0, 0, 0, + GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_BACK }, + + { GNOME_APP_UI_ITEM, N_("Today"), N_("Today"), /*previous_clicked*/0, 0, 0, + GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_BACK }, + + { GNOME_APP_UI_ITEM, N_("Next"), N_("Next"), /*previous_clicked*/0, 0, 0, + GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_FORWARD }, + + GNOMEUIINFO_END +}; + static void setup_menu (GtkWidget *gcal) { gnome_app_create_menus_with_data (GNOME_APP (gcal), gnome_cal_menu, gcal); + gnome_app_create_toolbar_with_data (GNOME_APP (gcal), gnome_toolbar, gcal); + } static void @@ -191,8 +206,13 @@ new_calendar (char *full_name, char *calendar_file) setup_menu (toplevel); gtk_widget_show (toplevel); - if (g_file_exists (calendar_file)) - gnome_calendar_load (calendar_file); + if (g_file_exists (calendar_file)){ + printf ("Trying to load %s\n", calendar_file); + gnome_calendar_load (GNOME_CALENDAR (toplevel), calendar_file); + } else { + printf ("tring: ./test.vcf\n"); + gnome_calendar_load (GNOME_CALENDAR (toplevel), "./test.vcf"); + } active_calendars++; } |