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

Unified Diff: chrome/browser/gtk/html_dialog_gtk.cc

Issue 3069001: gtk: Make use of the gtk signal macro in HtmlDialogGtk class. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 5 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/html_dialog_gtk.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/html_dialog_gtk.cc
diff --git a/chrome/browser/gtk/html_dialog_gtk.cc b/chrome/browser/gtk/html_dialog_gtk.cc
index a32e3d1aebd7c45e79cef527b4181c88e01360c4..8f06ee29e251ca06cc23d85e4c5da1c498220b50 100644
--- a/chrome/browser/gtk/html_dialog_gtk.cc
+++ b/chrome/browser/gtk/html_dialog_gtk.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -142,7 +142,7 @@ void HtmlDialogGtk::InitDialog() {
flags,
NULL);
- g_signal_connect(dialog_, "response", G_CALLBACK(OnResponse), this);
+ g_signal_connect(dialog_, "response", G_CALLBACK(OnResponseThunk), this);
tab_contents_container_.reset(new TabContentsContainerGtk(NULL));
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog_)->vbox),
@@ -160,8 +160,6 @@ void HtmlDialogGtk::InitDialog() {
gtk_widget_show_all(dialog_);
}
-// static
-void HtmlDialogGtk::OnResponse(GtkWidget* widget, int response,
- HtmlDialogGtk* dialog) {
- dialog->OnDialogClosed(std::string());
+void HtmlDialogGtk::OnResponse(GtkWidget* dialog, int response_id) {
+ OnDialogClosed(std::string());
}
« no previous file with comments | « chrome/browser/gtk/html_dialog_gtk.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698