Slow UI updates with GtkImage

2007-11-27 Thread David Brigada
Hi, I'm working on an audio player application. I currently have two elements that change on a frequent basis: a GtkHScale and a GtkImage. Whenever I update the data, I call gtk_widget_queue_draw on the widget that changed. With just the slider updating every 200ms, it works fine. If I

Re: C vs C++ for GTK

2007-11-27 Thread Alan Lake
Just .02 € from a programmer who's been doing it for about 40 years. I agree with most of what has been said on this thread. My thought is that object-oriented thinking is entirely different from procedural thinking. I think that one needs to settle on one paradigm or the other and stay with

printing, cairo, cups

2007-11-27 Thread Thomas Stover
I've been trying to get myself up to speed with state of printing support in Gtk, and I'm down to just a few conceptual questions. It looks like the general idea is to setup a callback to render with cairo one page at a time using a GtkPrintContext. From this I would speculate that on win32, a

Re: Slow UI updates with GtkImage

2007-11-27 Thread Tristan Van Berkom
On Nov 27, 2007 6:11 AM, David Brigada [EMAIL PROTECTED] wrote: Hi, I'm working on an audio player application. I currently have two elements that change on a frequent basis: a GtkHScale and a GtkImage. Whenever I update the data, I call gtk_widget_queue_draw on the widget that changed.

Re: Changing a style property?

2007-11-27 Thread Andrew Smith
Andrew Smith a écrit : Hi Can someone tell me how to change the 'style property' (as it's called in the reference manual) of a gtkwidget? Specifically right now I'm looking to change the 'shadow-type' property of gtkmenubar, gtktoolbar, and gtkcombobox. They look like crap on vista.

Re: Strange interaction between GtkDialog and a GThread

2007-11-27 Thread Gnaural
Thanks for the reply. Interesting. Replacing sleep() with select() did return an error with errno == EINTR. If I understand you correctly, this is a clue that gtk_file_chooser_dialog_new is calling alarm() somewhere. That may indeed factor in to what I am trying to solve. But fact is, getting a

Finding API documentation by function name

2007-11-27 Thread Raja Mukherji
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 function? For example: program

Re: Changing a style property?

2007-11-27 Thread Micah Carrick
You may want to look over the documentation of GtkRcStyle, resource files (.rc files for themes). The style property of a widget is a GtkStyle object. There is no shadow-type property of a widget. These are typically not used by the developer. We leave this stuff up to the theme. If we want a

Re: printing, cairo, cups

2007-11-27 Thread Behdad Esfahbod
Hi Thomas, On Unix, Gtk+ uses the PS backend, not the image. The image backend makes little sense for printing. On Tue, 2007-11-27 at 06:58 -0600, Thomas Stover wrote: My main question is this. Somewhere the cairo RGBA color space must be mapped into a printer's device dependent color