Re: Saving RGB or Grayscale images from GdkPixBuf

2005-06-20 Thread abhi rocks
hi Well i dont think there is support for greyscale images though RGB is definitely there. Regarding saving the pixbuf. Just use gdk_pixbuf_save() The type refers to jpeg, tiff etc. Its pretty fast and i dont think saving the pixbuf to a file is time consuming. --- Michal Porzuczek [EMAIL

Re: how to prevent multiple instances of the same window.

2005-06-20 Thread David Necas (Yeti)
On Sun, Jun 19, 2005 at 10:00:38AM -0700, mohan kumar wrote: I have developed a gtk application having several dialog windows. One of the dialogs is the About dialog. Whenever i click the about menu item, a new instance of the about dialog pops up. Is there a easy gtk api, which restricts the

Re: GTK themes on windows

2005-06-20 Thread Carlo Agrusti
Deekshit M ha scritto lo scorso 19/06/2005 20:17: Hi all, I wanted to know how do I add a theme to the windows application, that I am am developing on windows. I could see that, when I change the theme using theme-selector applictaion, the theme for the GTK-demos get changed. But not for my

Re: GTK themes on windows

2005-06-20 Thread Deekshit M
Hi, I heard a lot about pixmap-engine. Is it a downloadable engine, or available with standard GTK package itself. Thanks Deekshit M --- Carlo Agrusti [EMAIL PROTECTED] wrote: Deekshit M ha scritto lo scorso 19/06/2005 20:17: Hi all, I wanted to know how do I add a theme to the

how to set icon for gtk app on windows?

2005-06-20 Thread Hubert SokoĊ‚owski
Hi! I post this question on this list because I believe I can find here programmers that use gtk on windows. I want to add an icon to my gtk application on windows. Anyone know how to do that ? Are there any free tools on the net for this? I found some to extract icons from executable files but

arm-llinux-gcc cross compile

2005-06-20 Thread Mike Gilorma
I'm trying to develop an application to run on a pxa-255 based system, so I need to use a cross complier. When I try to cross compile, I get an error message that says gtk/gtk.h: No such file or directory. The test program I have written complies fine normally, and I have used the cross

scratchbox / Re: arm-llinux-gcc cross compile

2005-06-20 Thread Toni Willberg
On Mon, 2005-06-20 at 10:56 -0400, Mike Gilorma wrote: I'm trying to develop an application to run on a pxa-255 based system, so I need to use a cross complier. When I try to cross compile, I get an error message that says gtk/gtk.h: No such file or directory. The test program I have

What key is now pressed?

2005-06-20 Thread Jan
Hello. Using gdk_display_get_pointer, I can know is ctrl, alt, shift now up or down, and I wonder is there function to check up or down any key? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: GTK themes on windows

2005-06-20 Thread Deekshit M
Hi , I added the following line in.gtkrc-2.0 include D:/GnuWin32/share/themes/Glossy/gtk-2.0/gtkrc, in C:\Documents and Settings\Myself. IN fact, the file was already existsing. I just removed all the contests and added this line. After that I get an error message The procedure entry point

Re: GTK themes on windows

2005-06-20 Thread Tor Lillqvist
Deekshit M writes: After that I get an error message The procedure entry point g_return_if_fail_warning could not be located in dynamic link library libglib-2.0-0.dll, for any GTK application. My guess is that you are using a theme engine built for GTK+ 2.6 with a GTK+ 2.4 (and GLib 2.4)

Re: GTK themes on windows

2005-06-20 Thread Deekshit M
Yes... That is exactly the problem. I replaced the exsiting engine dll files with the one from 2.4 and everything is fine now. Thank you very much Deekshit M --- Tor Lillqvist [EMAIL PROTECTED] wrote: Deekshit M writes: After that I get an error message The procedure entry point

Re: What key is now pressed?

2005-06-20 Thread Liam R. E. Quin
On Mon, 2005-06-20 at 21:28 +, Jan wrote: Hello. Using gdk_display_get_pointer, I can know is ctrl, alt, shift now up or down, and I wonder is there function to check up or down any key? A better approach is often to have a callback for a keypress and/or key release. Have your program

100 Different Colors

2005-06-20 Thread Lola Smith
Hello, I need to create 100 little squares and each of them has to be a different color. They can't just be a random color: they have to follow the colors of the standard color spectrum/palette. For example, the first one is dark blue, then lighter blue, ... , green, ... , red. I am new to GTK,

get size of a GTKImage

2005-06-20 Thread davidgn
I am writing some app where I need to move an image around inside a GtkFixed, and I need to get it's size. I create the image from a file with gtk_image_set_from_file() Is there an easy way? I managed to get it's dimensions by getting it's pixbuf,

Re: get size of a GTKImage

2005-06-20 Thread Brian J. Tarricone
[EMAIL PROTECTED] wrote: I am writing some app where I need to move an image around inside a GtkFixed, and I need to get it's size. I create the image from a file with gtk_image_set_from_file() Is there an easy way? I managed to get it's dimensions