aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gncal-todo.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-11-17 04:29:44 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-11-17 04:29:44 +0800
commit0a730e687445f6710704a7e8d28b6cde327d281b (patch)
tree76a3c6f02ca38771f890d605401413303b73191b /calendar/gui/gncal-todo.c
parenta1d3f9fa2c31b00fcebea83d822f50d8b59755aa (diff)
downloadgsoc2013-evolution-0a730e687445f6710704a7e8d28b6cde327d281b.tar
gsoc2013-evolution-0a730e687445f6710704a7e8d28b6cde327d281b.tar.gz
gsoc2013-evolution-0a730e687445f6710704a7e8d28b6cde327d281b.tar.bz2
gsoc2013-evolution-0a730e687445f6710704a7e8d28b6cde327d281b.tar.lz
gsoc2013-evolution-0a730e687445f6710704a7e8d28b6cde327d281b.tar.xz
gsoc2013-evolution-0a730e687445f6710704a7e8d28b6cde327d281b.tar.zst
gsoc2013-evolution-0a730e687445f6710704a7e8d28b6cde327d281b.zip
Use a scrolled window to put the clist into.
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. svn path=/trunk/; revision=474
Diffstat (limited to 'calendar/gui/gncal-todo.c')
-rw-r--r--calendar/gui/gncal-todo.c10
1 files changed, 7 insertions, 3 deletions
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 */