How to reset the progress bar when in pulse mode

2005-11-14 Thread Colossus
Hi, I use the progress bar in pulse mode since I don't know the amount of bytes to process. When the byte processing is finished the pulse (I don't know if it is correct to call it like this) remains inside the progress bar. Is there a way to reset the progress bar so that when the processing

GChildWatchFunc function called when the child is still outputting data

2005-11-14 Thread Colossus
Hi, I run unzip -vl archive_550mb.zip with g_spawn_async_with_pipes and I read its output line by line with g_io_channel_read_line. To know when unzip executable has finished I register a GChildWatchFunc with g_child_watch_add(). The data is to be inserted in a liststore. To speed up the

GTK_Entry help

2005-11-14 Thread Simon Jerram
Is there any way of disabling the cursor in a Gtk Entry? I have inherited a programme which uses a Gtk_Entryu object for text entry. It uses the following code to handle key presses. int cursor_pos = 0; char *text = NULL; int string_size = 0; cursor_pos =

Re: Win32 Glib 2.8.x g_io_channel issues (receiving window messages on socket io channel)

2005-11-14 Thread Tor Lillqvist
g_io_win32_check: WSAEnumNetworkEvents (1576, 0x618) revents={} condition={IN|ERR|HUP} events={} What seems to happen is that after watching a socket io channel once, I'll continue to see these messages until I restart the program - even if the io channel should have been cleaned up by

Re: How to reset the progress bar when in pulse mode

2005-11-14 Thread Colossus
Peter Hille wrote: and setting the 'fraction' to 0.0. This is normally used to fill the progress bar to a certain amount, but you can also use it to completely empty it. The fraction value should be between 0.0 and 1.0 (including these). More info on the progress bar in general can be found on

confused about pango_cairo_font_map_set_resolution API

2005-11-14 Thread Axel Simon
Hi, I'm slightly confused about the pango_cairo_font_map_set_resolution function and friends, mainly because it only takes one argument, namely a scaling factor between em*1/72 (font size in inch (why oh why?!)) and pixels. Given that my monitor (and probably other output media) has a different

Error while compiliing

2005-11-14 Thread sadhees kumar
Dear Friends, I am developing GTK application using Glade in Red Hat Linux 9 ( GTK+ 2.2.4, GLADE 1.1.3) . every thing is fine when we develop a small application. if we go for bigger application, I am getting the following error while compiling, cc1: cannot allocate 2045712000bytes after

Re: Win32 Glib 2.8.x g_io_channel issues (receiving window messages on socket io channel)

2005-11-14 Thread Daniel Atallah
On 11/14/05, Tor Lillqvist [EMAIL PROTECTED] wrote: g_io_win32_check: WSAEnumNetworkEvents (1576, 0x618) revents={} condition={IN|ERR|HUP} events={} What seems to happen is that after watching a socket io channel once, I'll continue to see these messages until I restart the program - even

Re: GTK- How to get the text appearing on the button

2005-11-14 Thread sadhees kumar
You can use the following function gtk_button_set_label(button,label); Regards, K.Sadheeskumar On 11/15/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I need help in getting the text that appears on the button widget. I have a button HOLD. When I click this, function-A will be

GTK- How to get the text appearing on the button

2005-11-14 Thread suganya
Hi all, I need help in getting the text that appears on the button widget. I have a button HOLD. When I click this, function-A will be called and the text on the button is changed to REMOVE HOLD When REMOVE HOLD is clicked function-B needs to be called. ie, function-A must be called when HOLD