[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GtkEntry move_cursor signal
- From: Owen Taylor <otaylor redhat com>
- To: Matthias Mann <matman matman24 org>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkEntry move_cursor signal
- Date: Sun, 26 Oct 2003 17:01:46 -0500
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]