Re: GtkEntry move_cursor signal



On Sun, 2003-10-26 at 15:51, Matthias Mann wrote:
On Sunday October 26 2003 15:10 CEST, GÃnther Rapp wrote:
    
  gtk_signal_connect (GTK_OBJECT (entry1), "changed",
    
On Debian Linux 3.0 with gcc 2.95.4 the compiler would
do a warning message while working with code like this!
    
Note: The object you like to connect is a GtkEntry while
GtkWidget *entry1 in your code is initialized as GtkWidget.
The correct cast for this situation is:
    
g_signal_connect (GTK_OBJECT (GTK_ENTRY (entry1)), .....

You might want to recheck that. Doing nested casts like this
will never do anything but slow your code down.

Regards,
                                                Owen





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