GNOME Bugzilla – Bug 743331
Printers panel does not recognize 'inkCartridge' supply type
Last modified: 2015-04-14 14:34:51 UTC
Created attachment 295141 [details] [review] Patch for this In the "Printers" panel, the supply label is displayed, but the supply levels are not rendered. This is because the function supply_levels_draw_cb does strcmp only with "ink" and "toner" labels. Anything else, such as "inkCartridge" (with Canon MG5400) is not recognized. I have written a patch that fixes this, and also some rendering issues with the supply levels displayed in the drawing widget.
Created attachment 295142 [details] Before patch.
Created attachment 295143 [details] After patch
Review of attachment 295141 [details] [review]: Can you please split up the inkCartridge support from the rendering fixes?
Created attachment 301549 [details] [review] Recognize more supply types Hi, I've split the part adding support for the 'inkCartridge' supply type + I've added 'tonerCartridge' supply type. Regarding the rendering issue, I don't think that this is an issue. The showing of supply levels works as it was intended. Marker levels are sorted and then a bar for the highest one is painted as first one and the others are painted over it. The only flaw here is that if the levels are equal then you won't see one of them.
Review of attachment 301549 [details] [review]: Easy enough. Please commit and cherry-pick for gnome-3-14 as well.
Comment on attachment 301549 [details] [review] Recognize more supply types Thank you for the review. I've pushed the patch to master and gnome-3-14 branches.
Thank you Princeton for the patch. I'm closing this bug as fixed.