]> Pileus Git - ~andy/gtk/blobdiff - modules/printbackends/cups/gtkprintercups.c
printing: Use DBus calls instead of Avahi API
[~andy/gtk] / modules / printbackends / cups / gtkprintercups.c
index f2adb0ce5b0225253c0507aee25c9e80da747d7e..383bf904206b9b04b754fe773bbb7522715d03a3 100644 (file)
@@ -114,7 +114,7 @@ gtk_printer_cups_init (GtkPrinterCups *printer)
   printer->remote_cups_connection_test = NULL;
   printer->auth_info_required = NULL;
   printer->default_number_up = 1;
-#ifdef HAVE_AVAHI_BROWSING
+#ifdef HAVE_CUPS_API_1_6
   printer->avahi_browsed = FALSE;
   printer->avahi_name = NULL;
   printer->avahi_type = NULL;
@@ -160,7 +160,7 @@ gtk_printer_cups_finalize (GObject *object)
     g_object_unref (printer->colord_profile);
 #endif
 
-#ifdef HAVE_AVAHI_BROWSING
+#ifdef HAVE_CUPS_API_1_6
   g_free (printer->avahi_name);
   g_free (printer->avahi_type);
   g_free (printer->avahi_domain);