Three Questions

0 views
Skip to first unread message

wenbin wang

unread,
Nov 10, 2009, 5:00:47 AM11/10/09
to google-gadgets-for-linux-user
1. When is the member data variables of view or element assigned from
xml file?

2.In SetScriptableProperty()
use GetPropertyInfo() to get property type
It seems that the properties and element tag have been added into the
global all_class_info_. But when they are added?

James Su

unread,
Nov 10, 2009, 5:23:45 AM11/10/09
to google-gadgets...@googlegroups.com
On Tue, Nov 10, 2009 at 6:00 PM, wenbin wang <wbwan...@gmail.com> wrote:

1. When is the member data variables of view or element assigned from
xml file?
Please refer to:
ggadget/scriptable_view.cc (line 182 to 192) and ggadget/xml_utils.cc
 

2.In SetScriptableProperty()
     use GetPropertyInfo()  to get property type
It seems that the properties and element tag have been added into the
global all_class_info_. But when they are added?
When creating the scriptable object. Please refer to ScriptableHelper::DoRegister() and DoClassRegister() in scriptable_helper.{h,cc}. And you may also refer to a real scriptable object, such as basic_element.{h,cc} to see how the properties, methods and signals are registered.
 




wenbin wang

unread,
Nov 10, 2009, 5:31:39 AM11/10/09
to google-gadgets-for-linux-user
Thanks. I will go on studying. I hope know the more concrete positon.

On Nov 10, 6:23 pm, James Su <james...@gmail.com> wrote:
> - Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages