Re: Glade 2 & passing data to signal handlers

2003-10-18 Thread Russell Shaw
Dave Reed wrote: On Saturday 18 October 2003 11:24, Russell Shaw wrote: Joe Scaduto wrote: On Sat, 2003-10-18 at 06:01, Sven Neumann wrote: Russell Shaw <[EMAIL PROTECTED]> writes: Maybe you need: g_signal_connect((gpointer) okLoginButton, "clicked", G_CALLBACK (on_okLog

Re: Glade 2 & passing data to signal handlers

2003-10-18 Thread Russell Shaw
Joe Scaduto wrote: On Sat, 2003-10-18 at 11:24, Russell Shaw wrote: Yes, but it will be over-written next time you generate the code. Most users don't use this generated code and use gladelib xml which is less intrusive on your program. Thanks I appreciate the help.I found what the problem w

Re: Glade 2 & passing data to signal handlers

2003-10-18 Thread Sven Neumann
Hi, Joe Scaduto <[EMAIL PROTECTED]> writes: > Both of your suggestions seems logical to me and I will try them. The > only problem I have is that Glade 2 created that siganl connection not > me. And at the beginning of the file where the signal connections are > it says "DO NOT EDIT THIS FILE -

Re: Glade 2 & passing data to signal handlers

2003-10-18 Thread Joe Scaduto
On Sat, 2003-10-18 at 11:24, Russell Shaw wrote: > Yes, but it will be over-written next time you generate the code. > Most users don't use this generated code and use gladelib xml which > is less intrusive on your program. > Thanks I appreciate the help.I found what the problem was at least

Re: Glade 2 & passing data to signal handlers

2003-10-18 Thread Dave Reed
On Saturday 18 October 2003 11:24, Russell Shaw wrote: > Joe Scaduto wrote: > > On Sat, 2003-10-18 at 06:01, Sven Neumann wrote: > > > >>Hi, > >> > >>Russell Shaw <[EMAIL PROTECTED]> writes: > >> > >> > >>>Maybe you need: g_signal_connect((gpointer) okLoginButton, "clicked", > >>>

Re: Glade 2 & passing data to signal handlers

2003-10-18 Thread Russell Shaw
Joe Scaduto wrote: On Sat, 2003-10-18 at 06:01, Sven Neumann wrote: Hi, Russell Shaw <[EMAIL PROTECTED]> writes: Maybe you need: g_signal_connect((gpointer) okLoginButton, "clicked", G_CALLBACK (on_okLoginButton_clicked), GTK_OBJECT (loginDial

Re: Glade 2 & passing data to signal handlers

2003-10-18 Thread Joe Scaduto
On Sat, 2003-10-18 at 06:01, Sven Neumann wrote: > Hi, > > Russell Shaw <[EMAIL PROTECTED]> writes: > > > Maybe you need: g_signal_connect((gpointer) okLoginButton, "clicked", > >G_CALLBACK (on_okLoginButton_clicked), > >GTK_OBJECT (loginDia

Re: Glade 2 & passing data to signal handlers

2003-10-18 Thread Sven Neumann
Hi, Russell Shaw <[EMAIL PROTECTED]> writes: > Maybe you need: g_signal_connect((gpointer) okLoginButton, "clicked", >G_CALLBACK (on_okLoginButton_clicked), >GTK_OBJECT (loginDialog) ); Yes. Or simpler (w/o all the redundant casts): g_si

Re: Glade 2 & passing data to signal handlers

2003-10-18 Thread Russell Shaw
Joe Scaduto wrote: Hey I am a newbie to GTK+ 2 and Glade 2. I have been playing around with GTK and I understand the concept behind signals and events. My problem arised when I decided to use Glade 2 and wanted to connect a 'clicked' signal for a 'modal' 'dialog' window 'button'. When connecting

Glade 2 & passing data to signal handlers

2003-10-17 Thread Joe Scaduto
Hey I am a newbie to GTK+ 2 and Glade 2. I have been playing around with GTK and I understand the concept behind signals and events. My problem arised when I decided to use Glade 2 and wanted to connect a 'clicked' signal for a 'modal' 'dialog' window 'button'. When connecting any signal handler