Answer to: What causes GLib I/O Channels operations to use up 100% CPU in GTK+ app.?

2006-10-12 Thread Daniel Yek
Thanks for responding. I sent out a reply in the afternoon, but it was waiting for approval due to the way I sent it. I was: [Moving gtk-app-devel-list@gnome.org to BCC.] Similar response inline... At 09:36 PM 10/12/2006, [EMAIL PROTECTED] wrote: >On Thu, Oct 12, 2006 at 02:41:06AM -0700, Dani

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

2006-10-12 Thread Madhusudan E
Hi, There is absolutely no problem in doing file operations in GTK based applications. Just check the validity of your operations. Check the validity of your file name , path, Security options ( Read only etc). Always remember to close the file. Nothing to worry much, some silly thing has gone w

RE: GTK table insert row

2006-10-12 Thread Madhusudan E
Guy Rouillier escribió: > Razvan wrote: > >> Hi there >> >> I have the following problem: >> I have a dynamic created table and at a moment I want to insert a whole row >> into the table but I dont know how to do it. I dont want to re-create the >> entire table. Is there any possibilies to do su

Re: What causes GLib I/O Channels operations to use up 100% CPU in GTK+ app.?

2006-10-12 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Oct 12, 2006 at 02:41:06AM -0700, Daniel Yek wrote: > Attaching file in email body... > > At 02:36 AM 10/12/2006, Daniel Yek wrote: > >Hi, > > > >I am attaching the source code of a small test program here. > > > >Could somebody enlighten me w

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

2006-10-12 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Oct 12, 2006 at 08:14:50PM +0200, Progss wrote: Let me add some cents to Progss' two dollars :-) > Sucheta Ghosh napisa?(a): > > I wished to read a file and get some lines from there like this: > > - > > fp=fopen("filename", "r");

Re: GTK table insert row

2006-10-12 Thread Matias Torres
Guy Rouillier escribió: > Razvan wrote: > >> Hi there >> >> I have the following problem: >> I have a dynamic created table and at a moment I want to insert a whole row >> into the table but I dont know how to do it. I dont want to re-create the >> entire table. Is there any possibilies to do su

Re: Combining GTK+ and C++

2006-10-12 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/12/2006 4:26 PM, Nickolai Dobrynin wrote: > Hi! > > Are there any well-known C++ applications that use GTK+ behind the scenes? > Any links to those? > > For some reason, I'm having rough time wrapping GTK+ in C++ in a way that > makes the life

Combining GTK+ and C++

2006-10-12 Thread Nickolai Dobrynin
Hi! Are there any well-known C++ applications that use GTK+ behind the scenes? Any links to those? For some reason, I'm having rough time wrapping GTK+ in C++ in a way that makes the life span of the wrapping object equal to that of the underlying GTK instance. Are there, possibly, any tutorials

Re: GTK table insert row

2006-10-12 Thread Guy Rouillier
Razvan wrote: > Hi there > > I have the following problem: > I have a dynamic created table and at a moment I want to insert a whole row > into the table but I dont know how to do it. I dont want to re-create the > entire table. Is there any possibilies to do such thing ? > > Any help or suggesti

Pango-1.14.6 released

2006-10-12 Thread Behdad Esfahbod
Pango-1.14.6 is now available for download at: http://download.gnome.org/sources/pango/1.14/ or ftp://ftp.gtk.org/pub/pango/1.14 e2c9658c6ed0b1f6bdc3b7c1171bf90f pango-1.14.6.tar.bz2 51511c1742e4f51e2a83c4980b615210 pango-1.14.6.tar.gz This is a stable release and is source and binary comp

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,

GTK table insert row

2006-10-12 Thread Razvan
Hi there I have the following problem: I have a dynamic created table and at a moment I want to insert a whole row into the table but I dont know how to do it. I dont want to re-create the entire table. Is there any possibilies to do such thing ? Any help or suggestions are apreciated. -- Respe

Use of fgets, puts, rewind in Gtk+

2006-10-12 Thread Sucheta Ghosh
Hello, 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, fp);

RE: (Easy?) Newbie enquiry re: pointers

2006-10-12 Thread kakuta
Many thanks to everyone who has written in regarding this query (I don't have an internet connection at home, hence the delayed response). I will go and try out your suggestion. Cheers, D. Original Message From: Madhusudan E <[EMAIL PROTECTED]> Apparently from: [EMAIL PROTE

Re: What causes GLib I/O Channels operations to use up 100% CPU in GTK+ app.?

2006-10-12 Thread Daniel Yek
Attaching file in email body... At 02:36 AM 10/12/2006, Daniel Yek wrote: >Hi, > >I am attaching the source code of a small test program here. > >Could somebody enlighten me why after an I/O Channel operation >(g_io_channel_shutdown() here), the GTK+ program started to use up 100% CPU? > >Is it m

What causes GLib I/O Channels operations to use up 100% CPU in GTK+ app.?

2006-10-12 Thread Daniel Yek
Hi, I am attaching the source code of a small test program here. Could somebody enlighten me why after an I/O Channel operation (g_io_channel_shutdown() here), the GTK+ program started to use up 100% CPU? Is it monitoring something? Do I need to undo g_io_add_watch() somehow? What operation

Re: Quick question about stock icons...

2006-10-12 Thread Yeti
On Thu, Oct 12, 2006 at 04:22:55AM -0400, Freddie Unpenstein wrote: > When creating a GtkImage from a stock icon, you need to tell it the size of > the image to create, as one of the GTK_ICON_SIZE_* constants. > > What I want is to find out programatically, how large those sizes are in > pixels.

Quick question about stock icons...

2006-10-12 Thread Freddie Unpenstein
When creating a GtkImage from a stock icon, you need to tell it the size of the image to create, as one of the GTK_ICON_SIZE_* constants. What I want is to find out programatically, how large those sizes are in pixels. The reason: I've got a function which takes either a stock icon id, or a fi

Re: polling sockets using glib

2006-10-12 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Oct 10, 2006 at 08:48:54PM +0200, Soeren Sandmann wrote: > Peter Robinson <[EMAIL PROTECTED]> writes: > > > I am writing a server application (using glib) in which I want to be > > able to (frequently) turn polling on and off for given socket