Re: Re: using lookup_widget



Thnx Sven, but the day I want to connect multiple wigdets with 1 gtk_signal_connect, I could I do ?

>Hi,
>
>ztoon <ztoonifik netcourrier com> writes:
>
>> I have some "Segmentations Fault" problems using lookup_widget in a window
>
>just try to avoid lookup_widget(). It's inefficient and error-prone.
>
>> 	TList = gtk_clist_new_with_titles(2,TListTitles);
>> 	gtk_signal_connect(GTK_OBJECT(TList),"select_row",(GtkSignalFunc)RowSelect,NULL);
>
>simply pass PList as user data to signal_connect() ...
>
>> gboolean RowSelect(GtkWidget *w, gint lig, gint col, GdkEvent *ev, gpointer d)
>> {
>> 	gchar *x[12];
>> 	
>> 	GtkWidget *dList = lookup_widget(GTK_WIDGET(EditWin),"pList"); //here I want to get access to PList
>
>and write
>
>        GtkWidget *dList = GTK_WIDGET (data);
>
>instead.
>
>
>Salut, Sven
>
>

-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 ? TTC/min)
Minitel: 3615 NETCOURRIER (0,15 ? TTC/min)




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