GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Oct 24, 2014 12:01 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GTKBuilder
PostPosted: Mon Jan 09, 2012 3:20 pm 
Offline

Joined: Mon Jan 09, 2012 2:54 pm
Posts: 3
Dear folks,
I am very new to Gtk.I am sorry to ask very basic question.

Can Gtk builder load the binary format of user interface file.I feel rich UI like XML can take more time to load

so my idea is to load as binary file rather then XML.Is GTK has support to load binary file.

please suggest me the better alternative idea to speed up the loading time.

Thanks in Advance


Top
 Profile  
 
 Post subject: Re: GTKBuilder
PostPosted: Mon Jan 09, 2012 8:40 pm 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 764
Location: UK
Hi,

Glade only outputs a XML file and GtkBuilder can only read a XML file or XML data stored as a string. So to answer your question binary data is not supported. I would not think that there would be any performance to be gained by using a binary data file instead of an XML file but you will lose the ease of editing a XML file manually.

In an application you will normally call GtkBuilder to create a window and its widgets, get pointers to the relevant widgets and connect the signals. After that you normally ignore GtkBuilder until you need to create another window or batch of widgets. So you are not calling GtkBuilder repeatedly.

In an application I am working on I need fairly good performance as I am playing back many tracks of audio and MIDI which can be triggered at any time and also updating the display. I am also using GtkBuilder and do not find it a problem with performance.

_________________
E.


Top
 Profile  
 
 Post subject: Re: GTKBuilder
PostPosted: Tue Jan 10, 2012 8:44 am 
Offline

Joined: Mon Jan 09, 2012 2:54 pm
Posts: 3
Hey Thanks for your reply.That sounds great...

And one more question do Gtk have support for in built 3D animation.

Have you tried any samples out of it.Is GTK have any wrapper on top of

OpenGL.. Can you brief me on this.. I am planning to implement some 3D stuffs

in my application,so i just want to know the depth level and feasibility.

Please help me out on this..

Thanks in advance


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group