Hi,
Alternatively, you can use the new gdk_threads_add_timeout() available
in GTK 2.12. It's a GDK thread safe drop-in-replacement for
g_timeout_add().
Thanks,
Michael
On 23/01/2008, Tristan Van Berkom [EMAIL PROTECTED] wrote:
2008/1/22 [EMAIL PROTECTED]:
[...]
Pseudo code for my call
From what I've heard about memory leaking, this is not unique to the
GTK library. If the rumours are correct, applications like `ls` are
notorious for leaking memory, safe in the knowledge that the OS will
clean up after them.
Excellent work on the enable-debug switch, I'll have to keep this
I'm no master profiler but I think that you'll want to put a
gtk_widget_destroy(mainWindow); after the gtk_main();. You really
don't need to do this because it will be destroyed when the
application terminates 0.01 seconds after that line. But if you feel
you must then go for it. I also like to
insted the thread.
Maybe will be better.
Thanks
2007/11/20, Michael Lamothe [EMAIL PROTECTED]:
Hi Alberto,
Sorry, I've accidentally not replied to all. But to punish myself for
doing this again I'll answer your question myself.
In general, what happens when you write a multi
the problem.
Before the calling i should call gdk_thread_enter()?
Type and example please.
Thanks for all!
2007/11/20, Michael Lamothe [EMAIL PROTECTED]:
Hi Alberto,
Sorry, I'm not sure that I follow you. I think that you are saying
that you want to write the C file by yourself. I
Have you tried,
gboolean ii=g_spawn_comand_line_async (C:/Archivos de
programa/GlobalMapper8/global_mapper8.exe,error);
Thanks,
Michael
On 21/11/2007, Martin (OpenGeoMap) [EMAIL PROTECTED] wrote:
Hi:
I am trying exec a exe in windows like this:
GError *error;
gboolean
If you want to put a quote in in your string you should be using \,
right? Not .
Also try,
gboolean ii=g_spawn_comand_line_async (\C:/Archivos de
programa/GlobalMapper8/global_mapper8.exe\,error);
I would've thought that one of those would work.
Thanks,
Michael
On 21/11/2007, Michael
Ohhh ... my bad, never tried it.
Apologies,
Michael
On 21/11/2007, Tomas Carnecky [EMAIL PROTECTED] wrote:
Michael Lamothe wrote:
gboolean ii=g_spawn_comand_line_async (C:/Archivos de
programa/GlobalMapper8/global_mapper8.exe,error);
gboolean ii=g_spawn_comand_line_async (C
:
one createt with label = gtk_label_new (foo);
and the other created with label = gtk_label_new (std_output);
i got the foo one middle aligned and the second placed on the top of the
row.. am i wrong?
M@
On Mon, 2007-11-05 at 22:06 +1100, Michael Lamothe wrote:
Your pseudo makes
, Matteo Landi [EMAIL PROTECTED] wrote:
On Mon, 2007-11-05 at 22:55 +1100, Michael Lamothe wrote:
Hi Matteo,
I'm not following. What box? A GtkBox? What row?
they are just examples
Have you thought of using Glade to do your UI work?
the fact is that i've started working with gtk
that
overload the applet isn't it?
tnx in advance for the help
M@
On Sun, 2007-11-04 at 13:33 +1100, Michael Lamothe wrote:
Hi Matteo,
Look at g_timeout_add() or the new gdk_threads_add_timeout().
Thanks,
Michael
On 04/11/2007, Matteo Landi [EMAIL PROTECTED] wrote:
hi all
i'm
and GTK. But I
need to get better in that department.
On 11/4/07, Michael Lamothe [EMAIL PROTECTED] wrote:
Hi Jordan,
I'll ask the obvious, is your application a multi-threaded
application? Mine did exactly the same thing when I tried to do this
from a different thread.
Thanks
Did your thread modify any GTK UI? Sometimes you can just get lucky,
Thanks,
Michael
On 03/11/2007, Yura [EMAIL PROTECTED] wrote:
Michael Lamothe wrote:
Hi Yura,
Look at the new gdk_threads_add_timeout() instead of creating a
thread. If you're not familiar with the threading model
just easier.
Unfortunately, libxine creates many threads to process the media
stream so I have no choice.
Thanks all for your help,
Michael
On 22/10/2007, Chris Vine [EMAIL PROTECTED] wrote:
On Sun, 2007-10-21 at 13:58 +1000, Michael Lamothe wrote:
Thanks for the excellent responses. I
To: Michael Lamothe [EMAIL PROTECTED]
Cc: gtk-app-devel-list@gnome.org
Message-ID:
[EMAIL PROTECTED]
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sat, 13 Oct 2007, Michael Lamothe wrote:
I have been struggling with application freezes in my application for
about 2 months
Hi AlannY,
I'm new to this mail thread but I think that I know what your issue
is. Basically, GTK/GDK is not designed to be called from multiple at
the same time. Doing so causes all kinds of strange issues such as
the ones that you are seeing. There are many ways to get around this
issue but
();
gdk_threads_leave (); // Add this line
Do NOT wrap GTK calls in the main thread, only in the second thread
On 15/10/2007, AlannY [EMAIL PROTECTED] wrote:
Michael Lamothe wrote:
Hi AlannY,
I'm new to this mail thread but I think that I know what your issue
is. Basically, GTK/GDK
Hi People,
I have been struggling with application freezes in my application for
about 2 months and I was hoping that I could get some help. I've been
cleaning the application up with errors reported by valgrind but can't
seem to work out what this means. Can anyone shed some light on this?
18 matches
Mail list logo