Re: Finding widget from its name?

2006-08-15 Thread Progss
[EMAIL PROTECTED] napisa?(a): > Is there a function that allows one to search for a widget using its name or > label? I'm using Glade 2 to design a window (just a basic input form), and > each widget has a unique name. Unfortunately Glade doean't save any global > pointers to the widgets; I can

Re: Use of fgets, puts, rewind in Gtk+

2006-10-12 Thread Progss
Sucheta Ghosh napisaƂ(a): > I wished to read a file and get some lines from there like this: > - > fp=fopen("filename", "r"); > for(k=0; k<8; k++){ > n=a[k]; > for (i=1; i<=n; i++) //Here 'n' is the line number > fgets(s, 100,

Re: Programming with GTK

2006-10-25 Thread Progss
Steffen Gutmann napisa?(a): > Consider the following macros: > > #define WindowObject gtk_widget_new(GTK_TYPE_WINDOW > #define VBoxObject gtk_widget_new(GTK_TYPE_VBOX [...] > #define End NULL) > > ... allows to write code like this: > > GtkWidget *win, *label, *ok, *cancel; > > win = Wi

Re: Problem running the GTK main loop in a separate thread (different from the main one).

2009-08-30 Thread Progss
O czasie 2009-08-28 13:16, taki ktos jak Cristi Cobzarenco napisac raczyl: Hi, I've been using GTK for a pretty long time but I've never used threads with it and I'm not able to properly run the GTK main loop in a separate thread.More to the point if I create a window, for example, in a thread ot