If the PPD is not available when the printer is loaded then the PPD options are
not available and we can't get the correct qualifier to use with colord.
When the PPD becomes available, refresh the profile title to reflect reality.
https://bugzilla.gnome.org/show_bug.cgi?id=674890
g_object_unref (printer);
}
+
+static void
+colord_printer_details_aquired_cb (GtkPrinterCups *printer,
+ gboolean success,
+ gpointer user_data)
+{
+ /* refresh the device */
+ colord_update_device (printer);
+}
#endif
/**
colord_client_connect_cb,
g_object_ref (printer));
}
+
+ /* update the device when we read the PPD */
+ g_signal_connect (printer, "details-acquired",
+ G_CALLBACK (colord_printer_details_aquired_cb),
+ printer);
#endif
return printer;
}