GTK pipe

2005-12-14 Thread Ahmad Mouri Sardarabadi
hello every1, i'm trying to capture stdout.stderr of a child prosses while using gtk. i'v found the following codes and i changed it a little and it works perfect: void run_program( char *cmd) { gintstdin_pipe[2]; gintstdout_pipe[2]; gintstderr_pipe[2]; /* Define

Events and derived objects

2005-12-14 Thread Eduardo M Kalinowski
I'm using in my application a subclassed object (a subclass of HBox) that contains a TextView widget (and some other things not relevant here). What I'd like to do, with regard to key presses, is the following: 1. Almost all basic keys (letters, cursor movement, etc) should still be

re: SPAM LOW Re: Top Window Background

2005-12-14 Thread Andy Grebe
Yeah, when I use the gtk_widget_modify_bg(GTK_WIDGET(window), GTK_STATE_NORMAL, color), the background color does not change, even if I use it with all GTK_STATE_...s. Andy From: Andreas Stricker [EMAIL PROTECTED] Sent: Wednesday, December 14, 2005

re: Reference to a C++ object in GTK+ callbacks

2005-12-14 Thread Andy Grebe
Paul, As it has been said, your function needs to have the correct format, i.e. gboolean play_cb (GtkWidget *widget, gpointer ptr) {} Andy From: Paul Santa Maria [EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 7:01 PM To:

Re: Events and derived objects

2005-12-14 Thread Tristan Van Berkom
Eduardo M Kalinowski wrote: [...] I've achieved capturing some specials keys, but letting everything else work as normally in the TextView by connecting a handler to a key-press-event of the TextView inside the derived widget's implementation, but I have'nt discovered how to propagate keys

Re: Reference to a C++ object in GTK+ callbacks

2005-12-14 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/14/2005 11:19 AM, Stephen Pollei wrote: On 12/13/05, Daryl Lee [EMAIL PROTECTED] wrote: Are you sure that is the right style for that callback? static void rocket_cb(GtkWidget *widget, GdkEventExpose *event, gpointer data) { class

Re: Reference to a C++ object in GTK+ callbacks

2005-12-14 Thread Daryl Lee
Well, thanks for the correction. I will have to go back through my projects to understand why I thought that. On Wed, 2005-12-14 at 11:19 -0800, Stephen Pollei wrote: On 12/13/05, Daryl Lee [EMAIL PROTECTED] wrote: ... C++ functions do, indeed, have to be static to be used as GTK+

Re: GTK+ for Windows: issues with apps locating the dll's

2005-12-14 Thread Daniel Atallah
On 12/14/05, Gnaural [EMAIL PROTECTED] wrote: Does anyone here know why the GTK+ windows apps would give-up before even getting to either my main() (or WinMain())? If a library (dll) that your executable is linked against is not found, the executable cannot be run. You're trying to specify

Re: Reference to a C++ object in GTK+ callbacks

2005-12-14 Thread Wallace Owen
On Wed, 2005-12-14 at 11:28 -0800, Brian J. Tarricone wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ... IIRC, I believe the functions only have to be static in this case if they're actually C++ class methods. Plain old C global functions don't need to be static, though if they're

Re: Reference to a C++ object in GTK+ callbacks

2005-12-14 Thread Chris Vine
On Wednesday 14 December 2005 20:38, Wallace Owen wrote: [snip] Warning! It may work for you. It's not portable. C++ implementations are free to use a calling convention different from the C calling convention: In C, parameters are pushed in reverse order to support varargs. C++

activeX embedding

2005-12-14 Thread Nick Watts
Does anyone know if it is possible to embed an activeX control in a GTK+ app? In particular the mozilla control or if I get desperate enough the IE one? For win32 so gtkmozembed is out although I'll probably use that when I port to linux. Thanks guys.

GTK+ for Windows: issues with apps locating the dll's

2005-12-14 Thread Tor Lillqvist
Gnaural writes: One glitch, though. I'm finding that my GTK+ apps don't automaticaly find the installed GTK+ dll's in Windows. The lazy solution was just to set the system PATH variable to point to the GTK+ bin directory. But I've been informed that this is bad practice, because of

Re: Reference to a C++ object in GTK+ callbacks

2005-12-14 Thread Paul Santa Maria
Thank you on all counts! The main problem was my callback (duh! I forgot the GtkWidget *w argument!); I also changed all my gtk_signal_connect() calls to g_signal_connect(), and all my gtk_signal_connect_object() to g_signal_connect_swapped(). It works fine now - thanx again! --- Stephen

Re: GTK+ for Windows: issues with apps locating the dll's

2005-12-14 Thread Eduardo M KALINOWSKI
Gnaural wrote: First of all, big thanks to Tor Lillqvist and everyone else involved in the GTK+ for Windows port. Because of the GTK+, Glib, the MinGW cross-compiler, and WINE, I never have to leave Linux (or even own a Windows box) to make some Windows users happy! I love that -- in fact, it

Re: GTK+ for Windows: issues with apps locating the dll's

2005-12-14 Thread Gnaural
Eduardo M KALINOWSKI [EMAIL PROTECTED] wrote: ... Another option is Application Paths - they are registry keys for you application that set a path were it can find DLL's. It's better than setting the global PATH environment variable. If your program uses a installer, you'd set this registry key