question about instancing variables



Hi All,

All GTK+ codes that I see all variables are GtkWidget and after transformed for the widget. Example:

GtkWidget *button;

button = gtk_ button_new();

Why not directly:

GtkButton *button;

Thanks




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