Complete the fix for bug 357280

This commit is contained in:
Matthias Clasen 2006-10-03 18:19:15 +00:00
parent 2878ecf6f7
commit 7e480bb4b8
2 changed files with 13 additions and 0 deletions

View File

@ -1,10 +1,15 @@
2006-10-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintsettings.c (gtk_print_settings_get_duplex):
Fix a typo. (#359052, Ghee Teo)
* gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to
reduce relocations. (#359053)
2006-10-03 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkcupsutils.c:
* modules/printbackends/cups/gtkprintbackendcups.c: Complete
the fix for bug 357280.

View File

@ -30,6 +30,10 @@
#include <stdlib.h>
#include <time.h>
#if CUPS_VERSION_MAJOR > 1 || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR > 1) || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR == 1 && CUPS_VERSION_PATCH >= 20)
#define HAVE_HTTP_AUTHSTRING 1
#endif
typedef void (*GtkCupsRequestStateFunc) (GtkCupsRequest *request);
static void _connect (GtkCupsRequest *request);
@ -534,7 +538,9 @@ _post_send (GtkCupsRequest *request)
httpClearFields(request->http);
httpSetField(request->http, HTTP_FIELD_CONTENT_LENGTH, length);
httpSetField(request->http, HTTP_FIELD_CONTENT_TYPE, "application/ipp");
#ifdef HAVE_HTTP_AUTHSTRING
httpSetField(request->http, HTTP_FIELD_AUTHORIZATION, request->http->authstring);
#endif
if (httpPost(request->http, request->resource))
{
@ -821,7 +827,9 @@ _get_send (GtkCupsRequest *request)
}
httpClearFields(request->http);
#ifdef HAVE_HTTP_AUTHSTRING
httpSetField(request->http, HTTP_FIELD_AUTHORIZATION, request->http->authstring);
#endif
if (httpGet(request->http, request->resource))
{