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

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

Issue 160025: GTK Themes: Theme the bookmark bubble. (And first run bubble). (Closed)
Patch Set: Remove text_color for estade Created 11 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/gtk/bookmark_bubble_gtk.cc ('k') | chrome/browser/gtk/first_run_bubble.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/gtk/edit_search_engine_dialog.h" 5 #include "chrome/browser/gtk/edit_search_engine_dialog.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 reinterpret_cast<gpointer>(LowercaseInsertTextHandler), data); 46 reinterpret_cast<gpointer>(LowercaseInsertTextHandler), data);
47 gtk_editable_insert_text(editable, result.c_str(), result.size(), position); 47 gtk_editable_insert_text(editable, result.c_str(), result.size(), position);
48 g_signal_handlers_unblock_by_func(G_OBJECT(editable), 48 g_signal_handlers_unblock_by_func(G_OBJECT(editable),
49 reinterpret_cast<gpointer>(LowercaseInsertTextHandler), data); 49 reinterpret_cast<gpointer>(LowercaseInsertTextHandler), data);
50 // We've inserted our modified version, stop the defalut handler from 50 // We've inserted our modified version, stop the defalut handler from
51 // inserting the original. 51 // inserting the original.
52 g_signal_stop_emission_by_name(G_OBJECT(editable), "insert_text"); 52 g_signal_stop_emission_by_name(G_OBJECT(editable), "insert_text");
53 } 53 }
54 } 54 }
55 55
56 } // namespace 56 } // namespace
57 57
58 EditSearchEngineDialog::EditSearchEngineDialog( 58 EditSearchEngineDialog::EditSearchEngineDialog(
59 GtkWindow* parent_window, 59 GtkWindow* parent_window,
60 const TemplateURL* template_url, 60 const TemplateURL* template_url,
61 EditSearchEngineControllerDelegate* delegate, 61 EditSearchEngineControllerDelegate* delegate,
62 Profile* profile) 62 Profile* profile)
63 : controller_(new EditSearchEngineController(template_url, delegate, 63 : controller_(new EditSearchEngineController(template_url, delegate,
64 profile)) { 64 profile)) {
65 Init(parent_window); 65 Init(parent_window);
66 } 66 }
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 window->controller_->CleanUpCancelledAdd(); 246 window->controller_->CleanUpCancelledAdd();
247 } 247 }
248 gtk_widget_destroy(window->dialog_); 248 gtk_widget_destroy(window->dialog_);
249 } 249 }
250 250
251 // static 251 // static
252 void EditSearchEngineDialog::OnWindowDestroy( 252 void EditSearchEngineDialog::OnWindowDestroy(
253 GtkWidget* widget, EditSearchEngineDialog* window) { 253 GtkWidget* widget, EditSearchEngineDialog* window) {
254 MessageLoop::current()->DeleteSoon(FROM_HERE, window); 254 MessageLoop::current()->DeleteSoon(FROM_HERE, window);
255 } 255 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/bookmark_bubble_gtk.cc ('k') | chrome/browser/gtk/first_run_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698