Re: How is GdkPixbuf pixel data stored?

2003-03-30 Thread Sven Neumann
Hi, Christopher Andrew Chenery [EMAIL PROTECTED] writes: My Question is simply why are there two extra bytes per image row, what do they represent and what is a rowstride? - the documentation assumes this knowledge! rowstride is the number of bytes you need to skip to get to the same

Re: fork problem

2003-03-30 Thread Sven Neumann
Hi, Chan Wai [EMAIL PROTECTED] writes: I have tried to write a program, which also act as a server when I run it. I use gtk/gnome to build an interface for it. However, when I run it, there is error on the child programme: Gdk-ERROR **: BadIDChoice (invalid resource ID chosen for this

Re: question about encoding

2003-03-30 Thread Sven Neumann
Hi, Charles Iliya Krempeaux [EMAIL PROTECTED] writes: I don't think that GIOChannel has anything to do with the encoding of a string in a file. To GIOChannel, you are dealing with a file. It really doesn't care what's in it. It's just a bunch of bytes to it. this is only true if you set

Re: Can I make a IM Module resident?

2003-03-30 Thread James Su
Hi, I tried to use g_type_module_register_type () to register my class. This time, the application is never crashed, but the IM module is never unloaded. What's the matter with it? Regards James Su Owen Taylor wrote: On Fri, 2003-03-28 at 03:31, James Su wrote: Oh, I see. But the interface

Maybe a bug of gtk/gdk ?

2003-03-30 Thread James Su
Hi, when I call gtk_init (argc, argv) with argc == 0, the program crashed at gdk_parse_args () in gdk.c. I digged into the source code and found that there are possiblly some bugs in gdk_arg_context_parse, which does not check if argc = 0. I don't know should we treat it as a bug, or just restrict

Handling new image format

2003-03-30 Thread foret
Hello, I am writing a scientific software to analyse high resolution scanner images using glib and gtk 2. Unfortunatelly the images are in a 16-bits gray level format which is not supported by libtiff (8-bit maximum for gray level images). What is the best way to had support for this format