Re: write a media player using gtk+

2007-12-02 Thread jcupitt
On Dec 2, 2007 3:51 AM, Binary Chen [EMAIL PROTECTED] wrote: Do you know how you get the video memory address of the gdk drawable? I want to use memcpy to do the copying, because the gdk-draw-rgb-image can't be accessed during two different threads. X doesn't let you do this, because it has to

Re: write a media player using gtk+

2007-12-02 Thread jcupitt
On Dec 2, 2007 4:10 AM, Binary Chen [EMAIL PROTECTED] wrote: My decoded image is RGB565 format, this function is RGB32 format, unfortunately my hardware also provides RGB565 capability... this means the system need to do a RGB565 - RGB32 - RGB565 transalation... quite unefficient. Is there a

Re: write a media player using gtk+

2007-12-02 Thread Binary Chen
On Sun, 2007-12-02 at 09:45 +, [EMAIL PROTECTED] wrote: On Dec 2, 2007 3:51 AM, Binary Chen [EMAIL PROTECTED] wrote: Do you know how you get the video memory address of the gdk drawable? I want to use memcpy to do the copying, because the gdk-draw-rgb-image can't be accessed during two

Re: Signal emission in multi-threading environment

2007-12-02 Thread Chris Vine
On Thu, 2007-11-29 at 20:07 +0800, Ben Lau wrote: hi all, I am implementing a GObject (a simple video player) that creates a GStreamer pipeline for video processing. Soon it receives a new GstBuffer of video frame from the pipeline, it will emit a signal. As GStreamer processes the

Modal GtkMessageDialog on Win32

2007-12-02 Thread asmith15
Here's some code that gives me a modal dialog on Linux but not on Windows: GtkWidget* dialog; dialog = gtk_message_dialog_new(GTK_WINDOW(GBLmainWindow), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR,

Contents of VBox don't draw after putting it in Viewport

2007-12-02 Thread Jeffrey Barish
It's a long shot, but I am hoping that someone might recognize my problem from this general description. I tried to reduce my code to a test case, but it works there. After spending an entire day on this problem, I am stumped. I have a bunch of labels and entries in a vbox. I added the vbox to

Re: Contents of VBox don't draw after putting it in Viewport

2007-12-02 Thread Tristan Van Berkom
On Dec 2, 2007 3:07 PM, Jeffrey Barish [EMAIL PROTECTED] wrote: It's a long shot, but I am hoping that someone might recognize my problem from this general description. I tried to reduce my code to a test case, but it works there. After spending an entire day on this problem, I am stumped.

Re: Finding API documentation by function name

2007-12-02 Thread Stefan Kost
hi, Raja Mukherji schrieb: Hi all, I'm writing a binding generator for my language to Gtk and want the generator to be able to insert documentation into the generated code automatically. Is there any existing program/script for getting the documentation associated with a specific api

Re: Finding API documentation by function name

2007-12-02 Thread Murray Cumming
On Tue, 2007-11-27 at 23:24 +, Raja Mukherji wrote: Hi all, I'm writing a binding generator for my language to Gtk and want the generator to be able to insert documentation into the generated code automatically. Is there any existing program/script for getting the documentation

Re: Contents of VBox don't draw after putting it in Viewport

2007-12-02 Thread Jeffrey Barish
Tristan Van Berkom wrote: If for instance, your toplevel widget is already realized then adding pages to the notebook (and thier contents recursively) will result in all pages being realized at the start, on the other hand if your toplevel is invisible, or your notebook is not anchored at

Re: Contents of VBox don't draw after putting it in Viewport

2007-12-02 Thread Jeffrey Barish
Jeffrey Barish wrote: I tried catching the realize and size-allocate signals.  When the widgets are realized, their allocation is (-1, -1, 1, 1).  They never get a size-allocate signal. When I add the vbox to the notebook directly, their allocation is the same when they are realized but

Re: Modal GtkMessageDialog on Win32

2007-12-02 Thread Tor Lillqvist
Here's some code that gives me a modal dialog on Linux but not on Windows: What version of GTK+ on Windows? Is this a bug in GTK? Could well be. If you can reproduce it with the latest version of GTK+, 2.12.2, please file a bug report at bugzilla.gnome.org. Please attach a minimal but