| | 214 | |
| | 215 | // Get the resolutions. |
| | 216 | ppd_option_t *resolutionOption = |
| | 217 | ppdFindOption (printerPPD, "Resolution"); |
| | 218 | view.clearResolutionList (); |
| | 219 | int resolutionToSelect = 0; |
| | 220 | ppd_choice_t *resolutionChoice = resolutionOption->choices; |
| | 221 | for ( int currentRes = 0 ; |
| | 222 | currentRes < resolutionOption->num_choices ; |
| | 223 | ++currentRes, ++resolutionChoice ) |
| | 224 | { |
| | 225 | const gchar *resName = resolutionChoice->text; |
| | 226 | const gchar *resValue = resolutionChoice->choice; |
| | 227 | |
| | 228 | view.addResolution (_(resName), resValue); |
| | 229 | if ( resolutionChoice->marked ) |
| | 230 | { |
| | 231 | resolutionToSelect = currentRes; |
| | 232 | } |
| | 233 | } |
| | 234 | view.selectResolution (resolutionToSelect); |