Re: Is there a way to send some user-defined value while creating a gtk-window??



On Fri, 29 Apr 2011, prudhvi raj wrote:

> I need to send some user-defined value (say some integer) along with the gtk
> window creation api.
> So that i can differentiate that particular window from other windows and
> use that user-defined integer to change the way how the window pixmap gets
> created in X11 backend?
>
> Does gtk provide such mechanism to pass additional parameters in the window
> create/allocation api?

You should ask this sort of question on the gtk-app-devel list,
not here: this list is concerned with the development of GTK
itself.

That said, you can attach any data you like to a gtk widget
using the function g_object_set_data() -- and can then retrieve it
with g_object_get_data(). See the section "The Base Object Type"
in the GObject Reference Manual.

-- 
Allin Cottrell
Department of Economics
Wake Forest University



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