Re :Re: Global window???
- From: "Mauro Romano Trajber" <trajber terra com br>
- To: gtk-app-devel-list gnome org
- Subject: Re :Re: Global window???
- Date: Mon, 25 Feb 2002 19:27:29 +0000
Thanx Marcelo
I try this:
And doesnt work.
button_window2_clicked(){
clist = lookup_widget(GTK_WIDGET(button), "clist");
/*Error - clist in another window!!!*/
entry_text = lookup_widget(GTK_WIDGET(button), "entry_text");
gchar *my_text;
my_text = gtk_entry_get_text(GTK_ENTRY(entry_text));
gtk_clist_insert(GTK_CLIST(clist1), 0, &my_text);
ERROR IN LAST LINE !!! Cuz the clist are in another window.
how can i make a callback???
thanx
---------- Mensagem original -----------
De : gtk-app-devel-list-admin gnome org
Para : "Mauro Romano Trajber" <trajber terra com br>
Cc : gtk-app-devel-list gnome org
Data : Mon, 25 Feb 2002 15:16:09 -0300
Assunto : Re: Global window???
On Mon, Feb 25, 2002 at 05:58:58PM +0000, Mauro Romano Trajber wrote:
Hi all
im building a program using Glade , but i've a problem .
My program has the main window - window1 (Always Open!!!) with one
Clist and one button (button_window1)
Another window - window2 with one Text Entry and one
button(button_window2).
When button_window1 are clicked the window2 open .
OK , now the problem :
How can i "send" the text in the text_entry in window2 to Clist in
window1??
Thanx!
---end quoted text---
Well, just make a callback from button_window2 that do that, using
the functions gtk_entry_get_text () and gtk_clist_something (I didn't
take a look at clists yet..)
Just look the API, it's easy..
[]'s
--
Marcelo R Leitner <mrl netbank com br>
ICQ #: 29966851
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]