Page 1 of 1
					
				PB 5.20 B2 GTK3 subsystem for Linux
				Posted: Fri Jun 21, 2013 10:52 pm
				by uwekel
				Hi,
i cannot see anything of GTK3. When i compile and run on linux, i only get the GTK2 widgets (best compared by the SpinGadget which has been deeply re-designed). What has to be done to get the GTK3 widgets?
Best regards
Uwe
			 
			
					
				Re: PB 5.20 B2 GTK3 subsystem for Linux
				Posted: Fri Jun 21, 2013 11:27 pm
				by ts-soft
				
Gadget.pb from example dir with and without 
subsystem gtk3 
			 
			
					
				Re: PB 5.20 B2 GTK3 subsystem for Linux
				Posted: Fri Jun 21, 2013 11:34 pm
				by Fred
				you need to specify "gtk3" in the subsystem field of the compiler options.
			 
			
					
				Re: PB 5.20 B2 GTK3 subsystem for Linux
				Posted: Sat Jun 22, 2013 11:47 am
				by uwekel
				The 
Gtk3 SpinButton normally renders like this (with +/-buttons inside):

The PB SpinGadget looks like always. Isn't it inherited from GtkSpinButton?
 
			 
			
					
				Re: PB 5.20 B2 GTK3 subsystem for Linux
				Posted: Sat Jun 22, 2013 1:08 pm
				by Fred
				You are right, this one is custom made, probably because GtkSpinButton didn't exists in old version of GTK
			 
			
					
				Re: PB 5.20 B2 GTK3 subsystem for Linux
				Posted: Mon Jun 24, 2013 7:57 am
				by fsw
				Compiling PB examples while adding GTK3 as subsystem results in an linker error:
...undefined reference to symbol 'XInternAtom'.
Library libX11.so.6 is on the system as well...
BTW same files with GTK2 compile as expected.
Linux OS: Manjaro XFCE
			 
			
					
				Re: PB 5.20 B2 GTK3 subsystem for Linux
				Posted: Mon Jun 24, 2013 8:47 am
				by ts-soft
				
			 
			
					
				Re: PB 5.20 B2 GTK3 subsystem for Linux
				Posted: Mon Jun 24, 2013 2:39 pm
				by fsw
				ts-soft,
I tried to add the missing lib to the linker (compiler options) but it didn't work.
As always: you have the answerrs.
Thank you.
			 
			
					
				Re: PB 5.20 B2 GTK3 subsystem for Linux
				Posted: Mon Jun 24, 2013 5:57 pm
				by ts-soft
				you can edit the ld.so.conf as root:
/etc/ld.so.conf
Add the path to missing lib like
/usr/lib
or 
/usr/lib64
or
/usr/lib32
than in terminal as root
ldconfig
or 
sudo ldconfig
			 
			
					
				Re: PB 5.20 B2 GTK3 subsystem for Linux
				Posted: Tue Jun 25, 2013 6:14 am
				by fsw
				With GTK2 the WebBrowser example works as expected, the gadgets are resized accordingly when the main window is resized.
With 
GTK3 the WebBrowser main window resizes itself (right after the start); it's bigger than the desktp size.
It's also unresponsive...
Bummer  
 
Are the examples not tested before release of a beta?
 
