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

Unified Diff: chrome/browser/gtk/options/content_page_gtk.cc

Issue 1783010: GTK: more signal handler foolproofing. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 8 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 | « chrome/browser/gtk/menu_bar_helper.cc ('k') | chrome/browser/gtk/rounded_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/options/content_page_gtk.cc
diff --git a/chrome/browser/gtk/options/content_page_gtk.cc b/chrome/browser/gtk/options/content_page_gtk.cc
index 22a635e7060f7a134c9a65f30f1b3c733e88ef0f..3b9220187d1b254adb6ab12926b597b584ebb3b4 100644
--- a/chrome/browser/gtk/options/content_page_gtk.cc
+++ b/chrome/browser/gtk/options/content_page_gtk.cc
@@ -45,8 +45,8 @@ void OnLabelAllocate(GtkWidget* label, GtkAllocation* allocation) {
// Disconnect ourselves. Repeatedly resizing based on allocation causes
// the dialog to become unshrinkable.
- g_signal_handlers_disconnect_by_func(label, (void*)OnLabelAllocate,
- NULL);
+ g_signal_handlers_disconnect_by_func(
+ label, reinterpret_cast<gpointer>(OnLabelAllocate), NULL);
}
// Set the label to use a request size equal to its initial allocation
« no previous file with comments | « chrome/browser/gtk/menu_bar_helper.cc ('k') | chrome/browser/gtk/rounded_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698