Is this OK?
- From: vladimir <vladeck sezampro yu>
- To: Gtk app devel <gtk-app-devel-list gnome org>
- Subject: Is this OK?
- Date: 01 Aug 2002 02:08:49 +0200
Hi,
Great free software developers!
Beginers question:
g_signal_connect (G_OBJECT (button_cancel),
"clicked",
G_CALLBACK (kstudentnew_quit_cb),
main_window); /* this is main window the button is in */
callback:
void kstudentnew_quit_cb (GtkWidget *widget, gpointer callback_data)
{
gtk_widget_destroy ((GtkWidget *)callback_data);/* destroy main
window */
}
is this OK?
Can I cast callback_data like this? Main window is not main for app, but
for entry dialog for some data. When user cancel this window it calls
this callback. Is there cleaner way, or can go with this one?
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]