tober 9, 2007 11:45:52 AM
Subject: Re: timeout function not called
Thanks James,
Sorry, I didn't mean to seem like I was ignoring you, but the code I
am working on is part of a bigger application and I wasn't sure how to
extract the bit I was working on into a usable piece. I was al
Thanks James,
Sorry, I didn't mean to seem like I was ignoring you, but the code I
am working on is part of a bigger application and I wasn't sure how to
extract the bit I was working on into a usable piece. I was also
looking into using GIOChannels to see if I could make that work.
Thanks
Vicki,
Here is a more complete example of how to resolve your issue.
Compile with this command
'# gcc -Wall -g -O2 `pkg-config --libs --cflags gtk+-2.0 glib-2.0
gthread-2.0` gprogress.c'
BEGIN-CODE
#include
/* no globals */
typedef struct _INSTANCE_VALUES
{
GtkWidget *progressbar;
On Thu, 2007-10-04 at 13:27 -0700, [EMAIL PROTECTED] wrote:
> Thanks James for giving me my first experience with Thread programming!
> I tried the code you sent me, but unfortunately, I still can't get the
> progress_update
> function to run, looks like it never gets called. Any idea why this
Thanks James for giving me my first experience with Thread programming!
I tried the code you sent me, but unfortunately, I still can't get the
progress_update
function to run, looks like it never gets called. Any idea why this
might be happening?
growPart still runs.
Thanks,
Vicki
[Hide Quo
On Tue, 2007-10-02 at 10:51 -0400, [EMAIL PROTECTED] wrote:
> I'm still muddling my way through my first GTK application (and I'm a
> relative newbie on all software matters).
>
> I have the following in one of my callbacks:
>
> timer = g_timout_add(50, (GSourceFunc) progress_update,
> (gpoint
Thanks,
I have tried to add gtk_main_iteration in various places but it still
won't work. Also I just want the bar to pulse while growPart is running -
just to show something is happening. After grow Part is finished, I want
to run the ext2resize utility and have a progress bar pulsing through
On 10/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm still muddling my way through my first GTK application (and I'm a
> relative newbie on all software matters).
>
> I have the following in one of my callbacks:
>
> timer = g_timout_add(50, (GSourceFunc) progress_update,
> (gpointer)progr
I'm still muddling my way through my first GTK application (and I'm a
relative newbie on all software matters).
I have the following in one of my callbacks:
timer = g_timout_add(50, (GSourceFunc) progress_update,
(gpointer)progressbar);
pid = fork( );
if (pid == 0)
{
growPart ( );
e