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

Side by Side Diff: chrome/browser/ui/gtk/edit_search_engine_dialog.cc

Issue 6627038: gtk: Rename OnDialogResponse() to OnResponse() to standardize on a consistent naming scheme. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/gtk/edit_search_engine_dialog.h" 5 #include "chrome/browser/ui/gtk/edit_search_engine_dialog.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 gtk_image_set_from_pixbuf(GTK_IMAGE(image), 254 gtk_image_set_from_pixbuf(GTK_IMAGE(image),
255 ResourceBundle::GetSharedInstance().GetPixbufNamed( 255 ResourceBundle::GetSharedInstance().GetPixbufNamed(
256 IDR_INPUT_ALERT)); 256 IDR_INPUT_ALERT));
257 } 257 }
258 } 258 }
259 259
260 void EditSearchEngineDialog::OnEntryChanged(GtkEditable* editable) { 260 void EditSearchEngineDialog::OnEntryChanged(GtkEditable* editable) {
261 EnableControls(); 261 EnableControls();
262 } 262 }
263 263
264 void EditSearchEngineDialog::OnResponse(GtkDialog* dialog, int response_id) { 264 void EditSearchEngineDialog::OnResponse(GtkWidget* dialog, int response_id) {
265 if (response_id == GTK_RESPONSE_OK) { 265 if (response_id == GTK_RESPONSE_OK) {
266 controller_->AcceptAddOrEdit(GetTitleInput(), 266 controller_->AcceptAddOrEdit(GetTitleInput(),
267 GetKeywordInput(), 267 GetKeywordInput(),
268 GetURLInput()); 268 GetURLInput());
269 } else { 269 } else {
270 controller_->CleanUpCancelledAdd(); 270 controller_->CleanUpCancelledAdd();
271 } 271 }
272 gtk_widget_destroy(dialog_); 272 gtk_widget_destroy(dialog_);
273 } 273 }
274 274
275 void EditSearchEngineDialog::OnWindowDestroy(GtkWidget* widget) { 275 void EditSearchEngineDialog::OnWindowDestroy(GtkWidget* widget) {
276 MessageLoop::current()->DeleteSoon(FROM_HERE, this); 276 MessageLoop::current()->DeleteSoon(FROM_HERE, this);
277 } 277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698