152
152
if (gnome_print_job_get_page_size (gpp_job, &width, &height) != TRUE)
154
g_printf ("Error, couldn't get page size!\n");
154
g_printf (_("Error, couldn't get page size!\n"));
158
gnome_print_config_get_length (gpp_config, GNOME_PRINT_KEY_PAGE_MARGIN_LEFT, &ml, NULL);
159
gnome_print_config_get_length (gpp_config, GNOME_PRINT_KEY_PAGE_MARGIN_RIGHT, &mr, NULL);
160
gnome_print_config_get_length (gpp_config, GNOME_PRINT_KEY_PAGE_MARGIN_TOP, &mt, NULL);
161
gnome_print_config_get_length (gpp_config, GNOME_PRINT_KEY_PAGE_MARGIN_BOTTOM, &mb, NULL);
158
gnome_print_config_get_length (gpp_config, (const guchar *) GNOME_PRINT_KEY_PAGE_MARGIN_LEFT, &ml, NULL);
159
gnome_print_config_get_length (gpp_config, (const guchar *) GNOME_PRINT_KEY_PAGE_MARGIN_RIGHT, &mr, NULL);
160
gnome_print_config_get_length (gpp_config, (const guchar *) GNOME_PRINT_KEY_PAGE_MARGIN_TOP, &mt, NULL);
161
gnome_print_config_get_length (gpp_config, (const guchar *) GNOME_PRINT_KEY_PAGE_MARGIN_BOTTOM, &mb, NULL);
163
163
gpp_definition->paper_size_x = width - mr - ml;
164
164
gpp_definition->paper_size_y = height - mb - mt;
195
195
/* Doing it this way right now! */
196
196
gpp_definition->output_file_name =
197
g_strdup (gnome_print_config_get
199
"Settings.Transport.Backend.FileName"));
197
g_strdup ((gchar *) gnome_print_config_get(gpp_config, (const guchar *) "Settings.Transport.Backend.FileName"));