Re: Gthreads again

2006-04-24 Thread Tristan Van Berkom
Fernando Apesteguía wrote: And how to kill the gthread if there is not something like pthread_cancel? (Thanks for your patience) Tell the thread it has to exit o through a variable & mutex/condition o through any form of ipc (maybe simply a pipe()) call g_thread_join() from the main thr

Re: Problem displaying Japanese Text in GtkEntry/GtkTextView

2006-04-24 Thread Owen Taylor
On Mon, 2006-04-24 at 16:47 +0530, Gaurav Jain wrote: > Hello, > > I have written a small GTK program (attached below), which is supposed > to display some japanese text in a GtkEntry and GtkTextView. The text > is UTF8, and I have extracted the UTF8 values from an application that > contained so

Gthreads again

2006-04-24 Thread Fernando Apesteguía
And how to kill the gthread if there is not something like pthread_cancel? (Thanks for your patience) Best regards -- Forwarded message -- From: Tristan Van Berkom <[EMAIL PROTECTED]> Date: 24-abr-2006 20:04 Subject: Re: Gthreads again To: Fernando Apesteguía <[EMAIL PROTECTED]>

Re: Gthreads again

2006-04-24 Thread Tristan Van Berkom
Fernando Apesteguía wrote: The main thread is the only one that is running inside the gtk_main loop. The secondary thread is only reading files. So if I do a gtk_main_quit() the secondary thread will be no longer running because I have not a gtk_main loop, right? Wrong, the main thread is not r

Gthreads again

2006-04-24 Thread Fernando Apesteguía
The main thread is the only one that is running inside the gtk_main loop. The secondary thread is only reading files. So if I do a gtk_main_quit() the secondary thread will be no longer running because I have not a gtk_main loop, right? If I'm right why I had to explicitly kill the other thread wh

Re: Gthreads again

2006-04-24 Thread Tristan Van Berkom
Fernando Apesteguía wrote: [...] Now, I'm using GThreads. I don't perform a pthread_cancel nor an equivalent for GThreads, but the application appears to run well. Does gtk_main_quit() kill the secondary thread properly or should I expect a crash of my application? Threads are allowed to run wh

g_cond_signal from delete_event callback

2006-04-24 Thread Fernando Apesteguía
Hi, I have an app with two threads. I would like that when the user tries to close the application by clicking in the x button (upper right corner) of the window, the other thread pauses and the application goes to the panel. I wrote a simple example and it worked (I performed a g_cond_signal from

Re: Problem displaying Japanese Text in GtkEntry/GtkTextView

2006-04-24 Thread Gaurav Jain
> > > This might sound obvious, but make sure you do have a font with the > necessary Japanese characters. > How do I find out which font I need? And how to install that font and ensure that GTK picks it up? ___ gtk-app-devel-list mailing list gtk-app-d

Re: Problem displaying Japanese Text in GtkEntry/GtkTextView

2006-04-24 Thread Lina Kemmel
> Is there a way to get this working on Solaris or AIX too? > Do I need to install some fonts or set some environment > variables? Was your LANG set to xxXX.UTF-8? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mai

Re: Problem displaying Japanese Text in GtkEntry/GtkTextView

2006-04-24 Thread Eduardo M KALINOWSKI
Gaurav Jain wrote: >On 4/24/06, Lina Kemmel <[EMAIL PROTECTED]> wrote: > > >>>Is there a way to get this working on Solaris or AIX too? >>>Do I need to install some fonts or set some environment >>>variables? >>> >>> >>Was your LANG set to xxXX.UTF-8? >> >> >Yes, I tested with LANG set

Re: Problem displaying Japanese Text in GtkEntry/GtkTextView

2006-04-24 Thread Gaurav Jain
On 4/24/06, Lina Kemmel <[EMAIL PROTECTED]> wrote: > > > Is there a way to get this working on Solaris or AIX too? > > Do I need to install some fonts or set some environment > > variables? > > Was your LANG set to xxXX.UTF-8? Yes, I tested with LANG set to ja_JP.UTF-8, and the problem persists on

Dynamic Menus?

2006-04-24 Thread Ivan N. Zlatev
Hi, I have provided a test case as an attachment.What I am trying to do is dynamically create submenus by handling "select" and "deselect" events. I have two problems: 1) The actual sub menu is not being shown. It is shown only if I click on the menu item. 2) It crashes if I double click on a men

Gthreads again

2006-04-24 Thread Fernando Apesteguía
Hi, I wrote a mail some time ago, but nobody answered me :( My problem is that I had two threads. The second one was a pthread. I performed and exit from a callback, so I had to pthread_cancel the secondary thread to avoid a race condition and an eventual app crash. Now, I'm using GThreads. I don

Problem displaying Japanese Text in GtkEntry/GtkTextView

2006-04-24 Thread Gaurav Jain
Hello, I have written a small GTK program (attached below), which is supposed to display some japanese text in a GtkEntry and GtkTextView. The text is UTF8, and I have extracted the UTF8 values from an application that contained some valid UTF8 japanese text. The problem is that when I run this