From 084c4816736c8aa56e9538f18caa99bb92eb4d01 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Sat, 23 Dec 2000 03:51:19 +0000 Subject: Make sure the current month is shown when the dialog pops up. 2000-12-22 JP Rosevear * gui/goto.c (create_ecal): Make sure the current month is shown when the dialog pops up. * gui/goto-dialog.glade: Remove flicker svn path=/trunk/; revision=7135 --- calendar/gui/goto.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'calendar/gui/goto.c') diff --git a/calendar/gui/goto.c b/calendar/gui/goto.c index d726544f98..6da562b603 100644 --- a/calendar/gui/goto.c +++ b/calendar/gui/goto.c @@ -92,12 +92,18 @@ ecal_event (ECalendarItem *calitem, gpointer user_data) static void create_ecal (GoToDialog *dlg) { + ECalendarItem *calitem; + dlg->ecal = E_CALENDAR (e_calendar_new ()); - e_calendar_item_set_display_popup (dlg->ecal->calitem, FALSE); + calitem = dlg->ecal->calitem; + + e_calendar_item_set_display_popup (calitem, FALSE); gtk_widget_show (GTK_WIDGET (dlg->ecal)); gtk_box_pack_start (GTK_BOX (dlg->vbox), GTK_WIDGET (dlg->ecal), TRUE, TRUE, 0); - ecal_date_range_changed (dlg->ecal->calitem, dlg); + e_calendar_item_set_first_month (calitem, dlg->year_val, dlg->month_val); + + ecal_date_range_changed (calitem, dlg); } static void -- cgit v1.2.3