Re: connecting entry to button



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]