Re: [gtk-list] Scrolling window
- From: Jan Kratochvil <short ucw cz>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Scrolling window
- Date: Sat, 9 Jan 1999 13:58:22 +0100
> Could someone please explain to me why the scrollbars don't work in
> the following program? I am using GTK version 1.1.2
Here it is... Had the same problem :-)
#if (GTK_MAJOR_VERSION>1) || ((GTK_MAJOR_VERSION==1) && (GTK_MINOR_VERSION>0))
#define HAVE_GTK11
#endif
#ifdef HAVE_GTK11
#define GTK_SCROLLED_ADD(a,b) gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW((a)),(b))
#else
#define GTK_SCROLLED_ADD(a,b) gtk_container_add(GTK_CONTAINER((a)),(b))
#endif
> scrollwin = gtk_scrolled_window_new (NULL,NULL);
> gtk_container_add (GTK_CONTAINER (window), scrollwin);
Lace
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]