[Glade-users] changing the title on the main window.
Tristan Van Berkom
tristan.van.berkom at gmail.com
Fri Jun 23 15:38:09 EDT 2006
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
More information about the Glade-users
mailing list