Commit c125dfbc authored by erg@chromium.org's avatar erg@chromium.org

GTK: Speculative fix for crash in PluginInfoBarDelegate::Cancel.

Speculation is that the signal isn't using our autoexpiring Signals().

BUG=106768
TEST=see bug


Review URL: http://codereview.chromium.org/8866005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113549 0039d316-1c4b-4281-b951-d872f2087c98
parent 49fb4f8e
...@@ -75,10 +75,10 @@ void ConfirmInfoBarGtk::AddButton(ConfirmInfoBarDelegate::InfoBarButton type) { ...@@ -75,10 +75,10 @@ void ConfirmInfoBarGtk::AddButton(ConfirmInfoBarDelegate::InfoBarButton type) {
gtk_size_group_add_widget(size_group_, button); gtk_size_group_add_widget(size_group_, button);
gtk_util::CenterWidgetInHBox(confirm_hbox_, button, true, 0); gtk_util::CenterWidgetInHBox(confirm_hbox_, button, true, 0);
g_signal_connect(button, "clicked", Signals()->Connect(button, "clicked",
G_CALLBACK(type == ConfirmInfoBarDelegate::BUTTON_OK ? G_CALLBACK(type == ConfirmInfoBarDelegate::BUTTON_OK ?
OnOkButtonThunk : OnCancelButtonThunk), OnOkButtonThunk : OnCancelButtonThunk),
this); this);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment