null parameter warning issue.
- From: David Robin <david robin st com>
- To: gtk-list gnome org
- Subject: null parameter warning issue.
- Date: Wed, 25 Jul 2001 12:17:04 +0200
hi everyone,
when i use this piece of code:
gtk_menu_popup(
GTK_MENU (context_menu),
GTK_WIDGET (NULL), // GtkWidget
*parent_menu_shell,
GTK_WIDGET (NULL), // GtkWidget
*parent_menu_item,
GTK_SIGNAL_FUNC(NULL), // not really GTK_SIGNAL_FUNC
but works anyway.
NULL, // gpointer data,
event->button,
event->time
);
I get twice "Gtk-WARNING **: invalid cast from (NULL) pointer to
`GtkWidget'" during execution.
It seems to be caused by the "GTK_WIDGET (NULL)" parameters.
I'd like to know how to get ride of those warnings, because i'd like to
output data on stdout/err.
David.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]