Re: Migrating to gtk 2

2004-02-12 Thread Owen Taylor
On Wed, 2004-02-11 at 05:05, [EMAIL PROTECTED] wrote:

 We developed an application using gtk 1.2. This aplication is supported for
 RedHat/Fedora, SuSe, Turbo and Caldera linux distributions.
 We might consider to migrate our application to gtk 2, but we are not sure
 when to do that..

GTK+-1.2 is no longer supported by the GTK+ team. You should start
working on migrating immediately.

 Does anybody know if gtk 1.2 package will be removed from future versions
 of one of these distros (and if so, when or in what distribution version)?

It's unlikely we'll remove GTK+-1.2 from Red Hat Enterprise Linux or
Fedora for another year or so, though we are trying hard to get
rid of all GTK+-1.2 applications we ship.

 Also, until when gtk 1.2 will be available for download from www.gtk.org ?

Well, we still have a versions of GTK+ from 1997 (0.99 and earlier)
on ftp.gtk.org. So, v1.2 will be there for the forseeable future. 
But that doesn't imply that we are supporting it any more, and in
fact, the tarball as distributed won't even compile on many modern
systems without updating the build tools.

Regards,
Owen


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: gtk+ crashes my X window system?!?!?

2004-02-12 Thread Owen Taylor
On Tue, 2004-02-10 at 09:20, [EMAIL PROTECTED] wrote:
 Hi,
 
 in my application, when i choose an option on men, a new window is open
 (in modal mode). From this window i can open another window (modal mode
 again). Last window allocates a variable numbers (arrays of pointers in
 glib) of structs (10 strings for struct). I close this window, his parent
 window and so I return in main window. When i press any button or menu in
 this window, application crashes... with a mysterious segmentation fault...
 I have started prog again with gdb, and after seg fault i launch 'backtrace'
 gdb command. GDB returns seg fault in mallopt(..) and suddenly my X window
 system crashes!
 
 Is it a GTK+ bug?
 I cannot get other infos about this problem (cause crash) and so it's very
 hard for me find a solution... Can you help me?

There's no way GTK+ can crash X unless X is buggy; the X server process
runs as root and checks all input from clients.

One possibility is that your program is running the system out of
memory and that is causing the X server to be killed.

Regards,
Owen


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


g_spawn_command_line_async and MinGW

2004-02-12 Thread Egon Andersen
Hi,

I've used g_spawn_command_line_async with success on Linux RH7.3 and 
have tried to make it work on MSWindows too.
I've noticed the special 'syntax' to be used when a command-line is used 
on windows and tried a lot of different things, but I always end up with 
an GError:
domain: 543 (g-exec-error-quark)
code: 19 (G_SPAWN_ERROR_FAILED -- I think?)
message: Failed to execute helper program

actual program line is:
result = 
g_spawn_command_line_async('C:\\Programmer\\mozilla.org\\Mozilla\\mozilla.exe', 
error);

I'm wondering if this is related to MinGW do not have fork()?

Any other idea about how to launch a heavy application from within my 
application on MSWindows?
Maybe g_thread_create() and execl(), but that I can't make working on 
Linux RH7.3 -- I get Real-time signal 1 after a while; the 'child' 
starts and the 'parent' dies. This was not what I wanted ;-)

Best regards
Egon Andersen
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: pthread problem w/ GtkGLext

2004-02-12 Thread Sebastian Wilhelmi
Hi Ray,

 I'm porting a pthreaded OpenGL application to GTK+ and have run into 
 problems getting the threading to work.
 
 I've written a simplified example of what I'm trying to do threadwise 
 and it's core dumping on me.  The program is supposed to let you open 
 multiple windows in separate threads where a timer updates a label.  It 
 opens the first window but then core dumps.
 
 Any and all help appreciated! :)

Try this:

--- main.c  2004-02-13 08:46:35.0 +0100
+++ main.c.orig 2004-02-13 08:46:03.0 +0100
@@ -56,7 +56,7 @@
 printf(begin counter_callback\n);
   timeoutargs *t1 = (timeoutargs *) data;
 printf(1\n);
-  char s1[1000];
+  char *s1;

   t1-counter++;
 printf(2\n);


And BTW: valgrind is your friend. ;-)

Ciao,
Sebastian
-- 
Sebastian Wilhelmi |här ovanför alla molnen
mailto:[EMAIL PROTECTED]  | är himmlen så förunderligt blå
http://seppi.de|

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list