active window tracking

2006-04-24 Thread Himanshu Kathuria
I am trying to track the Acive Window on my desktop at any given time. I need this information continuosly in real time. Using the source for XWININFO and XKILL i can now get the list of the windows that are are open and not minimized. But am still not able to get which window is active

firefox history

2006-04-24 Thread Himanshu Kathuria
I am trying to track the firefox address bar history. can anybody help me in how can i do it or how should i go about it Thanks Himanshu - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your

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

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

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 menu

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 Solaris. I

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 to ja_JP.UTF-8, and the

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

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

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

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] Cc:

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 some

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