Re: how to display "busy" cursor ? and another question

2008-10-06 Thread Allin Cottrell
On Sun, 5 Oct 2008, Han wrote: > Thanks Allin. I tried your example code and it somehow did not work > for me, i.e. the cursor does not show "watch". It can be tricky deciding which window(s) should display the watch cursor. See John Cupitt's suggestion. > >gdk_window_set_cursor(window, c

What strategy to use to deal with Glade-3's problem in removing pixbuf directory paths in .glade file!

2008-10-06 Thread Daniel Yek
Hi, I'm trying to find a way to deal with the problem with Glade-3 removing absolute or relative path from pixbuf property. That is, given a .glade file containing: relativepath/image.png Glade-3 would remove the path and generate this instead: image.png Isn't it that, in general,

Re: shared memory queue

2008-10-06 Thread Tristan Van Berkom
Oops first post missed the list... 2008/10/6 Luka Napotnik <[EMAIL PROTECTED]>: > Hello. > > I have a problem that I need an GAsyncQueue shared among multiple > processes. > If I allocate a structure with shared memory and then allocate the > GAsyncQueue with g_async_queue_new() to a structure mem

Stop text view to scroll on pageup/down

2008-10-06 Thread Gabriele Greco
I've assigned a global meaning to the PageUp/Down keys in a application and I catch them with a key snooper. The keys are catched and the action performed, but if the window contains a textview also the textview contents are scrolled, so I tried to "catch" the keys in the textview, and then in the

Re: how to display "busy" cursor ? and another question

2008-10-06 Thread jcupitt
2008/10/4 Allin Cottrell <[EMAIL PROTECTED]>: > Something like this, maybe: I do this with something very similar. In pseudo-code: set_up_my_application(): GdkCursor *busy_cursor = gdk_cursor_new(GDK_WATCH); long_action(): for all windows: gdk_window_set_cursor(GTK_WIDGET(window)->window

shared memory queue

2008-10-06 Thread Luka Napotnik
Hello. I have a problem that I need an GAsyncQueue shared among multiple processes. If I allocate a structure with shared memory and then allocate the GAsyncQueue with g_async_queue_new() to a structure member, is the queue shared or not? And if not, is there a way to do this? Greets, Luka __

how can i scale big pixbuf in realtime?

2008-10-06 Thread chen zhixin
hello i have to scale the image i recived,NTSC,30f/s,yuyv->gray and 720*480 because i need to do something on image,so i use gray->pixmap,and use cairo_t to do . then i must scale the 720*480, use gdk_pixbuf_scale make cpu to 100%. is there a better way to do this? thanks _