mirror of https://github.com/GNOME/gimp.git
use the G_KEY_FILE_DESKTOP defines from GLib.
2008-12-02 Sven Neumann <sven@gimp.org> * plug-ins/common/file-desktop-link.c: use the G_KEY_FILE_DESKTOP defines from GLib. svn path=/trunk/; revision=27745
This commit is contained in:
parent
ab94f83b90
commit
47612a393b
|
@ -1,3 +1,8 @@
|
|||
2008-12-02 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/file-desktop-link.c: use the G_KEY_FILE_DESKTOP
|
||||
defines from GLib.
|
||||
|
||||
2008-12-01 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpwidgets/gimpwidgets.def: added gimp_widgets_error_quark.
|
||||
|
|
|
@ -153,16 +153,18 @@ load_image (const gchar *filename,
|
|||
goto out;
|
||||
|
||||
group = g_key_file_get_start_group (file);
|
||||
if (! group || strcmp (group, "Desktop Entry") != 0)
|
||||
if (! group || strcmp (group, G_KEY_FILE_DESKTOP_GROUP) != 0)
|
||||
goto out;
|
||||
|
||||
value = g_key_file_get_value (file, group, "Type", &error);
|
||||
if (! value || strcmp (value, "Link") != 0)
|
||||
value = g_key_file_get_value (file,
|
||||
group, G_KEY_FILE_DESKTOP_KEY_TYPE, &error);
|
||||
if (! value || strcmp (value, G_KEY_FILE_DESKTOP_TYPE_LINK) != 0)
|
||||
goto out;
|
||||
|
||||
g_free (value);
|
||||
|
||||
value = g_key_file_get_value (file, group, "URL", &error);
|
||||
value = g_key_file_get_value (file,
|
||||
group, G_KEY_FILE_DESKTOP_KEY_URL, &error);
|
||||
if (value)
|
||||
image_ID = gimp_file_load (run_mode, value, value);
|
||||
|
||||
|
|
Loading…
Reference in New Issue