Re: best way to pass data around

2006-01-30 Thread Andreas Stricker
typedef struct Data_To_Be_Sent { GtkWidget *scrolled_window_data_to_be_sent; GtkTextBuffer *buffer; GtkWidget *view_data_to_be_sent; int sockfd; } Data_To_Be_Sent; My question is, is there a better way to do this? Is using a typedef struct a good idea? my grasp of

best way to pass data around

2006-01-27 Thread Ken Nagorski
Hi there, So I have created a small IM app in gtk that can now connect and send data to my java IM server I created. Yippie... However I do have a question. in order to solve the problem of getting the text that I typed and the sockfd to the send_text function I created a struct. typedef str