How to ask if a widget is GtkMenuBar or GtkMenuItem



Hi, i'm writing my own functions to create menus, submenus, etc.

In my function CreateMenu(GtkWidget* parent, gchar* label), I would like to know if my "GtkWidget* parent" parameter is either a GtkMenuBar or a GtkMenuItem..

how can I ask this?

Thanks




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