summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJohn Ralls <jralls@ceridwen.us>2012-04-23 12:37:48 -0700
committerJohn Ralls <jralls@ceridwen.us>2012-04-23 12:44:06 -0700
commit46385aff0312ac9680f30cfb2b994f3a423d7130 (patch)
tree44b2dc766e46488e99114691a380d35cdd29a81d /modules
parent2c000c8e61e7b7f802116cc48f6b78102efbd612 (diff)
downloadgtk+-46385aff0312ac9680f30cfb2b994f3a423d7130.tar.gz
Remove some more CUPS 1.2 ifdefs.
Diffstat (limited to 'modules')
-rw-r--r--modules/printbackends/cups/gtkprintbackendcups.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index b17f94ccb4..b7e008b8e9 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -603,7 +603,6 @@ gtk_print_backend_cups_print_stream (GtkPrintBackend *print_backend,
cups_printer->device_uri,
GTK_PRINT_BACKEND_CUPS (print_backend)->username);
-#if (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2) || CUPS_VERSION_MAJOR > 1
httpAssembleURIf (HTTP_URI_CODING_ALL,
printer_absolute_uri,
sizeof (printer_absolute_uri),
@@ -613,13 +612,6 @@ gtk_print_backend_cups_print_stream (GtkPrintBackend *print_backend,
ippPort (),
"/printers/%s",
gtk_printer_get_name (gtk_print_job_get_printer (job)));
-#else
- g_snprintf (printer_absolute_uri,
- sizeof (printer_absolute_uri),
- "ipp://localhost:%d/printers/%s",
- ippPort (),
- gtk_printer_get_name (gtk_print_job_get_printer (job)));
-#endif
gtk_cups_request_ipp_add_string (request, IPP_TAG_OPERATION,
IPP_TAG_URI, "printer-uri",
@@ -1897,7 +1889,6 @@ cups_create_printer (GtkPrintBackendCups *cups_backend,
info->printer_uri));
}
-#if (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2) || CUPS_VERSION_MAJOR > 1
httpSeparateURI (HTTP_URI_CODING_ALL, cups_printer->printer_uri,
method, sizeof (method),
username, sizeof (username),
@@ -1905,15 +1896,6 @@ cups_create_printer (GtkPrintBackendCups *cups_backend,
&port,
resource, sizeof (resource));
-#else
- httpSeparate (cups_printer->printer_uri,
- method,
- username,
- hostname,
- &port,
- resource);
-#endif
-
if (strncmp (resource, "/printers/", 10) == 0)
{
cups_printer->ppd_name = g_strdup (resource + 10);
@@ -2415,10 +2397,7 @@ cups_request_ppd_cb (GtkPrintBackendCups *print_backend,
/* let ppdOpenFd take over the ownership of the open file */
g_io_channel_seek_position (data->ppd_io, 0, G_SEEK_SET, NULL);
data->printer->ppd_file = ppdOpenFd (dup (g_io_channel_unix_get_fd (data->ppd_io)));
-#if (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2) || CUPS_VERSION_MAJOR > 1
ppdLocalize (data->printer->ppd_file);
-#endif
-
ppdMarkDefaults (data->printer->ppd_file);
gtk_printer_set_has_details (printer, TRUE);
@@ -3185,11 +3164,7 @@ value_is_off (const char *value)
static char *
ppd_group_name (ppd_group_t *group)
{
-#if CUPS_VERSION_MAJOR > 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR > 1) || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR == 1 && CUPS_VERSION_PATCH >= 18)
- return group->name;
-#else
return group->text;
-#endif
}
static int
@@ -4801,8 +4776,6 @@ cups_printer_get_capabilities (GtkPrinter *printer)
GTK_PRINT_CAPABILITY_COPIES |
GTK_PRINT_CAPABILITY_COLLATE |
GTK_PRINT_CAPABILITY_REVERSE |
-#if (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 1 && CUPS_VERSION_PATCH >= 15) || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR > 1) || CUPS_VERSION_MAJOR > 1
GTK_PRINT_CAPABILITY_NUMBER_UP_LAYOUT |
-#endif
GTK_PRINT_CAPABILITY_NUMBER_UP;
}