aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gncal-todo.c10
-rw-r--r--calendar/gui/gncal-todo.c10
3 files changed, 19 insertions, 6 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 8d57719093..c36eacec35 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+1998-11-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gncal-todo.c (gncal_todo_init): Use a scrolled window to put the
+ clist into.
+
1998-11-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calendar.c (calendar_save): Backup the old file before saving
diff --git a/calendar/gncal-todo.c b/calendar/gncal-todo.c
index 0a39522622..d715c266eb 100644
--- a/calendar/gncal-todo.c
+++ b/calendar/gncal-todo.c
@@ -229,6 +229,7 @@ static void
gncal_todo_init (GncalTodo *todo)
{
GtkWidget *w;
+ GtkWidget *sw;
GtkWidget *hbox;
gtk_box_set_spacing (GTK_BOX (todo), 4);
@@ -242,17 +243,20 @@ gncal_todo_init (GncalTodo *todo)
/* Clist */
+ sw = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ gtk_box_pack_start (GTK_BOX (todo), sw, TRUE, TRUE, 0);
+ gtk_widget_show (sw);
+
w = gtk_clist_new (1);
todo->clist = GTK_CLIST (w);
-
- gtk_clist_set_policy (todo->clist, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_clist_set_selection_mode (todo->clist, GTK_SELECTION_BROWSE);
gtk_signal_connect (GTK_OBJECT (todo->clist), "select_row",
(GtkSignalFunc) clist_row_selected,
todo);
- gtk_box_pack_start (GTK_BOX (todo), w, TRUE, TRUE, 0);
+ gtk_container_add (GTK_CONTAINER (sw), w);
gtk_widget_show (w);
/* Box for buttons */
diff --git a/calendar/gui/gncal-todo.c b/calendar/gui/gncal-todo.c
index 0a39522622..d715c266eb 100644
--- a/calendar/gui/gncal-todo.c
+++ b/calendar/gui/gncal-todo.c
@@ -229,6 +229,7 @@ static void
gncal_todo_init (GncalTodo *todo)
{
GtkWidget *w;
+ GtkWidget *sw;
GtkWidget *hbox;
gtk_box_set_spacing (GTK_BOX (todo), 4);
@@ -242,17 +243,20 @@ gncal_todo_init (GncalTodo *todo)
/* Clist */
+ sw = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ gtk_box_pack_start (GTK_BOX (todo), sw, TRUE, TRUE, 0);
+ gtk_widget_show (sw);
+
w = gtk_clist_new (1);
todo->clist = GTK_CLIST (w);
-
- gtk_clist_set_policy (todo->clist, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_clist_set_selection_mode (todo->clist, GTK_SELECTION_BROWSE);
gtk_signal_connect (GTK_OBJECT (todo->clist), "select_row",
(GtkSignalFunc) clist_row_selected,
todo);
- gtk_box_pack_start (GTK_BOX (todo), w, TRUE, TRUE, 0);
+ gtk_container_add (GTK_CONTAINER (sw), w);
gtk_widget_show (w);
/* Box for buttons */