Re: Mouse wheel events

2008-01-03 Thread Mike Melanson
OLL_DOWN. Of course, this is different from the X11 event model which maps scroll wheel events to mouse buttons 4 and 5. -- -Mike Melanson ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: I can't understand the difference output of only a line differ

2007-12-06 Thread Mike Melanson
rporate the codec into FFmpeg (ffmpeg.org), at which point it would be accessible to a huge number of existing media players. Think about it... -- -Mike Melanson ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.

Re: When g_timeout_add doesn't seem to be enough

2007-11-28 Thread Mike Melanson
behavior is blocking: audio_thread: while (running) mix_audio() output_audio() If the behavior is non-blocking (i.e., the output_audio() function returns immediately), you will have to go through the trouble of waiting somehow until the device is ready to receive more data. -- -Mi

Re: How to draw a UYVY Image

2007-10-05 Thread Mike Melanson
es without converting it into RGB Perhaps use an Xv overlay? That's outside the purview of GTK, but I know it's still possible since there are GTK movie players that use Xv overlays. And you get hardware scaling for free. -- -Mike Melanson ___

Re: How to convert a jpg image to a GtkImage ?

2007-08-31 Thread Mike Melanson
impulse is that you will need to drag libjpeg into this (pretty standard everywhere) and delegate image decoding over to that module. Then create a new image in memory with gdk_image_new() and copy the decoded RGB data over. -- -Mike Melanson ___ g

Re: Difference between GdkPixbuf and GdkPixmap

2007-08-23 Thread Mike Melanson
ic for the pixbuf to be > drawn each frame. What facility are you using for profiling? 'top'? Some other tool? Or does it just 'feel' slower? -- -Mike Melanson ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Accelerator keys and popup menus?

2007-08-19 Thread Mike Melanson
! > > I seem to have the same problem. Have you found a solution in the last 2 > years? I had this same problem at one point. The details are a little fuzzy, but the key is getting the terminology straight. Perhaps what you are looking for is a "mnemonic" vs. an "accelerato

Re: Fake pushing a GTK+ button

2007-05-22 Thread Mike Melanson
ton::pressed signal to the given GtkButton." There's also one for a clicked signal; not sure about the diff. -- -Mike Melanson ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Gtk+ icon compiled into executable

2007-05-19 Thread Mike Melanson
inary. Perhaps convert the icon file to textual data that can be #include'd in the source code? -- -Mike Melanson ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Querying Key State

2007-05-18 Thread Mike Melanson
Hi, >From my GTK app, I need to query the state of a key. E.g., I need to check if the up-arrow is currently down or up. Is there a clean GTK/GDK way to do this? I know that X11 has XQueryKeymap() but I don't want to have to fall back on that if I can help it. Thanks... --

Re: Can A Drawable Canvas Receive Key Events?

2007-04-02 Thread Mike Melanson
Mike Melanson wrote: > I found that when I put a big text widget inside the XEmbed'ed GtkPlug > container instead of a big drawable canvas, it was able to receive > focus. Digging into the GTK source code, I noticed that it calls > gtk_widget_grab_focus() when it receives a b

Re: Can A Drawable Canvas Receive Key Events?

2007-04-02 Thread Mike Melanson
Mike Melanson wrote: > Tristan Van Berkom wrote: >> Did you add the events to the event mask before the widget was >> realized ? >> >> Does the widget in question have keyboard focus at the time >> you want to recieve the keyboard events ? >> >> Is the

Re: Can A Drawable Canvas Receive Key Events?

2007-03-31 Thread Mike Melanson
. I apply the same can-focus property change but I'm afraid I might be fighting with the hosting app for the key events. -- -Mike Melanson ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Can A Drawable Canvas Receive Key Events?

2007-03-30 Thread Mike Melanson
When I swap the canvas out for a more text-oriented widget, I get all the key events I want. Thanks... -- -Mike Melanson ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-

Getting Keyboard Events In GtkPlug

2007-03-05 Thread Mike Melanson
receiving keyboard events? Is it entirely up to the hosting app? Thanks... -- -Mike Melanson ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

BGR vs. RGB in GTK/GDK

2007-02-20 Thread Mike Melanson
using gdk_draw_rgb_image()/gdk_draw_rgb_32_image() which clearly states that it wants data in RGB order. Is there a facility I am overlooking for rendering the BGR bitmap? Thanks... -- -Mike Melanson ___ gtk-app-devel-list mailing list gtk-app-