gimp r27745 - in trunk: . plug-ins/common
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27745 - in trunk: . plug-ins/common
- Date: Tue, 2 Dec 2008 14:18:54 +0000 (UTC)
Author: neo
Date: Tue Dec 2 14:18:53 2008
New Revision: 27745
URL: http://svn.gnome.org/viewvc/gimp?rev=27745&view=rev
Log:
2008-12-02 Sven Neumann <sven gimp org>
* plug-ins/common/file-desktop-link.c: use the
G_KEY_FILE_DESKTOP
defines from GLib.
Modified:
trunk/ChangeLog
trunk/plug-ins/common/file-desktop-link.c
Modified: trunk/plug-ins/common/file-desktop-link.c
==============================================================================
--- trunk/plug-ins/common/file-desktop-link.c (original)
+++ trunk/plug-ins/common/file-desktop-link.c Tue Dec 2 14:18:53 2008
@@ -153,16 +153,18 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]