[Glade-users] changing the title on the main window.



Uri wrote:

thanks for the help, but why do i need to pass a reference to a button, i just
want to change the title when, for example, the user entered a number.
is there any way to call gtk_window_set_title() simply from a function?

the reason i am asking is because the function i am using is a simple callback
funtion for a timer, there are no paramters, not gtkwidgets, etc.

 

If your timer is g_timeout_add(), then you have a user_data argument
that you can pass the window pointer to.

Bottom line is that you must know the address of your GtkWindow,
otherwise how could you access the right one ?

Cheers,
                                      -Tristan





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