Re: using pipes with g_spawn_command_line_sync

2006-08-24 Thread Colossus
Luka Napotnik wrote:
 I am unable to run a command with g_spawn_command_line_sync() that uses
 pipes. For example echo \bla\ | wc -l gives the exact output as the
 command insted 1. Other commands without the pipe execute with no
 problem. What's the problem?

see file rpm.c from xarchiver sources.

-- 
Colossus
Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org
Xscreencast, a DE independent desktop session recorder - 
http://xscreencast.berlios.de
Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Record/Playback GUI Operations

2006-08-24 Thread Sai Laxmi K

Hi,
  I've developed an application with GTK. Now the requirement is that the
key presses and button clicks should be recorded so that the user can
play-back the test and get the results. Is there a way in GTK to accomplish
this. Pl. give some advice to me on this.

Thanks and Regards
Laxmi



___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


GtkEntry operation

2006-08-24 Thread naval kishor
Hi,
  I've developed an application with gtk+-2.8.18 version.Application is like
that there are three entry field and in all the three field i can enter the
number but i require some validation on entered number but problem is that
validation should happen after focus goes out from all the three entry field .
  i have override a function  gtk_field_entry_focus(GtkWidget  
  
*widget,GtkDirectionType direcction);
but  it validate the values when focus moved from one entry field to another 
entry  field.
  So i want to advice to all that what functionality i have to apply for 
resolve this problem.
thanks for replying  in advance.
  
Thanks and Regards 
Naval


-
 Here's a new way to find what you're looking for - Yahoo! Answers 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: g_object_class_install_property

2006-08-24 Thread Tristan Van Berkom
Madhusudan E wrote:
[...]

All I want to know is, Well the above stated behaviour of GTK is default
behavior or Am I going wrong some where.
  

If the property is never explicitly specified, either via g_object_new()
or g_object_set() - then the set_property class method will _not_ be called.

When you create a GParamSpec for your property, you give it a default value,
why would g_object_new() need to redundantly sync that default if you 
already
specified it ?

Cheers,
-Tristan

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


GLib Eventing

2006-08-24 Thread Brian Clow
I'm developing a cross platform application using Glib to provide
portability.  I've made heavy use of Windows events (i.e. CreateEvent)
in the past - they allow a thread to sleep indefinitely until one of a
group of events is signaled by another thread.  What the best way to do
something similar using Glib?  

 

I see two ways.  The first is to use a GCond with g_cond_timed_wait.
This has two disadvantages - the thread may only wait on a single signal
type, and there's a GMutex involved, which I'm not using for any other
purpose.  The second is to use a GAsyncQueue with
g_async_queue_timed_pop.  This would allow the thread to wait for
multiple event types - the contents of the pointer popped of the queue
would indicate what type of event was being signaled.

 

It seems GAsyncQueue is the right structure for this purpose - just want
to ensure there's no structures I'm overlooking, or nothing about the
GAsyncQueue which makes it unsuitable for this purpose

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


RE: Record/Playback GUI Operations

2006-08-24 Thread Sai Laxmi K
Thanks Mr.Vivien,
   That site was extremely useful. But I have one problem in configuring. I
know this query is not relevant to this post, but I'm not able to find any
other means to solve this. When I'm configuring Xnee with Cygwin, it's
throwing two errors,


 ERROR 

Could not locate the needed X11 extensions:

   RECORD
   XTest

Make sure you have them installed before building Xnee


Where can I find these two extensions and how can I include them in my
Cygwin. Can you pl. help me.

Regards
SaiLaxmi


-Original Message-
From: Vivien Malerba [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 24, 2006 5:18 PM
To: Sai Laxmi K
Cc: gtk-app-devel-list@gnome.org
Subject: Re: Record/Playback GUI Operations

On 8/24/06, Sai Laxmi K [EMAIL PROTECTED] wrote:

 Hi,
   I've developed an application with GTK. Now the requirement is that the
 key presses and button clicks should be recorded so that the user can
 play-back the test and get the results. Is there a way in GTK to
accomplish
 this. Pl. give some advice to me on this.


There is the Xnee program which might be of interest to you then:
http://www.gnu.org/software/xnee/

Regards,

Vivien




___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list