diff options
-rw-r--r-- | calendar/ChangeLog | 4 | ||||
-rw-r--r-- | calendar/eventedit.c | 9 | ||||
-rw-r--r-- | calendar/gui/eventedit.c | 9 |
3 files changed, 14 insertions, 8 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 98caea9416..64297b4305 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,7 @@ +1998-11-23 Miguel de Icaza <miguel@nuclecu.unam.mx> + + * eventedit.c (ee_rp_init_exceptions): Update GtkClist usage. + 1998-11-23 Andrew T. Veliath <andrewtv@usa.net> * gncal-day-panel.c (gncal_day_panel_new): Use diff --git a/calendar/eventedit.c b/calendar/eventedit.c index 18659841c0..7d16e8211a 100644 --- a/calendar/eventedit.c +++ b/calendar/eventedit.c @@ -1386,12 +1386,13 @@ ee_rp_init_exceptions (EventEditor *ee) gtk_box_pack_start (GTK_BOX (ivbox), widget, FALSE, FALSE, 0); ee->recur_ex_clist = widget = gtk_clist_new (1); + sw = gtk_scrolled_window_new (NULL, NULL); + gtk_container_add (GTK_CONTAINER (sw), widget); gtk_clist_set_selection_mode (GTK_CLIST (widget), GTK_SELECTION_BROWSE); -#if 0 - gtk_clist_set_policy (GTK_CLIST (widget), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); -#endif + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); fill_exception_clist (ee); - gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), sw, TRUE, TRUE, 0); /* Done, add to main table */ diff --git a/calendar/gui/eventedit.c b/calendar/gui/eventedit.c index 18659841c0..7d16e8211a 100644 --- a/calendar/gui/eventedit.c +++ b/calendar/gui/eventedit.c @@ -1386,12 +1386,13 @@ ee_rp_init_exceptions (EventEditor *ee) gtk_box_pack_start (GTK_BOX (ivbox), widget, FALSE, FALSE, 0); ee->recur_ex_clist = widget = gtk_clist_new (1); + sw = gtk_scrolled_window_new (NULL, NULL); + gtk_container_add (GTK_CONTAINER (sw), widget); gtk_clist_set_selection_mode (GTK_CLIST (widget), GTK_SELECTION_BROWSE); -#if 0 - gtk_clist_set_policy (GTK_CLIST (widget), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); -#endif + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); fill_exception_clist (ee); - gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), sw, TRUE, TRUE, 0); /* Done, add to main table */ |