From: Diqing Z. <diq...@gm...> - 2007-12-10 15:48:25
|
Hi all, I want to pass some info from plugin to app, I have a info structure and write in the following way: In APP: ----------------------------------------------------------------------------------------- struct my_info { int info_1; int info_2; } struct my_info info; g_object_get(G_OBJECT(plugin), "my-info", &info, NULL); ------------------------------------------------------------------------------------------ I want info_1 and info_2 to be set in plugin and return to app. How should I do that? what the type of property "my-info" should be? (g_param_spec_pointer??) And what need to do in get_property function? Thanks in advance!! Thanks, - Max |