Re: [Gimp-developer] Loaded image's title becomes "Untitled"
On Wed, 03 Sep 2008 16:36:46 +0200 Sven Neumann <[EMAIL PROTECTED]> wrote: > The error handling you see for file plug-ins in trunk depends on GIMP > 2.6 though. If you want your plug-in to work with GIMP 2.4, then you > better continue to use g_message(). Thank you for important information, Sven. I decide to release this plug-in for GIMP 2.4 first, then make it works on GIMP 2.6 later. My final goal is to improve this plug-in's source code and distribute it as a part of GIMP tarball if whole GIMP community agree. So any suggestion of anyone is wellcome. If you are well in English, please correct my English mistakes especially in "_(*)". Please help me everybody. -- tks <[EMAIL PROTECTED]> ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Loaded image's title becomes "Untitled"
Hi, On Wed, 2008-09-03 at 20:20 +0900, tks wrote: > Oh, I have not looked at subversion repositry yet. > hummm It seems that g_message is replaced by g_set_error. > I need to study error handling. The error handling you see for file plug-ins in trunk depends on GIMP 2.6 though. If you want your plug-in to work with GIMP 2.4, then you better continue to use g_message(). Sven ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Loaded image's title becomes "Untitled"
On Wed, 3 Sep 2008 13:19:54 +0300 "Alexia Death" <[EMAIL PROTECTED]> wrote: > As to your filename issue, a quick search in ico plugins load code revealed > following sniplet: > > image = gimp_image_new (max_width, max_height, GIMP_RGB); > gimp_image_set_filename (image, filename); That's it exactly! Thanks Alexia! > As to your code, it should follow the same style as other file load plug-ins > in http://svn.gnome.org/viewvc/gimp/trunk/plug-ins/ I think. Oh, I have not looked at subversion repositry yet. hummm It seems that g_message is replaced by g_set_error. I need to study error handling. -- tks <[EMAIL PROTECTED]> ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] Loaded image's title becomes "Untitled"
Hello. I'm writing a new plug-in which enable GIMP to import and export X11 Mouse Cursor (XMC). Coding is 80% done, but there is still one bug which I cannot solve. Whenever I open a cursor file, the title is "Untitled-*". "Image->Image Properties" shows that "File Name:" and "File Size:" are empty. Can anyone fix this? Here is my source code. http://www.sutv.zaq.ne.jp/linuz/tks/item/file-xmc.c I also want to make my source code more readable and easy to maintain. So, if you have any idea, please let me know. Thanks for reading. tks ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer