Nischal Rao wrote:
> is there any way to listen to signals without calling gtk_main() (which
> never returns) ? If so, then i ll be able to get rid of
> threads(happily!!) I am new to glib threads and gnome signals.. i
> have just been following examples that i found on the net.
What kind of s
Let me explain the entire scenario.
I need to be listening to a socket for data from an external program. I do
this using an infinite loop. Once i get the data, i call a function and
after it returns I go back into infinite loop again.
While all this is happening I also need to listen to some sign
On Wed, 14 Apr 2010 00:13:38 +0530
Nischal Rao wrote:
> is there any way to listen to signals without calling gtk_main()
> (which never returns) ? If so, then i ll be able to get rid of
> threads(happily!!) I am new to glib threads and gnome signals.. i
> have just been following examples th
is there any way to listen to signals without calling gtk_main() (which
never returns) ? If so, then i ll be able to get rid of
threads(happily!!) I am new to glib threads and gnome signals.. i have
just been following examples that i found on the net.
Please help me. My requirement is that i
Nischal Rao wrote:
> the sample code is:
[..]
your use of threading doesn't make sense. All your threads are within a
lock, so you have three threads (main + two threads) but they can never
execute any instructions in parallel, because they all wait for the
global gdk lock.
Everything you want to
On Mon, Apr 12, 2010 at 4:00 PM, Nader Morshed wrote:
> Hey, I'm wondering if anyone knows what/where I can find the error code name
> for an asynchronous operation being canceled?
http://library.gnome.org/devel/gio/stable/gio-GIOError.html
Namely G_IO_ERROR_CANCELLED.
-A. Walton
>I've looked
I am not sure if this will help you, but try this:
http://library.gnome.org/devel/libwnck/stable/WnckWindow.html#wnck-window-make-above
On Tue, Apr 13, 2010 at 7:10 PM, Todong Ma wrote:
> Hi,everyone!
>
> I want to write a program which can stays on top after it ran when I'm
> playing fullscree
Hi,everyone!
I want to write a program which can stays on top after it ran when I'm
playing fullscreen game.
(I mean when I'm playing the fullscreen game,I can still see that popup
window)
I have tried gtk_window_fullscreen(),gtk_window_activate() and
gtk_window_set_keep_above(),but they didn't w
the sample code is:
#include "myheader.h"
int main(int argc, char ** argv)
{
GThread *l_th1, *l_th2;
g_thread_init(NULL);
gdk_threads_init();
gtk_init(&argc,&argv);
initCommandParser();
initCurrentManager();
initWindowManager();
l_th1 = g_thread_create(_gtkthread,N