Re: Is there a way to send some user-defined value while creating a gtk-window??
- From: Allin Cottrell <cottrell wfu edu>
- To: prudhvi raj <prudhviraj v gmail com>
- Cc: gtk-devel-list gnome org
- Subject: Re: Is there a way to send some user-defined value while creating a gtk-window??
- Date: Fri, 29 Apr 2011 14:24:36 -0400 (EDT)
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]