RSS/Atom feed Twitter
Site is read-only, email is disabled

Loaded image's title becomes "Untitled"

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 5 messages available
Toggle history

Please log in to manage your subscriptions.

Loaded image's title becomes "Untitled" tks 03 Sep 12:02
9d40e4ef0809030319q426ea778... 07 Oct 20:26
  Loaded image's title becomes "Untitled" tks 03 Sep 13:20
   Loaded image's title becomes "Untitled" Sven Neumann 03 Sep 16:36
    Loaded image's title becomes "Untitled" tks 03 Sep 19:49
tks
2008-09-03 12:02:18 UTC (about 16 years ago)

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

tks
2008-09-03 13:20:30 UTC (about 16 years ago)

Loaded image's title becomes "Untitled"

On Wed, 3 Sep 2008 13:19:54 +0300 "Alexia Death" 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.

Sven Neumann
2008-09-03 16:36:46 UTC (about 16 years ago)

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

tks
2008-09-03 19:49:23 UTC (about 16 years ago)

Loaded image's title becomes "Untitled"

On Wed, 03 Sep 2008 16:36:46 +0200 Sven Neumann 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.