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

Re: trouble with gtk--



Dan Rosen wrote:
> 
> I'm trying to get the hang of working with gtk--, but I can't seem to get
> my signals to compile (even after checking all the example code and such).
> 
> I set up a connection here:
> 
> EccoMainWindow::EccoMainWindow(EccoGUI* gui)
>: Gtk_Window(GTK_WINDOW_TOPLEVEL) {
> 
>   gui_ = gui;
>   connect_to_method(delete_event, gui_, &EccoGUI::mwDeleteEvent);
> 
> }
> 
> Simple enough, right? And my callback looks like this:
> 
> gint EccoGUI::mwDeleteEvent(GdkEventAny* event) {
> 
>   ...
>   return 0;
> 
> }
> 
> But my code won't compile. I've changed gint to void and back, removed
> GdkEventAny* and put it back, made the function const, etc., and nothing
> has worked. I always get gcc spewage resembling:
> 
> ...
> eccomainwindow.C: In method `EccoMainWindow::EccoMainWindow(class EccoGUI *)':
> eccomainwindow.C:14: no matching function for call to `connect_to_method (Signal_proxy1_r<int,_GtkWidget,_GdkEventAny *> &, EccoGUI *&, gint (EccoGUI::*)(GdkEvent *))'
> 
> Any ideas? Thanks,
> Dan
> 
> --
>          To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
>                        "unsubscribe" as the Subject.
> 
>         Mailing list concerns should be mailed to <listmaster@redhat.com>

If your code is short, could you post all of it? You
might also want to join the gtk-- mailing list. Instructions
for joining are at 

http://lazy.ton.tut.fi/terop/iki/gtk/mailinglist.html

it would probably be a better place for this question.

If you post you code, I will try to get the connection
to compile for you.

Todd.
-- 
-----------------------------------------
Todd & Lisa Dukes
tjdukes@flash.net



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