libgimpwidgets: small details to better sync with master
branch.
The gimp-2-10 patch contributed as !514 was slightly different from the master one as !515, especially since the last one got the reviews. This syncs the 2 codebases (making it easier to backport future patches on the same piece of code) and do a few fixes. - Syncing alignments. - Fix a comment. - Use g_build_filename() for properly creating paths rather than string concatenations.
This commit is contained in:
@ -612,7 +612,7 @@ gimp_screen_get_color_profile (GdkScreen *screen,
|
|||||||
len,
|
len,
|
||||||
(LPWSTR)filename_utf16);
|
(LPWSTR)filename_utf16);
|
||||||
|
|
||||||
/* _filename must be native endian */
|
/* filename_utf16 must be native endian */
|
||||||
filename = g_utf16_to_utf8 ((gunichar2 *)filename_utf16, -1, NULL, NULL, NULL);
|
filename = g_utf16_to_utf8 ((gunichar2 *)filename_utf16, -1, NULL, NULL, NULL);
|
||||||
g_free (filename_utf16);
|
g_free (filename_utf16);
|
||||||
}
|
}
|
||||||
@ -630,7 +630,7 @@ gimp_screen_get_color_profile (GdkScreen *screen,
|
|||||||
dir = g_new (gchar, len);
|
dir = g_new (gchar, len);
|
||||||
GetColorDirectory (NULL, dir, &len);
|
GetColorDirectory (NULL, dir, &len);
|
||||||
|
|
||||||
fullpath = g_strdup_printf ("%s\\%s", dir, filename);
|
fullpath = g_build_filename (dir, filename, NULL);
|
||||||
file = g_file_new_for_path (fullpath);
|
file = g_file_new_for_path (fullpath);
|
||||||
|
|
||||||
profile = gimp_color_profile_new_from_file (file, NULL);
|
profile = gimp_color_profile_new_from_file (file, NULL);
|
||||||
|
Reference in New Issue
Block a user