mirror of https://github.com/GNOME/gimp.git
print: don't store image specific settings globally
It doesn't make sense to store image-specific settings such as resolution and offsets in the global print-settings file. Only store them in the image parasite, but remove them before saving the print-settings file.
This commit is contained in:
parent
bacce394b5
commit
9464d303a9
|
@ -106,6 +106,12 @@ print_settings_save (PrintData *data)
|
|||
/* some settings shouldn't be made persistent on a global level,
|
||||
* so they are only stored in the image, not in the rcfile
|
||||
*/
|
||||
|
||||
g_key_file_remove_key (key_file, "image-setup", "x-resolution", NULL);
|
||||
g_key_file_remove_key (key_file, "image-setup", "y-resolution", NULL);
|
||||
g_key_file_remove_key (key_file, "image-setup", "x-offset", NULL);
|
||||
g_key_file_remove_key (key_file, "image-setup", "y-offset", NULL);
|
||||
|
||||
g_key_file_remove_key (key_file, PRINT_SETTINGS_NAME, "n-copies", NULL);
|
||||
|
||||
print_utils_key_file_save_as_rcfile (key_file, PRINT_SETTINGS_NAME);
|
||||
|
|
Loading…
Reference in New Issue