Re: Mouse wheel events

2008-01-03 Thread Mike Melanson
, 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
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.gnome.org/mailman

Re: When g_timeout_add doesn't seem to be enough

2007-11-28 Thread Mike Melanson
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. -- -Mike Melanson

Re: How to draw a UYVY Image

2007-10-05 Thread Mike Melanson
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 ___ gtk-app-devel-list mailing

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

2007-08-31 Thread Mike Melanson
. Then create a new image in memory with gdk_image_new() and copy the decoded RGB data over. -- -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: Difference between GdkPixbuf and GdkPixmap

2007-08-23 Thread Mike Melanson
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
the terminology straight. Perhaps what you are looking for is a mnemonic vs. an accelerator. Look that up. It might be what you're looking for. -- -Mike Melanson ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Re: Fake pushing a GTK+ button

2007-05-22 Thread Mike Melanson
. -- -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
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... -- -Mike

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 widget in question marked to be focus-capable ? (i.e

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 button press event. So I

Re: Can A Drawable Canvas Receive Key Events?

2007-03-31 Thread Mike Melanson
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
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-devel

BGR vs. RGB in GTK/GDK

2007-02-20 Thread Mike Melanson
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-devel