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

Re: GTK_WINDOW



Bart Vandewoestyne wrote:
> 
> I'm using the following to set the title of a GTK top level window:
> 
> gtk_window_set_title(GTK_WINDOW(mot_main_window),
> "Steppermotorcontroller v1.2");
> 
> mot_main_window is a (GtkWidget *)
> 
> I have found the macro to cast it to a GTK_WINDOW somewhere in an
> example program.  I also looked for this macro in the reference
> documentation but i couldn't find it... I was just wondering where these
> macro's such as GTK_WINDOW is to be found in the reference
> documentation.  I would like to know this because I would like to know
> what other macro's there exist to upcast.  I know the naming conventions
> are quite obvious, but it's always safe to check...

For each widget, you can look in /usr/include/gtk directory

For example with GtkWindow, look in /usr/include/gtkwindow.h
You will see at the begining of the file:
#define GTK_WINDOW(obj)                 (GTK_CHECK_CAST (obj,
GTK_TYPE_WINDOW, GtkWindow



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