How to reach objects inside window
- From: Alexandre Hautequest <hquest fesppr br>
- To: gtk-app-devel-list gnome org
- Subject: How to reach objects inside window
- Date: Mon, 16 Oct 2000 09:09:49 -0200
Hi.
I have some entry widgets (let's imagine 3). After an "activate" event
on the first, i need to change the text "automagically" for the other
two. The first problem: Actually, i've not just 3 widgets, i've about
15 :(.
To get the text from the window, i have the following codes (please
correct me if i'm wrong):
-->8 Begin part of C code 8<--
GtkWidget *create_window(void) {
/* some code snipped */
gtk_signal_connect (GTK_OBJECT (cod), "activate",
GTK_SIGNAL_FUNC (on_entry1_activate),
(gpointer) wm_window);
/* more code snipped */
}
void
on_entry1_activate (GtkEditable *editable,
gpointer user_data)
{
/* more code snipped */
gchar *value
value = gtk_entry_get_text (GTK_ENTRY (gtk_object_get_data (GTK_OBJE
CT (user_data), "entry1")));
}
But now, how can i set text for the other two entries?
This is my 1st. GTK program, and i think if i could understand how to
reach the code inside windows i could do anything ;)
Thanks in advance.
--
Alexandre Hautequest
hquest fesppr br
-----------------------------------------------------------------------
Esta mensagem foi enviada pelo WebMail da FESP (http://www.fesppr.br/).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]