Re: connecting entry to button
- From: Peter Bloomfield <peterbloomfield bellsouth net>
- To: Yucehan Kutlu <yucehan gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: connecting entry to button
- Date: Sun, 24 Apr 2005 17:10:10 +0000
On 04/24/2005 12:24:36 PM, Yucehan Kutlu wrote:
Hi
when press okay the title on the entry will be write on console
but i cannot connect enter function to okay button program
compile normaly but hiting okay it gives this error
(iler:5219): GLib-GObject-WARNING **: invalid cast from
`GParamBoolean' to `GtkEntry'
[ snip ]
static void enter(GtkWidget *widget,GdkEvent *event,GtkEntry
*edit)
[ snip ]
button2=gtk_button_new_with_label("Okay");
[ snip ]
gtk_signal_connect(GTK_OBJECT(button2),"clicked",GTK_SIGNAL_FUNC(enter),(gpointer)edit);
See
<http://developer.gnome.org/doc/API/2.0/gtk/GtkButton.html#GtkButton-clicked>:
The "clicked" signal
void user_function (GtkButton *button,
gpointer user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]