Update of /cvsroot/csdopenglnet/csdOpenGL/samples
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11103
Modified Files:
gtkFrame.cs
Log Message:
must be a problem with GL, because adding a button works fine
Index: gtkFrame.cs
===================================================================
RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/gtkFrame.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** gtkFrame.cs 30 Jul 2004 10:28:30 -0000 1.2
--- gtkFrame.cs 30 Jul 2004 10:31:05 -0000 1.3
***************
*** 31,34 ****
--- 31,39 ----
window.Resize( 640, 480 );
+ fixedLayout = new Fixed();
+ fixedLayout.SizeAllocated += new SizeAllocatedHandler( OnResize );
+ fixedLayout.Show();
+ window.Add( fixedLayout );
+ window.ShowAll();
Debug.WriteLine( "Init GtkGLArea" );
***************
*** 39,52 ****
glarea.MapEvent += new MapEventHandler (OnMap);
glarea.UnmapEvent += new UnmapEventHandler (OnUnmap);
-
- fixedLayout = new Fixed();
- fixedLayout.Put( glarea, 50, 50 );
- //fixedLayout.SizeAllocated += new SizeAllocatedHandler( OnResize );
- glarea.HeightRequest = 200;
- glarea.WidthRequest = 200;
! fixedLayout.Show();
! window.Add( fixedLayout );
! window.ShowAll();
Debug.WriteLine( "MainLoop" );
--- 44,52 ----
glarea.MapEvent += new MapEventHandler (OnMap);
glarea.UnmapEvent += new UnmapEventHandler (OnUnmap);
! //fixedLayout.Put( glarea, 100, 50 );
! fixedLayout.Put( new Button ("HALLO"), 100, 100 );
!
! fixedLayout.ShowAll();
Debug.WriteLine( "MainLoop" );
|