From 3171a5f58cc8ddc33eeef2d597fc80a8b214d3cc Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Thu, 29 Apr 2010 18:30:39 +0000 Subject: GTK: more signal handler foolproofing. BUG=40735 TEST=manual clicking about, trybots Review URL: http://codereview.chromium.org/1783010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45966 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/options/content_page_gtk.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '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 22a635e..3b92201 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(OnLabelAllocate), NULL); } // Set the label to use a request size equal to its initial allocation -- cgit v1.1