Re: using lookup_widget



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



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