Re: GTK deadlock in gtk_main

2010-08-03 Thread Tomas Soltys
All right, so at the end it was my bug :) Thank you all for your explanations. Cheers, Tomas > Hi. > >> So what you suggest is to have gdk_threads_enter and gdk_threads_leave >> at >> the beginning and at the end of the idle function? >> >> Is this really intended? > > Yes, this is how things sh

Re: GTK deadlock in gtk_main

2010-08-03 Thread Tomas Soltys
Hi, So what you suggest is to have gdk_threads_enter and gdk_threads_leave at the beginning and at the end of the idle function? Is this really intended? Anyway, thanks for your help. Regards, Tomas > Hi. > > You're having troubles because gtk_main_iteration_do() does it's own > unlock/lock cy

GTK deadlock in gtk_main

2010-08-03 Thread Tomas Soltys
Hi all, I am not sure if this is a bug or just my misunderstanding of how the synchronization is done in GTK. Below is a simple "test.c" example in which the deadlock occurs. Basically program deadlocks itself when "idle_func" is done and control is returned to "gtk_main". Thanks for your help

GdkPixbuf animation

2010-02-02 Thread Tomas Soltys
Hi all, I have noticed that there is a way to load an animation using gdk_pixbuf_animation_new_from_file. But is there a way to save already loaded/created animation to a file? For example GdkPixbuf has a method gdk_pixbuf_save Thanks in advance, Tomas Soltys

Re: setlocale & gtk

2009-08-31 Thread Tomas Soltys
I forgot to write that this behaviour apply only on Windows not on Linux. Cheers Tomas Soltys > Hi all, > > Recently I have ran into a problem with locale settings. > > 1. I need my application to have disabled locale settings. This is mainly > for the number representati

setlocale & gtk

2009-08-31 Thread Tomas Soltys
way how to get around this? Thanks Tomas Soltys ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Embed theme with a gtk app?

2009-01-29 Thread Tomas Soltys
Yes there is a way. Here is how I have done it. gchar *rc_files[] = { "path to your rc file", NULL}; gtk_rc_set_default_files (rc_files); Regards, Tomas Soltys > Is there any way to either embed or make a gtk program load a theme > that comes with the program, without th

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_appe

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_appe

WIN32: Spawning a command-line process

2009-01-27 Thread Tomas Soltys
ne. Stdout is lost. So -mswindows is not an option. Does anybody have an idea how to solve this problem? Thanks. Tomas Soltys ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GtkFileChooserDialog position

2008-10-16 Thread Tomas Soltys
_widget_destroy (dialog); --- Result is that the dialog is moved towards the lower left corner. It seems to me that the size of the window is not correct. Could it be? Can someone explain me why is this happening. Regard

GLib - Spawning Processes

2008-09-09 Thread Tomas Soltys
Hi all, I have spent some time trying to create an application that would use GLib to spawn a process. The function I want to use is "g_spawn_async_with_pipes". The following code is just simplified version of the real one, but the behavior is the same. On Linux it works but on the Windows it

unsubscribe

2005-02-16 Thread Tomas Soltys
-- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender immediately and delete this e-mail from your system. Please note that any

usubscribe

2005-02-16 Thread Tomas Soltys
-- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender immediately and delete this e-mail from your system. Please note that any