~ubuntu-branches/ubuntu/trusty/gnome-photo-printer/trusty

« back to all changes in this revision

Viewing changes to src/gpp_functions.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Schlueter
  • Date: 2007-01-14 13:56:09 UTC
  • mfrom: (1.2.3 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20070114135609-mz4hcg50xnkaeg17
Tags: 0.7.0-1
* New upstream release
* Bug fix: gnome-photo-printer: No integration into GNOME menu, thanks
  to Sebastien NOBILI (closes: #406296)

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
 
152
152
        if (gnome_print_job_get_page_size (gpp_job, &width, &height) != TRUE)
153
153
        {
154
 
                g_printf ("Error, couldn't get page size!\n");
 
154
                g_printf (_("Error, couldn't get page size!\n"));
155
155
                return FALSE;
156
156
        }
157
157
 
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);
162
162
 
163
163
        gpp_definition->paper_size_x = width - mr - ml;
164
164
        gpp_definition->paper_size_y = height - mb - mt;
194
194
 
195
195
        /* Doing it this way right now! */
196
196
        gpp_definition->output_file_name =
197
 
                g_strdup (gnome_print_config_get
198
 
                          (gpp_config,
199
 
                           "Settings.Transport.Backend.FileName"));
 
197
                g_strdup ((gchar *) gnome_print_config_get(gpp_config, (const guchar *) "Settings.Transport.Backend.FileName"));
200
198
 
201
199
        return TRUE;
202
200
}