_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Reporting-MTA: dns;mail.hotmail.com
Received-From-MTA: dns;mail.hotmail.com
Arrival-Date: Sat, 17 Mar 2001 02:16:41 -0800

Final-Recipient: rfc822;[EMAIL PROTECTED]
Action: delayed
Status: 4.4.1
Will-Retry-Until: Wed, 21 Mar 2001 02:16:41 -0800



you can pass the widget to the function by entering its name in the data
section under the signals tab in glade.

take your button for example......you want to update the widget when it is
pressed right?
click on the button and go to the signals property box. use the clicked
signal, enter a name of the function that you want to handle the signal and
in the data section enter the name of the widget e.g window1 or whatever you
named the widget.

Now in the function handler the pointer to the widget is the *user_data
pointer. You can get the value of different widgets by using the
lookup_widget() function


-->hope this helps,
hacking linux @ www.mylimp.org


----Original Message Follows----
From: David Eduardo Gomez Noguera <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: how to know a widget?
Date: Fri, 16 Mar 2001 21:16:00 -0600
MIME-Version: 1.0
Received: from [209.116.70.71] by hotmail.com (3.2) with ESMTP id
MHotMailBC7C21CD0038D82197B4D174464708F50; Fri Mar 16 19:15:31 2001
Received: from mail.gnome.org (localhost.localdomain [127.0.0.1])by
mail.gnome.org (Postfix) with ESMTPid 231922D007; Fri, 16 Mar 2001 22:15:09
-0500 (EST)
Received: from localhost.localdomain (unknown [132.248.113.16])by
mail.gnome.org (Postfix) with ESMTP id 54A5B2BAE9for <[EMAIL PROTECTED]>;
Fri, 16 Mar 2001 22:11:40 -0500 (EST)
Received: from localhost.localdomain (IDENT:[EMAIL PROTECTED]
[127.0.0.1])by localhost.localdomain (8.11.0/8.11.0) with SMTP id
f2H3G2b01643;Fri, 16 Mar 2001 21:17:57 -0600
>From [EMAIL PROTECTED] Fri Mar 16 19:16:19 2001
Delivered-To: [EMAIL PROTECTED]
Message-Id: <[EMAIL PROTECTED]>
X-Mailer: Sylpheed version 0.4.61 (GTK+ 1.2.8; Linux 2.4.1; i686)
Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
X-BeenThere: [EMAIL PROTECTED]
X-Loop: [EMAIL PROTECTED]
X-Mailman-Version: 2.0beta5
Precedence: bulk
List-Id: General discussion of GTK+ <gtk-list.gnome.org>

hello. i am starting with gtk.
should i start watching what is about the not yet released gtk ?
i have some doubts here.
I was starting reading the smaples on the tutorial, and programming with
glade.
the tutorias always reuse the widget ponters, while the glade generated code
dont.
either way, the widget is lost for all other functions.
I am making a small program that will fill a clist with the content of a
database.
it will do so in the begining of the program and later, each time a button
is pressed.

I have't find a way to do this. all functions seem to want a pointer to the
widget in question.How can i get it?
I would use it with another button to, that when it is pressed, it needs to
read the status and contents of a couple of other widgets, to update the db
from there.

Thank you very much for any light you can shade :)


ICQ: 15605359 Bicho
                                   =^..^=
First, they ignore you. Then they laugh at you. Then they fight you. Then
you win. Mahatma Gandhi.
........Por que no pensaran los hombres como los animales? Pink
Panther........
-------------------------------�C���̂̈�v------------------------------------
�����������ފ݂܂ŁB
�A�� �A�� �A�� �Ƃ��Ă���D��


_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





Reply via email to