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

Unified Diff: chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc

Issue 813823003: Allow build under GTK+ 2.24. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update expected_deps since the glib version dep decreased. Created 6 years 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 | « AUTHORS ('k') | chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc
diff --git a/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc b/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc
index e050372a1954e93c440cd1e3973dd1c589eddb82..a6f6ae1a256c067278e371dfdd3d3be2a4f198d9 100644
--- a/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc
+++ b/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc
@@ -300,8 +300,14 @@ bool PrintDialogGtk2::UpdateSettings(printing::PrintSettings* settings) {
gtk_page_setup_set_paper_size(page_setup_, custom_size);
gtk_paper_size_free(custom_size);
}
+#if GTK_CHECK_VERSION(2,28,0)
g_list_free_full(gtk_paper_sizes,
reinterpret_cast<GDestroyNotify>(gtk_paper_size_free));
+#else
+ g_list_foreach(gtk_paper_sizes,
+ reinterpret_cast<GFunc>(gtk_paper_size_free), NULL);
+ g_list_free(gtk_paper_sizes);
+#endif
}
} else {
VLOG(1) << "Using default paper size";
« no previous file with comments | « AUTHORS ('k') | chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698