signal_connect ??



Hello , i have a problem with gtk_signal_connect ..
i try to copy the String "Bye" (example) to thefunction
file_quit_cmd_callback ...
...
gtk_signal_connect (GTK_OBJECT (main_window), "delete_event",
		      GTK_SIGNAL_FUNC (file_quit_cmd_callback),
		      (gpointer) "Bye");
  gtk_widget_show (main_window);
---
void
file_quit_cmd_callback (GtkWidget * widget, gpointer data)
{
  g_print ("%s\n", (gchar *) data);
  gtk_exit (0);
}
---
But the String was empty if i try to print it ... where is the problem
here ?
Thanks
-- 
ICQ: 52910964
scherfa fh-trier de
scherfa web de




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]