summaryrefslogtreecommitdiff
path: root/modules/printbackends
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-01-17 06:10:08 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-01-17 06:10:08 +0000
commitf7d932d49999447a3a5236aa885301fbc5bbcb28 (patch)
tree243e364b47b0ff76d660ff0bcbbcf7c337ab6b72 /modules/printbackends
parent5a119668b1b0d119bf3ff54c989cce3c74144370 (diff)
downloadgdk-pixbuf-f7d932d49999447a3a5236aa885301fbc5bbcb28.tar.gz
Don't use httpGetFd() when building against cups 1.1
2007-01-17 Matthias Clasen <mclasen@redhat.com> * modules/printbackends/cups/gtkprintbackendcups.c: Don't use httpGetFd() when building against cups 1.1 svn path=/trunk/; revision=17170
Diffstat (limited to 'modules/printbackends')
-rw-r--r--modules/printbackends/cups/gtkprintbackendcups.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index 6a31463ac..a758e0e6a 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -519,7 +519,12 @@ cups_dispatch_watch_check (GSource *source)
else
dispatch->data_poll->events = 0;
}
+
+#ifdef HAVE_CUPS_API_1_2
dispatch->data_poll->fd = httpGetFd (dispatch->request->http);
+#else
+ dispatch->data_poll->fd = dispatch->request->http->fd;
+#fi
}
if (poll_state != GTK_CUPS_HTTP_IDLE)