aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/main.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-04 11:29:36 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-04 11:29:36 +0800
commitbacbb085895ae69e7f443cc39e04b686128a63a3 (patch)
tree63d7b824dc9827888fb1b77960e3971bcc390e25 /calendar/gui/main.c
parentf4295ffe09c2994a93eff4d4c73505f2bc291a59 (diff)
downloadgsoc2013-evolution-bacbb085895ae69e7f443cc39e04b686128a63a3.tar
gsoc2013-evolution-bacbb085895ae69e7f443cc39e04b686128a63a3.tar.gz
gsoc2013-evolution-bacbb085895ae69e7f443cc39e04b686128a63a3.tar.bz2
gsoc2013-evolution-bacbb085895ae69e7f443cc39e04b686128a63a3.tar.lz
gsoc2013-evolution-bacbb085895ae69e7f443cc39e04b686128a63a3.tar.xz
gsoc2013-evolution-bacbb085895ae69e7f443cc39e04b686128a63a3.tar.zst
gsoc2013-evolution-bacbb085895ae69e7f443cc39e04b686128a63a3.zip
more and more fixes -mig
svn path=/trunk/; revision=104
Diffstat (limited to 'calendar/gui/main.c')
-rw-r--r--calendar/gui/main.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/calendar/gui/main.c b/calendar/gui/main.c
index eb272c1246..b8e3f2fb9e 100644
--- a/calendar/gui/main.c
+++ b/calendar/gui/main.c
@@ -151,31 +151,22 @@ close_cmd (GtkWidget *widget, GnomeCalendar *gcal)
gtk_main_quit ();
}
-static GtkWidget *
-get_current_page (GnomeCalendar *gcal)
-{
- return GTK_NOTEBOOK (gcal->notebook)->cur_page->child;
-}
-
void
previous_clicked (GtkWidget *widget, GnomeCalendar *gcal)
{
- GtkWidget *current_page = get_current_page (gcal);
-
- if (current_page == gcal->week_view){
- }
+ gnome_calendar_previous (gcal);
}
void
next_clicked (GtkWidget *widget, GnomeCalendar *gcal)
{
- GtkWidget *current_page = get_current_page (gcal);
+ gnome_calendar_next (gcal);
}
void
today_clicked (GtkWidget *widget, GnomeCalendar *gcal)
{
- GtkWidget *current_page = get_current_page (gcal);
+ gnome_calendar_goto (gcal, time (NULL));
}
GnomeUIInfo gnome_cal_file_menu [] = {