Re: Signals & Callbacks - Help!! Part 2

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

 



On Thu, Jul 07, 2005 at 02:33:47AM -0000, jalkadir@xxxxxxxxxx wrote:
> I did as you suggested and this is the result of the modifications:
> ----snip-----
> gboolean MessageInfo(GtkButton* btn, char* msg){...}
> 
> g_signal_connect(GTK_OBJECT(btnCreateAccount),"clicked", /*This line
> causes the error*/
>                     GTK_SIGNAL_FUNC(MessageInfo(btnCreateAccount,
> strMsg.c_str()) ), NULL);
> ----eos----
> 
> But for some reason I get an error message that reads:
> 50: error: cannot convert `GtkWidget*' to `GtkButton*' for argument `1' to
> `gboolean
> =======

You are calling the function instead of passing a pointer to
the function as an argument.  And you still pass NULL as the
last argument, which should be msg.  Please read the
tutorial.

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux