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
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).
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
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
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.
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
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);
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 =
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.
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.
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
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.
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
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
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
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
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
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...
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
19 matches
Mail list logo