Problem displaying image with alpha channel in a transparent window

2008-07-23 Thread Yann Droneaud
Hi, I'm trying to write a program to display a picture with full transparency in its own window (without border), using Composite extension (ARGB colormap and visual). I've written a couple of programs doing this using Xlib alone or with libXrender. Using GTK+ to do the same seems easy since pro

save image and display image from postgresql

2008-07-23 Thread paragasu
i am very new to gtk programming. I am sorry for this beginner questions, but after asking google i fail the get the right answer. I hope this mailing list will help me. anyone can please point me a way on how to save image to postgresql database and display the image again. thank you ___

Screenshot of a GtkWindow

2008-07-23 Thread Gabriele Greco
I need to make a screenshot of a GtkWindow from the program itself, there is a crossplatform way to do it (with 2.12 stable)? I thought about copying the window->window drawable to a gdkpixbuf, but maybe there is a cleaner way -- Ing. Gabriele Greco, DARTS Engineering Tel: +39-0105761240 Fax

Re: Screenshot of a GtkWindow

2008-07-23 Thread Andrew Cowie
On Wed, 2008-07-23 at 13:32 +0200, Gabriele Greco wrote: > I need to make a screenshot of a GtkWindow from the program itself We used code from gnome-utils's gnome-screenshot/gnome-screenshot.c and gnome-screenshot/screenshot-utils.c to add a capture capability to java-gnome (we wanted window deco

Re: save image and display image from postgresql

2008-07-23 Thread Yann Droneaud
Le mercredi 23 juillet 2008 à 19:13 +0800, paragasu a écrit : > i am very new to gtk programming. I am sorry for this beginner > questions, but after asking > google i fail the get the right answer. I hope this mailing list will help me. > > anyone can please point me a way on how to save image to

Re: Screenshot of a GtkWindow

2008-07-23 Thread jcupitt
2008/7/23 Gabriele Greco <[EMAIL PROTECTED]>: > I need to make a screenshot of a GtkWindow from the program itself, there is > a crossplatform way to do it (with 2.12 stable)? > > I thought about copying the window->window drawable to a gdkpixbuf, but > maybe there is a cleaner way No, that's

Re: save image and display image from postgresql

2008-07-23 Thread Vivien Malerba
2008/7/23 paragasu <[EMAIL PROTECTED]>: > i am very new to gtk programming. I am sorry for this beginner > questions, but after asking > google i fail the get the right answer. I hope this mailing list will help me. > > anyone can please point me a way on how to save image to postgresql > database

Re: gtk-app-devel-list Digest, Vol 51, Issue 31

2008-07-23 Thread Thomas Stover
Although I haven't written a postgresql app myself, it is something that I have almost had to do several times. Here are some thoughts to help you get started: -Since you didn't specify what language you are using, I'll start by saying use C, because you then get to work with gtk and postgresq

Re: Problem displaying image with alpha channel in a transparent window

2008-07-23 Thread Yann Droneaud
Le mercredi 23 juillet 2008 à 10:38 +0200, Yann Droneaud a écrit : > Hi, > > I'm trying to write a program to display a picture with full > transparency in its own window (without border), using Composite > extension (ARGB colormap and visual). > Using Cairo correctly (e.g. using operator CAIRO_

Re: Problem displaying image with alpha channel in a transparent window

2008-07-23 Thread Yann Droneaud
Le mercredi 23 juillet 2008 à 17:42 +0200, Yann Droneaud a écrit : > Fixed program is test-gdkpixbuf-cairo.c > Error: Missing cairo_t *cr declaration. Here is the definitive source code. Sorry. -- Yann Droneaud <[EMAIL PROTECTED]> ___ gtk-app-de

Re: gtk-app-devel-list Digest, Vol 51, Issue 31

2008-07-23 Thread Gerardo Di Iorio
On Wed, 23 Jul 2008 09:31:33 -0500, Thomas Stover <[EMAIL PROTECTED]> wrote: > > -I would recommend using the native postgresql library, libpq. > > -The next thing to think about is what programming model to use - > synchronous, threaded, or asynchronous for the database side. If you go > with

Re: postgresql & gtk

2008-07-23 Thread Thomas Stover
Well I don't have an example, because I have never done it. I have used io channels for other things though, and they do work. See if these links help: http://library.gnome.org/devel/gtk-tutorial/stable/x1772.html http://www.postgresql.org/docs/8.3/static/libpq-notify.html Gerardo Di Iorio wr

Re: developing postgresql app using gtk

2008-07-23 Thread Daniel Espinosa
Hi, I just want to know why libgnomedb is not suitable for you? This could help gnome-db project to improve. 2008/7/23 paragasu <[EMAIL PROTECTED]>: > On 7/22/08, Germán Póo-Caamaño <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-07-22 at 21:44 +0800, paragasu wrote: > >> i am very new to gtk program

porting GdkFont

2008-07-23 Thread Nitin Jain
Hi everyone, I am new to GTK programming, so pardon the simplicity of the request. As of now, am porting an application to GTK+-2.0 mainly by rummaging through http://library.gnome.org/devel/ and changing the code accordingly. However, now I am stuck as I can't find the UNdeprecated equivalent of