Re: [gtk-list] Scrolling window



> 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]