GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Sep 02, 2014 11:55 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: g_type_instance_get_private segfault
PostPosted: Thu Dec 12, 2013 3:29 pm 
Offline

Joined: Wed Dec 11, 2013 1:23 pm
Posts: 2
hello,

I'm trying to make a gtk application which I have online at https://github.com/echoline/planner-desktop

the problem is on line 84 at: https://github.com/echoline/planner-des ... nner.c#L84

when I try to access the private structure associated with a widget in a certain function, it segfaults. I wonder if there's a linker option I need to use, but I can't figure this out.

the line it crashes on is:

GtkPlannerPrivate *priv = GTK_PLANNER_GET_PRIVATE (planner);

in the save function.

please let me know if there's more information I can provide to get help with this.

thank you


Top
 Profile  
 
 Post subject: Re: g_type_instance_get_private segfault
PostPosted: Thu Dec 12, 2013 8:53 pm 
Offline

Joined: Wed Dec 11, 2013 1:23 pm
Posts: 2
nevermind.

I had forgotten a parameter in the signal callback, so it was passing the wrong struct.

all is well now


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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