Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2256)

Unified Diff: chrome/browser/printing/print_dialog_gtk.cc

Issue 10920004: Fix the prototype of the callback passed to gtk_enumerate_printers(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_dialog_gtk.cc
===================================================================
--- chrome/browser/printing/print_dialog_gtk.cc (revision 154103)
+++ chrome/browser/printing/print_dialog_gtk.cc (working copy)
@@ -40,7 +40,7 @@
class GtkPrinterList {
public:
GtkPrinterList() : default_printer_(NULL) {
- gtk_enumerate_printers((GtkPrinterFunc)SetPrinter, this, NULL, TRUE);
+ gtk_enumerate_printers(SetPrinter, this, NULL, TRUE);
}
~GtkPrinterList() {
@@ -75,14 +75,15 @@
private:
// Callback function used by gtk_enumerate_printers() to get all printer.
- static bool SetPrinter(GtkPrinter* printer, GtkPrinterList* printer_list) {
+ static gboolean SetPrinter(GtkPrinter* printer, gpointer data) {
+ GtkPrinterList *printer_list = (GtkPrinterList*)data;
if (gtk_printer_is_default(printer))
printer_list->default_printer_ = printer;
g_object_ref(printer);
printer_list->printers_.push_back(printer);
- return false;
+ return FALSE;
}
std::vector<GtkPrinter*> printers_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698