Re: gtk+ 2.0 passing variables through gtk_signal_connect problem.



2. void create_file_select(GtkWidget *w, info *choser1) {
      ....
      chosen1->selected...
      }

I personnaly use 2. but I am not a professional :)


Ok.  i was just missing the GtkWidget in the beginning.  i had fixed that a 
while ago.  That solved my problems in that respect.

Heh, now i'm having a problem having two signal_event being used on two 
pixmaps.  It seems that the redrawing only works for the first time.  If i go 
to draw a new one it segfaults.   It has to do with the redrawing functions.  
  damn event handling is losing the memory address once i begin repeating the 
process.  although the strange thing is, if i only have one it works fine.   
2 and it becomes impossible for some reason.  Even though these functions use 
no pointers and no shared code.  I need someone who has experience with 
playing with pixmaps and gtk+-2.0 to probably look over my code if i cant 
figure this out today.   
Anyone interested  can get a snapshot of my current development version at    
http://safemode.homeip.net/mp3stat-2.9.4.tar.bz2   
the problem code can be found by opening gtkmp3stat.cpp and grepping for #176
Thanks to anyone who tries.  heh.    




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]