Fix gtk2 complaints.

SVN revision: 21385
This commit is contained in:
Kim Woelders 2006-03-18 21:51:38 +00:00
parent a50e988c74
commit 318e555c45
1 changed files with 3 additions and 2 deletions

View File

@ -53,6 +53,7 @@ CreateMenuItem(GtkWidget * menu, const char *szName, const char *szAccel,
if (szName && strlen(szName))
{
menuitem = gtk_menu_item_new_with_label(szName);
if (func)
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
GTK_SIGNAL_FUNC(func), (gpointer) data);
}