exported property accessors and types

View: New views
3 Messages — Rating Filter:   Alert me  

exported property accessors and types

by Michael Lawrence :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Is there a reason why the exported accessor for an OBJECT property uses
the type GObject * instead of that specified in the object_type argument
for the property?

The same occurs for BOXED (uses gpointer instead of specific type).

If this is not intended, should I fix this and submit a bug?

Thanks,
Michael



--
to unsubscribe:
send mail to minimalist@... with "unsubscribe gob-list" in the subject

Re: exported property accessors and types

by Jiri Lebl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Thu, Sep 14, 2006 at 08:40:18AM -0500, Michael Lawrence wrote:
>
> Is there a reason why the exported accessor for an OBJECT property uses
> the type GObject * instead of that specified in the object_type argument
> for the property?
>
> The same occurs for BOXED (uses gpointer instead of specific type).
>
> If this is not intended, should I fix this and submit a bug?

Seems like a bug to me.  Feel free to submit a patch to this list (this is
where one submits bugs)

George

--
George <jirka@...>
   Life is what happens to you when you're busy making other plans...
                       -- John Lennon



--
to unsubscribe:
send mail to minimalist@... with "unsubscribe gob-list" in the subject

Re: exported property accessors and types

by Michael Lawrence :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The patch is attached. It works for me, but I am not sure if it is the best way to do it.

Thanks,
Michael

On 9/26/06, George <jirka@...> wrote:
On Thu, Sep 14, 2006 at 08:40:18AM -0500, Michael Lawrence wrote:
>
> Is there a reason why the exported accessor for an OBJECT property uses
> the type GObject * instead of that specified in the object_type argument
> for the property?
>
> The same occurs for BOXED (uses gpointer instead of specific type).
>
> If this is not intended, should I fix this and submit a bug?

Seems like a bug to me.  Feel free to submit a patch to this list (this is
where one submits bugs)

George

--
George < jirka@...>
   Life is what happens to you when you're busy making other plans...
                       -- John Lennon



--
to unsubscribe:
send mail to minimalist@... with "unsubscribe gob-list" in the subject

gob.patch (4K) Download Attachment