Re: Print preview api

2006-06-02 Thread Petr Tomasek
On Thu, Jun 01, 2006 at 07:13:59PM -0400, Matthias Clasen wrote: Ok, after a lot of work (mostly by John and Alex), we finally have a proposal for a print preview api that will allow us to use an external viewer by default, but also support internal preview. Hi! I think, this is very

Fwd: test

2006-06-02 Thread shree nidhi
Note: forwarded message attached. __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---BeginMessage--- I have developed an application for an handheld device, the initial window will look like

Re: Callback based tooltips (Re: New tooltips API, continued)

2006-06-02 Thread Kristian Rietveld
On Thu, Jun 01, 2006 at 05:16:51PM +0200, Tim Janik wrote: On Wed, 31 May 2006, Kristian Rietveld wrote: On Tue, Apr 25, 2006 at 03:08:12PM +0200, Soeren Sandmann wrote: I once wrote down how tooltips should behave: I mostly like the behaviour you described below. - Tooltips are

strange trouble in displaying a 8bit monochromy grey scale image

2006-06-02 Thread heavenscape
I need to display a 8 bit monochromy image with size of 2048x2048 pixels, all the image data are already loaded into memory, and out of which I created a 24 bit RGB buffer for the GdkPixbuf (please see code below) Well, the result is: The GtkImage widget was expanded to size of 2048x2048

Re: strange trouble in displaying a 8bit monochromy grey scale image

2006-06-02 Thread John Cupitt
On 6/2/06, heavenscape [EMAIL PROTECTED] wrote: char* pDisplayBuf = malloc(sizeX*sizeY*3); for(i=0;isizeX*sizeY;i++) { //create a gray scale img in the display buffer pDisplayBuf[i+1]=pDisplayBuf[i+1]=pDisplayBuf[i+2] = pixel_value; } This isn't going

Re: Serialization in libgobject

2006-06-02 Thread Tim Janik
On Thu, 25 May 2006, Stefan Kost wrote: Hi Tim, thanks for the extensive comments and detailed concerns. Don't you think it would be good to keep the buzzgilla issue open. Its an enhancement request after all and there seems to be several people wanting to have it. well, my concern is that

locking around source_funcs-finalize

2006-06-02 Thread Tim Janik
hi Owen. reading up on g_source_unref() again, i notice that the GMainContext lock is removed and re-acquired around callback_funcs-unref(), but not around source_funcs-finalize(); supposing you're unlocking around unref() so that the handler may do things like adding a new idle handler to the

Re: locking around source_funcs-finalize

2006-06-02 Thread Matthias Clasen
On 6/2/06, Tim Janik [EMAIL PROTECTED] wrote: hi Owen. reading up on g_source_unref() again, i notice that the GMainContext lock is removed and re-acquired around callback_funcs-unref(), but not around source_funcs-finalize(); supposing you're unlocking around unref() so that the handler may do

Re: Print preview api

2006-06-02 Thread Matthias Clasen
On 6/2/06, Petr Tomasek [EMAIL PROTECTED] wrote: On Thu, Jun 01, 2006 at 07:13:59PM -0400, Matthias Clasen wrote: Ok, after a lot of work (mostly by John and Alex), we finally have a proposal for a print preview api that will allow us to use an external viewer by default, but also support

Re: Tooltips progress

2006-06-02 Thread Kristian Rietveld
On Thu, Jun 01, 2006 at 09:33:48AM -0400, Matthias Clasen wrote: Using x == -1 to indicate a keyboard-triggered tooltip looks a bit odd to me; how about adding a boolean parameter for this ? Good idea, fixed this. Regarding dedicated treeview api, I think we can do without it (at least

How to get the the current size of a widget?

2006-06-02 Thread heavenscape
I am displaying a image in my main window, and I want it to automatically resize with the main window. Can anyone tell me how to get the current size of the main window or any widget from within a callback? Regards! -- View this message in context:

Re: GObject and floating reference count

2006-06-02 Thread Chris Vine
On Wednesday 31 May 2006 15:15, Tristan Van Berkom wrote: Hannes Mayr wrote: Hello, I'm a little bit confused about the explanation of the floating reference count. The documentation says about GObject: The initial reference a GObject is created with is flagged as a floating

Re: GtkIconView: reorderable and enable_mode_drag_dest incompatible?

2006-06-02 Thread tomas
Answering to my own question: On Thu, Jun 01, 2006 at 05:17:01PM +, [EMAIL PROTECTED] wrote: Hi, GTK gurus [...] My problem is that I can't manage to keep the thing reorderable *and* accept drops from other apps. Here are the relevant lines: [...] Can I have both? Having had a look at

Re: How to get the the current size of a widget?

2006-06-02 Thread Luis Menina
Use the configure-event event... It's not well documented in GTK doc: http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-configure-event But the pygtk help tells it's called when the window changes its size

MySQL + GTK

2006-06-02 Thread guillaume
Hi all, Can somebody learn me how to fill a treeview with the contents of a mysql table? We don't know the table number of rows cause the tree may show different tables while clicking on the different buttons of my app :) Thank you for answering (or even just for takin the time to read) me ;-)

Re: MySQL + GTK

2006-06-02 Thread Guy Rouillier
[EMAIL PROTECTED] wrote: Hi all, Can somebody learn me how to fill a treeview with the contents of a mysql table? We don't know the table number of rows cause the tree may show different tables while clicking on the different buttons of my app :) Have you used a GtkTreeView before? Not

[Fwd: Re: How to get the the current size of a widget?]

2006-06-02 Thread James Scott Jr
Luis If you look at the GtkWidget structure you will find it contains an GtkAllocation allocation, which is a simple rectangle. It is set to the widget's current size by the configure or realize event of all widgets. You can use its value reliably almost anytime after the gtk_main() has had