WIN32: Spawning a command-line process

2009-01-27 Thread Tomas Soltys
Hi, I am writing a GUI application which executes a command-line executable and reads its output from stdout. For this I am using function g_spawn_async_with_pipes. If command-line program is linked with -mswindows then everything works fine, but I can not execute prog in command line. Stdout is

Re: WIN32: Spawning a command-line process

2009-01-27 Thread Tor Lillqvist
Resending with a slight rewording to get this message intact into the gtk-app-devel-list archive. The archive software at mail.gnome.org has the From bug!... If command-line program is linked with -mswindows You mean -mwindows (just a typo, I am sure, but in case somebody else doesn't know).

Re: WIN32: Spawning a command-line process

2009-01-27 Thread Tor Lillqvist
Compile this sample program Compile it with -mwindows , I forgot to say. It doesn't do anything interesting if built as a console .exe, in fact gives a misleading error message... --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: WIN32: Spawning a command-line process

2009-01-27 Thread jcupitt
2009/1/27 Tor Lillqvist t...@iki.fi: If you don't want to do that, your simplest option is to just build two separate versions of the prog program: One linked with -mwindows, one without. Note that you don't have to change a single line of code to make it into a GUI application, just link it

Re: WIN32: Spawning a command-line process

2009-01-27 Thread Tor Lillqvist
Let me add also that before you do any of that AttachConsole() and freopen() magic, you should of course make sure that stdout actually is attached to an invalid file handle. (stdout normally is attached to an invalid file handle in a GUI.exe that has been started without redirecting its stdout.

GtkImage

2009-01-27 Thread frederico schardong
Hello, I was created a space for image on glade-3, and I'm trying to link some imagem to this space. GtkWidget space; space = gtk_image_new_from_file(image.bmp); only this? the image will rezise itself to the space dimensions? ___ gtk-app-devel-list

Re: gtk_window_set_skip_taskbar_hint doesn't works on Windows

2009-01-27 Thread Rodrigo Miguel
Thanks Tadej, Also, is there any ETA to get this fixed? or is there any workaround? I Tried the code below (among other values for GWL_STYLE), but that is not exactly that I'm looking for: handle = (HWND)gdk_win32_drawable_get_handle(window-window); ShowWindow(handle, SW_HIDE);

An 'oldie' question... GtkCList anyone?

2009-01-27 Thread John Coppens
Hello people. In the process of converting an old program from mSQL to MySQL, I found a couple of potential traps and optimized a couple of functions. I now have a problem with adding lines into a GtkCList using gtk_clist_append. The code is like this: char *bff, str[4]; bff =

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread Tomas Soltys
Hi, try to declare str as: char *str[4]; Regards, Tomas Hello people. In the process of converting an old program from mSQL to MySQL, I found a couple of potential traps and optimized a couple of functions. I now have a problem with adding lines into a GtkCList using gtk_clist_append.

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread Tomas Soltys
Hi, try to declare str as: char *str[4]; Regards, Tomas Hello people. In the process of converting an old program from mSQL to MySQL, I found a couple of potential traps and optimized a couple of functions. I now have a problem with adding lines into a GtkCList using gtk_clist_append.

Full Screen mode behaves differently on two identical systems

2009-01-27 Thread Garth's KidStuff
Hey All, I have 2 computers, both running Ubuntu 8.10 (kernel2.6.27-9-generic). When my gtkmm application goes to full screen mode, and the user brings up any modal dialog (which is a child of the application main window), on one system everything looks fine. On the other, I get the System menu

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread John Coppens
On Tue, 27 Jan 2009 15:53:03 +0100 (CET) Tomas Soltys tomas.sol...@range-software.com wrote: Hi, try to declare str as: char *str[4]; Thanks for the suggestion, but it _was_ defined as a *str[4], of course. I probably would've experienced a lot of SEGFAULTS if not. Sorry for the typo.

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread Nicola Fontana
On Tue, 27 Jan 2009 12:38:09 -0200 John Coppens j...@jcoppens.com wrote: char *bff, str[4]; bff = strdup(abc|def|ghi|etc); Just to show bff has to freed later splitline(bff, str); This puts pointers into str to each of the substrings (at the start and

Re: GtkImage

2009-01-27 Thread Dov Grobgeld
If you use glade, then after loading the interface, the widget has already been created for you. There is therefore no need to generate another image widget through a call to gtk_image_new_from_file() and you should use gtk_image_set_from_file instead: GtkWidget *image = ...*get widget pointer

Re: Full Screen mode behaves differently on two identical systems

2009-01-27 Thread Marshall Lake
I have 2 computers, both running Ubuntu 8.10 (kernel2.6.27-9-generic). When my gtkmm application goes to full screen mode, and the user brings up any modal dialog (which is a child of the application main window), on one system everything looks fine. On the other, I get the System menu

Re: Full Screen mode behaves differently on two identical systems

2009-01-27 Thread Carlos Pereira
I have found myself some weird behaviour with fullscreen mode and modal windows in Gnome. I would suggest: 1) try a decent window manager, such as Enlightenment. This solved my issues. Of course this is not a good solution, but at least tells you where the problem is. 2) I guess you are using

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread John Coppens
On Tue, 27 Jan 2009 17:02:32 +0100 Nicola Fontana n...@entidi.it wrote: first of all I warmly suggest you to update your code to GtkTreeView. GtkCList is not maintained since ages: you'll surely meet bigger problem than this and you'll be alone. Yes - I'm planning on doing that. But the

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread Carlos Pereira
I have changed recently my CList widgets to TreeView. I suggest you implement a small test case, learn everything you need to your own purposes, and then (and only then) replace everything. I am almost in the end of replacing 119 option menus to combo boxes, so I understand how you feel...

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread Nicola Fontana
On Tue, 27 Jan 2009 19:08:30 -0200 John Coppens j...@jcoppens.com wrote: On Tue, 27 Jan 2009 17:02:32 +0100 Nicola Fontana n...@entidi.it wrote: gtk_clist_append appends only 1 row, so that shouldn't be the problem. The elements in the str[] array correspond to cells, the number is defined

Re: [Patch] Cursor cache

2009-01-27 Thread Sven Herzberg
Hi, Am Montag, den 19.01.2009, 03:08 -0500 schrieb Matthias Clasen: On Sun, Jan 18, 2009 at 12:24 PM, Dr. David Alan Gilbert gilbe...@treblig.org wrote: * Matthias Clasen (matthias.cla...@gmail.com) wrote: On Sat, Jan 17, 2009 at 8:19 PM, Dr. David Alan Gilbert gilbe...@treblig.org wrote:

Re: [Patch] Cursor cache

2009-01-27 Thread Matthias Clasen
On Tue, Jan 27, 2009 at 9:18 AM, Sven Herzberg herzi...@gnome-de.org wrote: PS: I can also try to come up with a patch for adding a test case once this is committed. Awaiting your patch then :-) ___ gtk-devel-list mailing list