mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Don't define variables in the middle of a block. (#522067)
2008-03-12 Jens Granseuer <jensgr@gmx.net> * modules/printbackends/cups/gtkprintbackendcups.c: (cups_printer_prepare_for_print): Don't define variables in the middle of a block. (#522067) svn path=/trunk/; revision=19789
This commit is contained in:
parent
b7aeafa395
commit
1b97ef3e14
@ -1,3 +1,9 @@
|
||||
2008-03-12 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* modules/printbackends/cups/gtkprintbackendcups.c:
|
||||
(cups_printer_prepare_for_print): Don't define variables in the
|
||||
middle of a block. (#522067)
|
||||
|
||||
2008-03-12 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkprintunixdialog.c: Add an overwrite confirmation
|
||||
|
@ -2982,10 +2982,11 @@ cups_printer_prepare_for_print (GtkPrinter *printer,
|
||||
{
|
||||
char width[G_ASCII_DTOSTR_BUF_SIZE];
|
||||
char height[G_ASCII_DTOSTR_BUF_SIZE];
|
||||
char *custom_name;
|
||||
|
||||
g_ascii_formatd (width, sizeof (width), "%.2f", gtk_paper_size_get_width (paper_size, GTK_UNIT_POINTS));
|
||||
g_ascii_formatd (height, sizeof (height), "%.2f", gtk_paper_size_get_height (paper_size, GTK_UNIT_POINTS));
|
||||
char *custom_name = g_strdup_printf (("Custom.%sx%s"), width, height);
|
||||
custom_name = g_strdup_printf (("Custom.%sx%s"), width, height);
|
||||
gtk_print_settings_set (settings, "cups-PageSize", custom_name);
|
||||
g_free (custom_name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user