forked from AuroraMiddleware/gtk
Strip "Custom." prefix when getting default options from cups.
This commit is contained in:
parent
b9509ec15d
commit
27f3c3c031
@ -3382,7 +3382,18 @@ create_pickone_option (ppd_file_t *ppd_file,
|
|||||||
option->choices_display[i] = get_choice_text (ppd_file, available[i]);
|
option->choices_display[i] = get_choice_text (ppd_file, available[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gtk_printer_option_set (option, ppd_option->defchoice);
|
|
||||||
|
if (option->type != GTK_PRINTER_OPTION_TYPE_PICKONE)
|
||||||
|
{
|
||||||
|
if (g_str_has_prefix (ppd_option->defchoice, "Custom."))
|
||||||
|
gtk_printer_option_set (option, ppd_option->defchoice + 7);
|
||||||
|
else
|
||||||
|
gtk_printer_option_set (option, ppd_option->defchoice);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gtk_printer_option_set (option, ppd_option->defchoice);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#ifdef PRINT_IGNORED_OPTIONS
|
#ifdef PRINT_IGNORED_OPTIONS
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user