aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-12-23 11:51:19 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-12-23 11:51:19 +0800
commit084c4816736c8aa56e9538f18caa99bb92eb4d01 (patch)
tree565869e0c66a8d8e3b96bc9711a8449e78bb7746
parent4f689a3f228d7c5575e95825c88f4afa99646c62 (diff)
downloadgsoc2013-evolution-084c4816736c8aa56e9538f18caa99bb92eb4d01.tar
gsoc2013-evolution-084c4816736c8aa56e9538f18caa99bb92eb4d01.tar.gz
gsoc2013-evolution-084c4816736c8aa56e9538f18caa99bb92eb4d01.tar.bz2
gsoc2013-evolution-084c4816736c8aa56e9538f18caa99bb92eb4d01.tar.lz
gsoc2013-evolution-084c4816736c8aa56e9538f18caa99bb92eb4d01.tar.xz
gsoc2013-evolution-084c4816736c8aa56e9538f18caa99bb92eb4d01.tar.zst
gsoc2013-evolution-084c4816736c8aa56e9538f18caa99bb92eb4d01.zip
Make sure the current month is shown when the dialog pops up.
2000-12-22 JP Rosevear <jpr@helixcode.com> * 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
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/goto-dialog.glade1
-rw-r--r--calendar/gui/goto.c10
3 files changed, 16 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 8e5925eb5e..ffa1c64e0f 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,12 @@
2000-12-22 JP Rosevear <jpr@helixcode.com>
+ * gui/goto.c (create_ecal): Make sure the current month is shown
+ when the dialog pops up.
+
+ * gui/goto-dialog.glade: Remove flicker
+
+2000-12-22 JP Rosevear <jpr@helixcode.com>
+
* pcs/cal-backend-file.c (cal_backend_file_get_alarms_for_object):
account for the case where there are no alarms, fixes crash
diff --git a/calendar/gui/goto-dialog.glade b/calendar/gui/goto-dialog.glade
index fb8d67d2bd..74198dc2dc 100644
--- a/calendar/gui/goto-dialog.glade
+++ b/calendar/gui/goto-dialog.glade
@@ -17,6 +17,7 @@
<widget>
<class>GnomeDialog</class>
<name>goto-dialog</name>
+ <visible>False</visible>
<title>Go To Date</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
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