aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog3
-rw-r--r--calendar/gui/eventedit.c14
2 files changed, 12 insertions, 5 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 343d456b1c..62e4f049c7 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,8 @@
2000-04-19 Seth Alves <alves@hungry.com>
+ * gui/eventedit.c (ee_rp_init_rule): changed the order around
+ a bit to avoid a Gtk-CRITICAL crash
+
* gui/gncal-todo.c (gncal_todo_update): fixed code to populate
the todo clist
diff --git a/calendar/gui/eventedit.c b/calendar/gui/eventedit.c
index 0c79bb5d92..3505187035 100644
--- a/calendar/gui/eventedit.c
+++ b/calendar/gui/eventedit.c
@@ -1184,12 +1184,14 @@ ee_rp_init_rule (EventEditor *ee)
/* Finish setting this up */
- gtk_notebook_append_page (notebook, none, gtk_label_new (""));
- gtk_notebook_append_page (notebook, daily, gtk_label_new (""));
- gtk_notebook_append_page (notebook, weekly, gtk_label_new (""));
- gtk_notebook_append_page (notebook, monthly, gtk_label_new (""));
- gtk_notebook_append_page (notebook, yearly, gtk_label_new (""));
gtk_notebook_set_show_tabs (notebook, FALSE);
+
+ gtk_notebook_append_page (notebook, none, NULL);
+ gtk_notebook_append_page (notebook, daily, NULL);
+ gtk_notebook_append_page (notebook, weekly, NULL);
+ gtk_notebook_append_page (notebook, monthly, NULL);
+ gtk_notebook_append_page (notebook, yearly, NULL);
+
gtk_notebook_set_show_border (notebook, FALSE);
gtk_notebook_set_page (notebook, page);
@@ -1468,6 +1470,7 @@ ee_init_recurrence_page (EventEditor *ee)
gtk_notebook_append_page (GTK_NOTEBOOK (ee->notebook), ee->recur_vbox,
ee->recur_page_label);
+
ee_rp_init_rule (ee);
/* pack here so that the box gets inserted after the recurrence rule frame */
@@ -1475,6 +1478,7 @@ ee_init_recurrence_page (EventEditor *ee)
ee_rp_init_ending_date (ee);
ee_rp_init_exceptions (ee);
+
}
static void